Error: id was called incorrectly. Coupon properties should not be accessed direc
-
I’m getting an error from this module.
“id was called incorrectly. Coupon properties should not be accessed directly.” Stack trace shows
Woo_Attributes_Coupon->wac_check_coupon_valid_tags()
I checked the code and believe I fixed it by changing
instance->id
toinstance->get_id()
andproduct->id
toproduct->get_id()
inclass.woo-attributes-coupon.php
in thewac_check_coupon_valid_tags()
andwac_check_coupon_valid_attributes()
functions.But it would be good if the core could be updated!
I’m using WooCommerce 3.5.4
Thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Error: id was called incorrectly. Coupon properties should not be accessed direc’ is closed to new replies.