• Resolved alisafang

    (@alisafang)


    Hi, I have place a test order and in the thank-you page, it has this notice:

    Notice: get_used_coupons is deprecated since version 3.7! Use WC_Abstract_Order::get_coupon_codes instead. in /wp-includes/functions.php on line 4440.

    How can I fix this issue?

Viewing 3 replies - 1 through 3 (of 3 total)
  • This is because your Woocommerce theme files are outdated

    Solution 1
    – update your theme (if available)

    Solution 2
    – edit the theme file used for the thank-you page

    normally it can be found via: yourtheme/woocommerce/checkout/thankyou.php (almost each theme is different)

    search for get_used_coupons & replace with get_coupon_codes

    Plugin Support EtienneP a11n

    (@etiennep)

    Hi @alisafang

    What @crslz mentioned is most likely the case here, outadte template files.

    Here is a guide on how to update those – https://docs.woocommerce.com/document/fix-outdated-templates-woocommerce/

    Alternatively, you can reach out to the developer of your theme to have a look for you

    Plugin Support EtienneP a11n

    (@etiennep)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘get_used_coupons is deprecated’ is closed to new replies.