• Hello,

    When I add a coupon to my basket which doesn’t fit the requirements for minimum or maximum spend, the error message displays –

    “The maximum spend for this coupon is <span class=”woocommerce-Price-amount amount”><span class=”woocommerce-Price-currencySymbol”>£</span>20</span>.”

    I don’t know why this is happening and after looking at the file class_wc_coupon.php in Plugins > WooCommerce > includes, the text string seems correct however is displaying this crazy message.

    I’d also like to personalise the string is possible to display the coupon name, so I’d like the final string (for this example) to be –

    “The maximum spend for coupon ‘COUPON_NAME’ is £20.”

    I have tried editing and copying the file to my child theme however nothing is taking effect, is this to do with where I’m placing the file in the child theme directory?

    Many thanks!

    PS – If you’re looking to test, then add any single card to the basked and use code ‘new collector’ in cart, minimum spend for this coupon is £8 which is not fulfilled by a single card.

    • This topic was modified 4 years, 9 months ago by Masidus.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Yuki K a11n.

    (@yukikatayama)

    Automattic Happiness Engineer

    Hi @masidus,

    I’m not able to replicate this on my own test site. Please do a full theme and plugin conflict test to see if that helps.

    Thread Starter Masidus

    (@masidus)

    Hi @yukikatayama,

    Thank you for your reply!

    So the latest update to WooCommerce 4.0 has fixed this issue, howeevr I am still unable to personalise the text string as before.

    I’m looking to change the text for minimum and maximum spend to also reflect the coupon name in the message string, so for example – “The minimum spend for coupon ‘COUPON_NAME’ is £xx.” instead of the current – “The minimum spend for this coupon is £xx.”

    Many thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Coupon Notices Text Error + Edits’ is closed to new replies.