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.