News:

Support the VirtueMart project and become a member

Main Menu

How to show "Add to Cart" button in Virtuemart Homepage

Started by Jumbo!, December 27, 2011, 19:56:18 PM

Previous topic - Next topic

Jumbo!

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?

PRO

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.