Closed maxrice closed 7 years ago
Needs a few small changes:
Replace woocommerce_product_write_panels with woocommerce_product_data_panels action on this line.
woocommerce_product_write_panels
woocommerce_product_data_panels
Replace the WC_Product::$price property usage here and here with WC_Product::get_price() method.
WC_Product::$price
WC_Product::get_price()
Thanks :)
First change is ok. But second change is confusing.
On line# 64 & 69 $values['data']->price should be replace with $values['data']->get_price()
$values['data']->price
$values['data']->get_price()
Fixed with https://github.com/WPprodigy/woocommerce-product-fees/pull/25
Needs a few small changes:
Replace
woocommerce_product_write_panels
withwoocommerce_product_data_panels
action on this line.Replace the
WC_Product::$price
property usage here and here withWC_Product::get_price()
method.