Virtuemart Shopping Cart {form_addtocart}

it is my understanding that the different elements of the product details and browse pages all reference the shop.browse.php file with their smarty template references

for example, if you edit the file:
/administrator/components/com_virtuemart/html/templates/browse/browse_5.php

you will see the code {form_addtocart}

this is the code that inserts the add to cart button along with a quantity selector. but suppose you want to change the look, or remove the quantity attribute, or another change... where do you go?

it is all in
/administrator/components/com_virtuemart/html/shop.browse.php

the {form_addtocart} code starts around line 400

quick tip: search for $form_addtocart and you will find info for {form_addtocart} quickly. this is the same for other variables

4 comments:

Zsolt said...

hi, any idea how to remove the quantity selector

Zsolt said...

found it: products / display otpions

Anonymous said...

you describe how/where to change the style. we offer Virtuemart Designs for add to cart buttons and many more, take a look www.i-love-virtuemart.com

jerry said...

Check out our blog for all types of shopping cart and ecommerce solutions at extremely affordable rates. Contact to get disocunts and your online shop Now!