• Resolved labellaoffice

    (@labellaoffice)


    The pop-up does not activate on products I have specified. I can see on my tab “age verification” but nothing actually stops me entering the page.
    If I switch it to whole site it works perfectly.
    Please help!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Phil

    (@philsbury)

    HI,

    What manages the products? Are you using the JavaScript or “standard” version of the plugin? Do you have any caching enabled?

    If you have a testing link I’d be happy to have a look.

    Thanks
    Phil

    Plugin Author Phil

    (@philsbury)

    Hi,

    I found an issue when using WooCommerce to manage products that seems to replicate what you say above, if you update to 1.4.5 it should resolve the issue.

    Thanks
    Phil

    Thread Starter labellaoffice

    (@labellaoffice)

    Hi,

    I’m not using WooCommerce, I’m using WP eCommerce (as it had the payment method I needed).

    I guess I’m using the standard version of the plugin. Testing site is https://www.labellaitalia.co.nz/wordpress/shop/wine-2/ – so clicking on any of the wines listed should generate the pop-up but doesn’t. And like I said, on a PC, I can see “age verification” on the tab as it’s loading but then it just doesn’t come up.

    Thanks

    Plugin Author Phil

    (@philsbury)

    Looks like WP eCommerce is knocking out loads of the Age Gate hooks etc as even the JS files don’t appear on the page in Javascript mode. But only in shop pages, it’s ok on a standard page.

    I’ll dig into it some more and try to work out what it’s doing.

    Cheers,
    Phil

    Plugin Author Phil

    (@philsbury)

    So when we are on a product page the ‘template_include’ hook no longer works (something I’ll have to look at or raise with the WPeC devs). It still works fine on standard pages so I think there’s something in their setup that stops it.

    The age gate currently relies on this for both the “standard” and “cache bypass” version.

    While the standard version will need further investigation as to why it’s not firing, I have been able to tweak how the Cache Bypass version is fired. Below is a link to an alpha version with this fix in, just install it and select cache bypass in the settings and it should then work.
    https://www.dropbox.com/s/bw7xpdarkagmuta/age-gate_1.4.6-alpha.zip?dl=0

    I’ll look into a proper fix for the standard implementation, but hopefully this will enable you to get things working in the meantime.

    Cheers
    Phil

    • This reply was modified 7 years, 4 months ago by Phil.
    Thread Starter labellaoffice

    (@labellaoffice)

    Hi Phil,

    Thank you so much! This has worked for the interim. I had to delete the original Age Gate to install the Alpha, so please let me know when I can switch back to the original plugin.

    Thank you,
    Ayalla

    Plugin Author Phil

    (@philsbury)

    No problem, it should automatically update when I release the next stable version, but I’ll add a note on here anyway.

    I’ve opened an issue with WPeC so hopefully they’ll come back to me and I won’t have to dig through all their code to make mine work again!

    Thanks
    Phil

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Does not work on specified pages’ is closed to new replies.