VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Hannes van As on July 22, 2015, 21:07:34 PM

Title: Clicking Add to Cart give empty cart page
Post by: Hannes van As on July 22, 2015, 21:07:34 PM
Good day

I am developing a website for a friend.  I have a lot of experience with Joomla 3 and developing templates for Joomla itself, but this is my first encounter with VirtueMart.  The site is still on my local machine - running on Bitnami Wamp - Joomla version 3.4.3, VirtueMart version 3.0.9.

My problem:
When I use my own template and I click on add to cart, it jumps to the cart page and shows no items in the cart.  This occurs in Products Category page as well as Product Details page.

When I use default Protostar template then everything works fine.  So I guess this is a template issue?  I have read somewhere on this forum that your template must be VirtueMart 3 compatible.  Question is, how do I make my template VM 3 compatible?  What needs to change?

I didn't change any of the Joomla Core files nor any of the Virtuemart core files.  I simply created a brand new template for Joomla itself and would like to use it for the Virtuemart part of the website as well.

Thanks for your help.

Hannes
Title: Re: Clicking Add to Cart give empty cart page
Post by: jenkinhill on July 22, 2015, 23:37:36 PM
You probably have a JavaScript issue. Check with your favourite debugger.

There is no such thing as a VM compatible Joomla template. They should all be compatible unless they use wierd scripting or have too many bells & whistles.
Title: Re: Clicking Add to Cart give empty cart page
Post by: Hannes van As on July 22, 2015, 23:53:42 PM
Hi

Thanks for the quick reply. It set me on the right track.  I don't use any custom javascript with my template, but I did install the jQuery Easy extension for Joomla. I disabled it now and loaded the Joomla jQuery framework in no conflicts mode in my template, and now everything is working fine - so far.

Thanks again!
Title: Re: Clicking Add to Cart give empty cart page
Post by: jenkinhill on July 23, 2015, 11:23:39 AM
You do not usually need jQueryEasy with VM3 on J3
Title: Re: Clicking Add to Cart give empty cart page
Post by: nikki021 on July 26, 2015, 08:56:36 AM
I was having a similar kind of issue but not any more. Fixed!