News:

Looking for documentation? Take a look on our wiki

Main Menu

Not adding to cart

Started by CreativeDesigns, September 25, 2013, 17:04:31 PM

Previous topic - Next topic

CreativeDesigns

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? :)


jenkinhill

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

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

CreativeDesigns

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?

CreativeDesigns

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 :(

jenkinhill

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.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Maxim Pishnyak

Issue here
<script src="/colour/media/jui/js/jquery.min.js" type="text/javascript"></script>
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart