• Resolved nartoof

    (@nartoof)


    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_propsvariable to thewoocommerce_coupon_object_updated_propsaction’s second paramater. #25077

    It 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

    • This topic was modified 5 years, 1 month ago by nartoof.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Linda

    (@lindamork)

    Automattic Happiness Engineer

    Hi Anthony,

    It sounds like you need to post this with the support team for YITH Points and Rewards? Looks like you can reach them here: https://yithemes.com/themes/plugins/yith-woocommerce-points-and-rewards/

    Thread Starter nartoof

    (@nartoof)

    Hi @lindamork,

    Thank you for your answer.

    I already post almost the same message on the plugin support section on www.remarpro.com.

    I wasn’t sure the problem comes from their plugin, because I saw on the readme.txt that Woocommerce is working on some issues with this feature (#25077).

    I’m still waiting for an answer on the YITH plugin topic.

    Have a nice day.

    Anthony

    Plugin Support Yuki K a11n.

    (@yukikatayama)

    Automattic Happiness Engineer

    Hi Anthony,

    Hopefully you’ve heard back from YITH. I’m closing this thread for now as there has not been further activity on the thread.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error when applying coupon reduction from YITH points and rewards’ is closed to new replies.