News:

Support the VirtueMart project and become a member

Main Menu

Remove "addtocart-area" from category but not from product details

Started by Animakai, August 15, 2017, 14:47:26 PM

Previous topic - Next topic

Animakai

Hi Ppl!

I have a question for you. I want to remove/dissapear the addtocart-area (specifically addtocart button and custum-field) from the category layout/or front page but not from product details. Is this possible?

Im using VM3.

Thx.

K&K media production

You can make a template override for the sublayout products.php. Look around line 127 for this code and disable or delete it.

echo shopFunctionsF::renderVmSubLayout('addtocart',array('product'=>$product,'rowHeights'=>$rowsHeight[$row], 'position' => array('ontop', 'addtocart')));

Animakai

Thx for response K&K.

I deleted that row and save but anything change. The problem is in the original layout archive?

K&K media production

No it depends on your template. If you've a override for this sublayout, you must change the existing sublayout. If you don't have it, create it. But is also possible that your template don't use the sublayout. If you've a old or commercial template, you should ask your template developer to find the code to delete.