VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: nordmograph on December 06, 2014, 13:05:49 PM

Title: [solved] VM3 - Addtocart template override
Post by: nordmograph on December 06, 2014, 13:05:49 PM
Hi there,

I needed a custom addto cart button without quantity box. So I added the default_addtocart.php from the productdetails view to the html/com_virtuemart/productdetails of my Joomla template and modified it.
But It didn't work.

I then found out that it was the file from the sublayout folder (outside the view) that was used. Is there a way we can use template override for this ?

Thanks for your help.
Title: Re: VM3 - Addtocart template override
Post by: jenkinhill on December 06, 2014, 13:25:35 PM
You can also override the sublayouts. Put the override file in yourtemplate/html/com_virtuemart/sublayouts/
Title: Re: VM3 - Addtocart template override
Post by: nordmograph on December 06, 2014, 17:18:48 PM
Hi Kelvin,

Great news, thanks !