Author Topic: Add to cart button in category layout  (Read 5956 times)


  • Beginner
  • *
  • Posts: 1
Add to cart button in category layout
« on: May 07, 2012, 19:26:35 pm »
Hello guys, I am new here on the forum and have been using Virtumar 1.x for quite a long while now, as I'm new to 2.x I have a question about this version.
Is there a possibility to put an add to cart button in the category view were al the products in one category are listed, so that de customer doesn't have to go to the product page in order to add this product to the basket?

Thanks in advance.

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 96
  • Mobile Solutions for VirtueMart 2
Re: Add to cart button in category layout
« Reply #1 on: May 08, 2012, 10:50:09 am »
Don't know if there already has a solution for this or not, but you can get it by making a template override
(Understanding  about VIEW in VM 2:

- First, find the code to control "categories" layout here:

- Then, read code of generate add to cart control, in product details view:

Then you can easy bring the add to cart function to categories view.

I know that this is a hand-by-hand guide, but I hope that it will give you a point to do a research and then apply it for your own purpose

Author of Jtouch - Mobile solution for Joomla & VirtueMart

K&K media production

  • VirtueMart Developer Team
  • Global Moderator
  • Full Member
  • *
  • Posts: 838
  • VirtueMart Version: VM3 on J3