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
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742401465a4436995.html
评论列表(0条)