Error when applying coupon reduction from YITH points and rewards
-
Hi,
Since the last update, I got an error message on my website when user try to apply a discount coupon.
Notice: Undefined property: WC_Coupon_Data_Store_CPT::$updated_props in www/wp-content/plugins/woocommerce/includes/data-stores/class-wc-coupon-data-store-cpt.php on line 280
This message appears on the cart page immediatly after applying the discount, and if I try to checkout anyway, I can’t order because the paiement section is indefinitely loading…
After applying the coupon, the error message is displayed on the entire website.
I’ve seen you worked on this hook in the readme.txt :
* Dev – Pass the correct
$this->updated_props
variable to thewoocommerce_coupon_object_updated_props
action’s second paramater. #25077It works if I comment this line in the function update_post_meta() from the class-wc-coupon-data-store-cpt.php file:
do_action( 'woocommerce_coupon_object_updated_props', $coupon, $this->updated_props );
But that’s not the good way to solve it…
Do you have any idea where this problem comes from ?
Thank you very much for your help.
Anthony
- The topic ‘Error when applying coupon reduction from YITH points and rewards’ is closed to new replies.