Author Topic: Can't add products to cart  (Read 2522 times)

fulleffect

  • Beginner
  • *
  • Posts: 17
    • Full Effect Drive in Shows
Can't add products to cart
« on: October 15, 2013, 11:02:56 am »
Hello,

I have installed virtuemart 2.0.24 on joomla 2.5.14.

When i try to add a product in the shopping cart, vm redirect to the shopping cart page witch stays blank (no info about the added product, or what so ever)

the link of the new website is http://www.partykledinghuren.nl/verhuur . I changed the "add" button to "reserveren" ;-)

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27565
  • Always on vacation
    • Jenkin Hill Internet
Re: Can't add products to cart
« Reply #1 on: October 15, 2013, 18:24:57 pm »
First you are loading two jQuery libraries which can cause issues. First you correctly load the VirtueMart required jQuery

<script src="/verhuur/components/com_virtuemart/assets/js/jquery.min.js" type="text/javascript"></script>
<script src="/verhuur/components/com_virtuemart/assets/js/jquery.noConflict.js" type="text/javascript"></script>

And then you load another version (I have no idea what that one is for):

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript"></script>
<script src="/verhuur/templates/ol_logez/scripts/noconflict.js" type="text/javascript"></script>

The IE10 thws an error with add to cart:
Line: 87
Error: Object doesn't support property or method 'fancybox'

This will stop the add to cart function. I suspect it is a conflict with jQuery 1.8.3 that is causing the problem, so there are two options. I'd start by removing that horrible gallery module from the product detail pages to see if that solves it.
Or in Configuration/Templates/Activate Css Styles & Javascripts deselect Use Fancybox so that Facebox will be used instead.

Also look at http://forum.virtuemart.net/index.php?topic=111843.0

Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VM 3.6.8.10197 on Joomla 3.9.13 PHP 7.0.33

dragsliv

  • Beginner
  • *
  • Posts: 1
  • A beginner
Re: Can't add products to cart
« Reply #2 on: June 30, 2016, 10:03:47 am »
I'm sorry to resurrect an old thread but I need help with my store. I can't get the products to work correctly.
The address is: http://sklep.jns.pl/

When I try to add products to cart it sometimes works and sometimes doesn't. I read previous posts about this issue but the fixes given didn't really help. Could someone help me with this?

Edit:
VirtueMart 3.0.16
Joomla! 3.4.8

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9173
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: Can't add products to cart
« Reply #3 on: June 30, 2016, 13:25:14 pm »
These issues are 99% template related

I see your using the excellent Horme template which is well supported-- ask on the Olympian forum for support
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation