VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: jankoo on March 19, 2015, 23:05:43 PM

Title: add to cart php file?
Post by: jankoo on March 19, 2015, 23:05:43 PM
hi,
i'm playing with your latest virtuemart version and going to customize the frontend layout with rewrite files..

but i can't find file where i can modify add to cart button.. on product page i see classes like "addtocart-bar" "addtocart-button" and others.. but in the file /views/productdetails/default.php there is just fuction called the button.. how i can rewrite classes for this button??

thanks a lot
Title: Re: add to cart php file?
Post by: GJC Web Design on March 20, 2015, 12:22:53 PM
depends what you want to do to the button..

prob is it isn't rendered in an over ride

the func is called in com_virtuemart\sublayouts\addtocartbar.php

from the helpers/shopfunctionsf.php

func  getAddToCartButton()

if just it's appearance use css