• Dennis

    (@dennis1001)


    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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi Dennis101,

    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?

    The input field for gift cards code is the same used for coupon code so decided to do not change the default meaning.

    Please double check that you added the snippet code inside the functions.php file in the theme folder.

    Best regards

    Thread Starter Dennis

    (@dennis1001)

    Hi,

    It works on cart page but do you have a solution for the checkout page as the word “Coupon” shows up there, too.

    I’ve a few of your premium plugins! In past I’ve sent you 2 messages through your chat but never got any answers! Does it not work or?

    Dennis

    Plugin Author YITHEMES

    (@yithemes)

    Hi Dennis,
    for what concerns the chat on our support site, it should work fine, if you’ll experience problems please open a ticket and our support team will help you.

    For the label question, we will split the gift cards section from the coupon one in order to fix this limitation.

    Best regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Coupon snippet not working for me’ is closed to new replies.