admin管理员组文章数量:1130349
I am building a site in timber that uses Woocommerce. Everything is working great, except I can't get products out of the cart.
I'm using Woocommerce Product Add-ons, a subscription plugin called Subscriptio, and some custom Woocommerce functions. however, when I disable all of these, I still can't get the cart to empty after a successful checkout. I have isolated the problem to Timber.
I can create an extremely simple page.php template, that isn't using twig, like so:
<?
get_header();
while ( have_posts() ) : the_post();
the_content();
endwhile;
get_footer(); ?>
And when Wordpress uses this template, the cart empties just fine. But when I serve the page using twig, the very last item added to the shopping cart stays in there, so when I pay, then go back to the cart, there's always one item left in it.
The header and footer invoked in the above example just point to twig templates, so it's something about just that twig page template that causes the problem.
Does anyone know what could be going on here, and now to fix it?
I am building a site in timber that uses Woocommerce. Everything is working great, except I can't get products out of the cart.
I'm using Woocommerce Product Add-ons, a subscription plugin called Subscriptio, and some custom Woocommerce functions. however, when I disable all of these, I still can't get the cart to empty after a successful checkout. I have isolated the problem to Timber.
I can create an extremely simple page.php template, that isn't using twig, like so:
<?
get_header();
while ( have_posts() ) : the_post();
the_content();
endwhile;
get_footer(); ?>
And when Wordpress uses this template, the cart empties just fine. But when I serve the page using twig, the very last item added to the shopping cart stays in there, so when I pay, then go back to the cart, there's always one item left in it.
The header and footer invoked in the above example just point to twig templates, so it's something about just that twig page template that causes the problem.
Does anyone know what could be going on here, and now to fix it?
本文标签: TimberTwigand Woocommerce Last product stays in the cart after checkout
版权声明:本文标题:Timber, Twig, and Woocommerce: Last product stays in the cart after checkout 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749203486a2332178.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论