Changing Deprecated Functions
-
I’m working on a website and in their functions file is a function to display prices excluding VAT.
A piece of code to display this is
woocommerce_price($variation->get_price_excluding_tax())
These have since been deprecated and I’ve tried to replace the code with this:
wc_price($variation->wc_get_price_excluding_tax())
But that doesn’t seem to work.
The output of the original code includes “WC_Product::” before “get_price_exluding_tax” and this still remains once I’ve changed the code, but I don’t think this is needed anymore. Trouble is I’m not sure where this is coming from or how to replace it.
Any help is appreciated.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Changing Deprecated Functions’ is closed to new replies.