Author Topic: [solved] VM3 - Addtocart template override  (Read 1384 times)

nordmograph

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 169
  • VirtueMart Version: 3 on Joomla3
[solved] VM3 - Addtocart template override
« 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.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27480
  • Always on vacation
    • Jenkin Hill Internet
Re: VM3 - Addtocart template override
« Reply #1 on: December 06, 2014, 13:25:35 pm »
You can also override the sublayouts. Put the override file in yourtemplate/html/com_virtuemart/sublayouts/
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.3.10057 on Joomla 3.9.10 PHP 7.0.33
Testing VM 3.5.0.10097 on Joomla 3.9.10

nordmograph

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 169
  • VirtueMart Version: 3 on Joomla3
Re: VM3 - Addtocart template override
« Reply #2 on: December 06, 2014, 17:18:48 pm »
Hi Kelvin,

Great news, thanks !