Archived topic
GeneratePress Premium plugin breaking add to cart on Woocommerce product pages
6 replies · Started by TWMA Support on January 22, 2019
Hi
I cant add products to the cart from the individual product pages. When I click add to cart it just returns me to the product page with no notification or total added next to the shopping cart in the menu (GeneratePress feature). It does though allow me to add products to the cart from the catalogue page.
I have carried out all updates and I have disabled all plugins and then enabled them one by one checking after each one was enabled and the only plugin to break the process is the GeneratePress Premium plugin.
Please advise asap.
Thanks
Hi there,
Do you have any Hooks added using GP Premium? If so, does the issue go away if you disable those hooks?
GPP itself is working as intended on single product pages: https://gpsites.co/seller/product/happy-ninja-hoodie/
Let me know :)
Hi
Thanks for coming back so quickly. Yes that worked. Should I use snippets rather for the tracking hooks for SharpSpring that I have in place? Another work around/fix?
Can you share the problem hook? How it's added likely doesn't matter - it may just break the single product page, unfortunately.
Hi
Its the after content hook (and also wp-footer...just tested it in there).
Got some SharpSpring jquery in there for a native form
<script type="text/javascript">
var __ss_noform = __ss_noform || [];
__ss_noform.push(['baseURI', 'https://app-xxx.marketingautomation.services/webforms/receivePostback/xxx/']);
__ss_noform.push(['endpoint', 'xxx']);
</script>
<script type="text/javascript" src="https://koi-xxx.marketingautomation.services/client/noform.js?ver=1.24" >
</script>
*identifying number strings removed and replaced with xxx
Hi
Just discovered that script was in the actual page and the GP Hook. so the double running of it probably caused the issue.
Thank you for suggesting to look in the hooks though, wouldnt have thought to look there.
No problem! Glad I could help :)