This topic has 4 replies, 3 voices, and was last updated 8 years, 9 months ago ago by Stan Russell
I am trying to modify my tracking code pixels by calling the total cart within my pixel parameters but it is not working.
I tried using these codes below (including more) but no luck.
WC()->cart->total
WC()->cart->get_cart_total
$woocommerce->cart->get_cart_total
$woocommerce->cart->total
Do you happen to know what the variable parameter is for displaying the total cart? I added the tracking codes in my child theme’s function.php file. Thank you.
Hello,
If you need code for order total you can find it in the file wp-content/plugins/woocommerce/templates/order/order-details.php:
$order->get_order_item_totals() as $key => $total
Regards,
Eva Kemp.
Thank you!
Hello sande410,
you are welcome!
Regards,
Stan Russell.
Tagged: best selling, persuasive, seo friendly, themes, total order code, woocommerce
The issue related to '‘What is the total order code?’' has been successfully resolved, and the topic is now closed for further responses