Y
Y
Yuri Yanin2017-05-29 05:00:51
Online shopping
Yuri Yanin, 2017-05-29 05:00:51

How to affect the total amount in the cart in Woocommerce through a php function?

I need to influence the value of WC()->cart->get_total(). how and where is this data processed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WordPress WooCommerce, 2017-05-30
@maxxannik

open the method code https://docs.woocommerce.com/wc-apidocs/source-cla...
see the "woocommerce_cart_total" hook
how to use hooks to change the system behavior is written here https://wpmag.ru/2014/wordpress-actions -filters/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question