• Resolved sarahpeach

    (@sarahpeach)


    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 to instance->get_id() and product->id to product->get_id() in class.woo-attributes-coupon.php in the wac_check_coupon_valid_tags() and wac_check_coupon_valid_attributes() functions.

    But it would be good if the core could be updated!

    I’m using WooCommerce 3.5.4

    Thanks.

    • This topic was modified 5 years, 9 months ago by sarahpeach.
    • This topic was modified 5 years, 9 months ago by sarahpeach.
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.