VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Jumbo! on December 27, 2011, 19:56:18 PM

Title: How to show "Add to Cart" button in Virtuemart Homepage
Post by: Jumbo! on December 27, 2011, 19:56:18 PM
How can I show "Add to Cart" button in Virtuemart Homepage for the Featured Products, Latest Products and Top Ten Products.

I know that I have to modify the following file: components\com_virtuemart\views\virtuemart\tmpl\default_products.php But just not getting the correct set of codes.

I have already managed to get it working on the Category Page or Browse Page with the help of this thread: http://forum.virtuemart.net/index.php?topic=90961.0

Can anyone please guide me?
Title: Re: How to show "Add to Cart" button in Virtuemart Homepage
Post by: PRO on December 27, 2011, 20:32:10 PM
you would have to put some code in

views/virtuemart/view.html.php

WHICH I would not do. Cause you cant override it

What I would do is use the modules instead which already have the code in them for the add to cart.