News:

Looking for documentation? Take a look on our wiki

Main Menu

Product is added to cart from Category view but not from Detail view

Started by The Yellow Fellow, May 29, 2015, 11:53:21 AM

Previous topic - Next topic

The Yellow Fellow

I have a shop with some products that have custom fields to provide for some customer input.

In the frontend, when I click the Add-to-cart button from the Category view, the product is added to the Cart (without the customer having filled in the custom fields, obviously),
but when I click the Add-to-cart button from the Product Details view I do get transferred to the Cart, but the product isn't added.

I'm kinda stuck at the moment, please help me!

jenkinhill

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

The Yellow Fellow


The Yellow Fellow

Some extra info and things I've tried so far:

  • Disabled my template override (I use it for displaying the categories in the detail view, kinda like tags);
  • Created a new product without any custom fields;
  • The quantity plus and minus buttons don't work in detail view either (they do in category view)

GJC Web Design

sounds like a javascript error on the detail page - plenty of info on here about debugging JS
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

The Yellow Fellow

Quotesounds like a javascript error on the detail page - plenty of info on here about debugging JS

No JS errors are showing up in Firebug, suggestions anyone?

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

The Yellow Fellow

Category view: http://goo.gl/hmXHxA
Detail view: http://goo.gl/u6wgFL

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

The Yellow Fellow

I removed the second JQuery script from my template and installed a fresh Joomla 3.41 site with the same Virtuemart version on the same server (for comparison). It works fine in the freshly installed site (http://j3.test.biblionetdrenthe.nl/index.php/shop/testcat).

I compared all the JS and the only difference I can see is that in the non-working site jquery.noconflict.js is loaded by Virtuemart, which isn't the case with the fresh demo site.
I removed it using unset($this->_scripts[$this->baseurl .'/components/com_virtuemart/assets/js/jquery.noconflict.js?vmver=8847']); but that didn't help.

Choosing a different template (e.g. Protostar) doesn't help either  :( I'm kinda stuck...



The Yellow Fellow

Solved it myself!

I had disabled the Show Prices checkbox and it seems that was the cause of the problem. I now enabled the Show Prices checkbox and disabled all of the 'underlying' checkboxes and now the quantity box and the add to cart button are working again.  :)