"Notice: get_used_coupons is deprecated since version 3.7!"

This topic has 2 replies, 2 voices, and was last updated 4 years, 10 months ago ago by Olga Barlow

  • Avatar: lindo_web
    Simon
    Participant
    January 6, 2020 at 17:40

    Hello,

    One of our customers reported getting the following line of code at checkout:
    Notice: get_used_coupons is deprecated since version 3.7! Use WC_Abstract_Order::get_coupon_codes instead.

    The directory it refers to is in private content. I updated to the latest Classico template but the site crashed so had to revert back to version 2.4 (child). How can we hide the error or can you correct it in functions.php?

    Please, contact administrator
    for this information.
    1 Answer
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    January 6, 2020 at 17:51

    Hello,

    Our theme does not include get_used_coupons function in theme files. Probably one of the third-party plugins that you keep enabled uses this function and causes that notice. Check the plugins list on your site and try to disable plugins related to WooCommerce and check which one generates that notice.

    Regards

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.