Coupon Notices Text Error + Edits
-
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.
The page I need help with: [log in to see the link]
- The topic ‘Coupon Notices Text Error + Edits’ is closed to new replies.