Coupon snippet not working for me
-
Hi,
I’ve a wpms on localhost, I did try this snippet posted in another thread, it won’t work in plugin function file or in my snippet plugin, it still show “Do you have a coupon or a gift card? Click here to enter your code”
add_filter ( ‘yith_ywgc_cart_discount_label’, function () {
return “Your discount label”;
} );add_filter ( ‘yith_ywgc_cart_discount_placeholder’, function () {
return “Your discount placeholder”;
} );add_filter ( ‘yith_ywgc_cart_discount_submit_text’, function () {
return “Your submit text”;
} );When I deactivate this plugin and I add another snippet to change to coupon, it works 100%.
Do you have some other snippets or a workaround to fix this issue?
I guess most users using coupon would change “coupon” to something else, why not just use some other wording for it e.g. Promo Code in the plugin files?
Dennis
https://www.ads-software.com/plugins/yith-woocommerce-gift-cards/
- The topic ‘Coupon snippet not working for me’ is closed to new replies.