News:

Support the VirtueMart project and become a member

Main Menu

Add to cart button

Started by gavner25, July 27, 2020, 03:15:26 AM

Previous topic - Next topic

gavner25

Hi, when i click on the add to cart button on my page i want it to be an ajax button so it dosent navigate to another page. Also, the item is not getting added to the cart on the top right. Click on the blue 'Be youthful c.v' image to see add to cart button.

http://thewhitehawk.co.uk/be_employable/index.php/be-youthful-products

jenkinhill

Wierd template!  Loading 35 css and33 js files is a bit OTT for such a simple looking layout.  I'd see if the site works using a standard template, Protostar or Beez.

Failing to stay on the product details page is usually caused by having "Display modal popup upon 'Add to cart'" deselected in VM Configuration/Checkout.

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

gavner25

Thanks for replay. I tried it on beez templte and the same things happens. I have cart popup option selected in configuration.

GJC Web Design

your "add to carts" are links .. not a form that is submitted like a conventional product details page which is needed to fire the JS that creates the popup

http://thewhitehawk.co.uk/be_employable/index.php/shop1/cart/add?quantity
  • =1&virtuemart_product_id[0]=29&virtuemart_category_id[0]=10
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