admin管理员组文章数量:1336183
I just hit a stumbling block. I'm currently using the <?php echo WC()->cart->get_cart_total(); ?>
function to output the price of the products in cart. However, the resulting output was pasted two times and i only have one product in cart(from the below image). I would love this to only output once. Any help would be highly appreciated.
Thanks.
For reference, below is the full code
<?php esc_html_e( 'Here is a summary of your', 'woocommerce' ); ?> <?php echo WC()->cart->get_cart_total(); ?><?php esc_html_e( 'perk', 'woocommerce' ); ?>
Here is the output(displaying two times) in the frontend
本文标签: shortcode to display woocommerce cart total
版权声明:本文标题:shortcode to display woocommerce cart total 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742401464a2467968.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论