Direct access to protected WC_Product property
-
Version 1.8.2 of this plugin is causing this following notice:
virtual was called incorrectly. Product properties should not be accessed directly. Backtrace: ..., WC_Shipping->calculate_shipping, WC_Shipping->calculate_shipping_for_package, WC_Shipping_Method->get_rates_for_package, WC_Shipping_RLC->is_available, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.
The fix is rather simple and is located on
woo-shipping-method-rl-carriers/includes/classes/WC_Shipping_RLC.php:276
: fromif ($item['data']->virtual == 'yes')
toif ($item['data']->is_virtual())
.
- You must be logged in to reply to this topic.