Support » Plugin: PW WooCommerce Gift Cards » Display on cart and Error with jquery

  • Resolved joy0114



    I’ve got 2 strange issue with last release of the plugin.

    First, the div containing the form (id=”pwgc-redeem-gift-card-form”) is no more displayed on the cart, as it is configured in admin. None of each position (besides coupon, or just before checkout button) works.

    Hopefully, it works on checkout page (below payment gateways).

    But, using this form, after entering a valid card number, there is a js error:

    Uncaught ReferenceError: pwgc_checkout_redeem_gift_card is not defined

    According to firefox debigging tool, it is related with jquery:

    jQuery(function() {
                jQuery('#pwgc-redeem-form').off('submit.pimwick').on('submit.pimwick', function(e) {
                    return false;

    As a consequence, when we click on “apply gift card”, we come back to the section related to addresses. From there, if, another time, I proceed to checkout, then I can re-enter the card number and it is applied.

    Have you got an idea to help me ?
    Thanks a lot if so !
    Best regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter joy0114



    I’m sorry for the noise…

    Just a problem concerning loading the plugin for the “shopping cart” page. While it was loaded for “checkout”…
    It’s clear that if the plugin is not loaded, it can’t work.
    Query Monitor allowed me to see that the javascript of PW Gift card was missing.

    So no worries now.

    Thanks again for your work on this very well designed and made plugin.
    Best regards

    Hi @joy0114,

    I am having a similar issue – it appears the JS is not loading on the checkout page. I currently have my site skipping the cart page and just going straight to checkout. How did you fix your issue and force the JS to load?



    Thread Starter joy0114



    Sadly, I’m not sure I can help you.

    Because the issue was coming from me: I use Plugin Organizer to select on which page I want to load specific plugin. And I forgot to enable PW WooCommerce Gift Cards on cart page, as I enabled it on checkout page.

    Perhaps you should use Query Monitor to check if queries and loading (js, css) are done concerning PW WooCommerce Gift Cards.

    Best regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.