• Resolved graphicedge

    (@graphicedge)


    Hi there,

    I installed the free version to test out your plugin with the intention on buying it once I tested it. I set up the gift card to be exactly what I need, only the To/From/Message areas do not appear when I select the amount.

    Secondly, I can’t even add the gift card to my cart. I do have it “hidden” so my customers can’t find it, but even when it was visible in the shop these functions didn’t work.

    I’ve tried the checkbox fix in the settings but it doesn’t work. All of my plugins are up to date so I’m not sure where to go next. Any advice would be greatly appreciated.

    Thank you!

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author pimwick

    (@pimwick)

    I checked the HTML code for your site and do not see the pw-gift-cards.js file nor the gift card form fields.

    This could be due to an outdated WooCommerce template file in your theme. It is usually possible to fix this using the following setting:

    1. Log into your WordPress admin area.
    2. Click on Pimwick Plugins -> PW Gift Cards -> Settings
    3. Check the box “Apply fix for missing fields”
    4. Click on “Save Settings”

    Now return to the gift card product page and click Reload.

    If the fields still do not appear, click on WooCommerce -> Status -> Scroll down to the Templates section and look for the outdated overrides. You will need to contact your theme developer about having these updated or else the gift card product won’t be compatible with your site.

    Thread Starter graphicedge

    (@graphicedge)

    Yeah, I’ve tried the checkbox for the fix before and that didn’t work.

    Can you tell me which theme file might need the pw-gift-cards.js information? While not a developer, Im fairly confident in being able to place a piece of script into one of the template files.

    Plugin Author pimwick

    (@pimwick)

    Looking at the code, the fact that pw-gift-cards.js file is not being loaded means there is a more fundamental problem. It is called in the wp_enqueue_scripts hook so should be available regardless of the template file.

    There could be something crashing on the server side that prevents the gift cards plugin from even loading.

    Check the PHP Error log on your server to see if there are any errors being thrown. If the gift card plugin doesn’t get to load then this file won’t appear on your site.

    Thread Starter graphicedge

    (@graphicedge)

    There aren’t any errors being logged related to your plugin – is there a way I can hand-code the wp_enqueue_scripts hook to call out to the pw-gift-cards.js specifically? I do have the script code in the script-loader.php file on my site, so the enqueue should be working. I’m thinking if I can code it in a custom area within my WordPress theme that I can get it to function?

    Plugin Author pimwick

    (@pimwick)

    The problem isn’t just that file not loading, from looking at the HTML on the gift card product *none* of the gift card data is loading.

    From what I can see just looking at the page, it’s as if the gift card plugin is deactivated.

    When you view the source, you should see “pwgc” fields as well as the pw-gift-cards.js file.

    At this point you can troubleshoot further by first testing a different theme. If it still doesn’t work, then try temporarily deactivating other plugins until you find the culprit. Once you do narrow it down we can dig in further to see what our next steps are.

    Thread Starter graphicedge

    (@graphicedge)

    Wow, okay. Yeah I tested the plugin on another WordPress WooCommerce site I have access to and it worked fine. And for this site, the plugin is definitely installed and activated. I’ll go through the other plugins one-by-one to see if one of those are. Will report back.

    P.S. This is the best plugin support I’ve ever received. You guys are amazing: informative, quick, and patient.

    I APPRECIATE YOU! I’ll be back in touch hopefully shortly with an update. THANK YOU!

    To Be Continued…

    Plugin Author pimwick

    (@pimwick)

    The hardest part is probably finding the source of the problem. At least once we know what’s causing it then we can take action.

    Good luck, let me know what you find out! I’ll leave this thread open until we have some sort of resolution.

    Thread Starter graphicedge

    (@graphicedge)

    Okay. So here’s what I did. I went plugin-by-plugin and nothing helped. Then, I deactivated all of the plugins, still nothing.

    THEN I kept all of the plugins on and switched the theme to a basic Twenty Nineteen. And it worked! (I temporarily switched to the old theme, and it re-broke again).

    Next I took turns activating each plugin on the other theme and one of the plugins that goes with the old theme deactivated your gift certificate one.

    So, the old theme breaks your plugin, and so does one of their affiliated plugins.

    The theme is from a company called WPDance, and the theme is wdjewelry. The plugin that also breaks yours is WD QuickShop. It looks like they were in business in 2012, and I can’t even find a clean version of the jewelry theme on their website.

    I’m not sure where this leaves us from here. Any thoughts? I’m fairly certain my client isn’t going to want to redesign his site with a whole new theme.

    Plugin Author pimwick

    (@pimwick)

    Great, you’re on the trail!

    Can you email us directly at [email protected]? If you can send us the source code for the old plugin we will see if there is anything that we can do in our plugin to prevent the issue from occurring. Sometimes there are hooks or other things available that will facilitate this.

    Plugin Author pimwick

    (@pimwick)

    The problem was the theme has an outdated template file that incorrectly alters the Option Value for the dropdown menu for Variable products.

    A quick solution is to turn off the “Format Prices” under Pimwick Plugins -> PW Gift Cards -> Settings.

    We are corresponding with the user directly but I’m closing this thread since the “Format Prices” setting did correct the issue in this instance so it could be a possible solution for other users in the future.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘No To/From/Message Field When Selected Amount’ is closed to new replies.