VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: CreativeDesigns on September 25, 2013, 17:04:31 PM

Title: Not adding to cart
Post by: CreativeDesigns on September 25, 2013, 17:04:31 PM
Somehow you guys always manage to help me out.. Hope you can help me again this time :)
Check out the site here: http://creativedev2.co.za/colour/
For some reason, when I click on "add to cart, it doesn't add to the cart.. Why is this happening?
How to fix? :)

Title: Re: Not adding to cart
Post by: jenkinhill on September 25, 2013, 19:54:32 PM
In Firefox the error console gives this on add to cart
"NetworkError: 500 Internal Server Error - http://creativedev2.co.za/colour/index.php?option=com_virtuemart&nosef=1&view=cart&task=addJS&format=json&quantity%3D1%26quantity%255B%255D%3D2%26option%3Dcom_virtuemart%26view%3Dcart%26virtuemart_product_id%255B%255D%3D39&_=1380130724649"

IE10 gives this error:
Given URL is not permitted by the application configuration.: One or more of the given URLs is not allowed by the App's settings.  It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.

So something not right there - bu I don't know what.

Next issue I see is the first jQuery you load is:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js" type="text/javascript"></script>

Then later you load this:
<script src="/colour/media/jui/js/jquery.min.js" type="text/javascript"></script>

The version required by VirtueMart, jQ1.6.4 is not loaded at all, so I'll guess it is using one of the other versions. ISTR that VM will not work properly with jQ1.8 so maybe start by removing whatever is loading that version, or stop it from loading. Anyway, you should only load one version of jQuery - the VM one if you want that to work!

Maybe see http://forum.virtuemart.net/index.php?topic=111843.0

Also you don't say which VM version you are using. Current latest version is 2.0.22e

Title: Re: Not adding to cart
Post by: CreativeDesigns on September 27, 2013, 07:28:22 AM
I appreciate your response. Thank you so much.
I have disabled all the modules - and I've switched JS off on the template itself, but it's still not working no matter what I try :(
Any chance I can PM you the site details to see if I have missed anything?
Title: Re: Not adding to cart
Post by: CreativeDesigns on September 27, 2013, 09:33:02 AM
Do you have any idea which component / module / plugin, this ajax error is coming from?

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js" type="text/javascript"></script>

I have tried disabling the modules, components, menu's and plugins one by one, and nothing has changed anything.
The template I am using is from http://demo.omegatheme.com/joomla25/ot_sexyqueen/
I installed the demo - so it SHOULD have worked like theirs.. I have left a message on their forums too :(
Title: Re: Not adding to cart
Post by: jenkinhill on September 27, 2013, 10:41:36 AM
Switch to Beez template & see if VM works there. If it does work there then the issue is in your Joomla template, something we cannot help with.
Title: Re: Not adding to cart
Post by: Maxim Pishnyak on September 29, 2013, 20:50:52 PM
Issue here
<script src="/colour/media/jui/js/jquery.min.js" type="text/javascript"></script>