VirtueMart Forum

VirtueMart 2 + 3 + 4 => Frontend Modules => Topic started by: postkat on May 28, 2018, 10:31:06 AM

Title: VirtueMart Products module add to cart ot working
Post by: postkat on May 28, 2018, 10:31:06 AM
Hi all,

I have a problem with the virtuemart products module on the front page.
The add to cart functions are not working and I cannot find the reason why..

Things I have tried that are definitely not the problem:
A template switch
With or without the module template override
Disable other modules (didn't expect that to work because the modules are published on all pages )

The only difference in Javascript I can find is /media/system/js/caption.js. and removing caption.js made no difference.

The only difference in code (between frontpage and category page) is the form action.

I really hope someone can help me with this because I don't know where to look anymore.

Regards,
Dorine

Title: Re: VirtueMart Products module add to cart ot working
Post by: Studio 42 on May 28, 2018, 10:34:57 AM
If you provide a link to your shop and information about Virtuemart release, we can perhaps help you.
Title: Re: VirtueMart Products module add to cart ot working
Post by: postkat on May 28, 2018, 10:59:13 AM
Sorry, forgot to mention the details:
Virtuemart version 3.2.14
And the link: https://nieuw.prodynamictape.com/
Title: Re: VirtueMart Products module add to cart ot working
Post by: Jörgen on May 28, 2018, 11:18:54 AM
QuoteThings I have tried that are definitely not the problem:

You have not checked enough, works definitely with protostar:

https://nieuw.prodynamictape.com/en/tape-accessories?template=protostar (https://nieuw.prodynamictape.com/en/tape-accessories?template=protostar)

regards

Jörgen @ Kreativ Fotografi
Title: Re: VirtueMart Products module add to cart ot working
Post by: postkat on May 28, 2018, 11:32:37 AM
The problem is only on the frontpage not on other pages
Title: Re: VirtueMart Products module add to cart ot working
Post by: postkat on May 28, 2018, 13:35:35 PM
Never mind, I found the problem and a solution.

The problem was the multiple virtuemart product modules on one page.
So I embedded the modules each in their own article.

Regards,
Dorine
Title: Re: VirtueMart Products module add to cart ot working
Post by: Jörgen on May 28, 2018, 15:41:39 PM
Good that you found it. But you have changed more, because I can not find anything that is ordertable on front page, I do get a page not found message a bit down on the page.

Regards
Jörgen @ Kreativ Fotografi
Title: Re: VirtueMart Products module add to cart ot working
Post by: Studio 42 on May 28, 2018, 16:05:45 PM
And add to cart is not working properly.You have to disable Joomla page cache.
Title: Re: VirtueMart Products module add to cart ot working
Post by: postkat on May 29, 2018, 08:39:53 AM
Studio 42, you are right. I disabled the page cache.

Jörgen, when you visited the website I was probably still working on the fix.

Title: Re: VirtueMart Products module add to cart ot working
Post by: Jörgen on May 29, 2018, 09:35:30 AM
Great to hear that You got it working, Joomla cache seems to be making more trouble than it is worth.

regards

Jörgen @ Kreativ Fotografi