News:

Support the VirtueMart project and become a member

Main Menu

add to cart php file?

Started by jankoo, March 19, 2015, 23:05:43 PM

Previous topic - Next topic

jankoo

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

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation