VirtueMart Forum

VirtueMart 2 + 3 + 4 => Frontend Modules => Topic started by: suvel on November 01, 2018, 00:53:37 AM

Title: [solved] VM Search module - Results do not use product override
Post by: suvel on November 01, 2018, 00:53:37 AM
Hello all,

Using php 7.1.21 - Joomla 3.9.0 - Virtuemart 3.4.2

At product settings I have set a product override to remove the "addtocart"-button. When I use VM Search module the search results return with a list where it seems that the override set at the product is ignored ("addtocart"-button visible). Does somebody has the same experience and knows how to solve this?

Thx...

[edit].. did some reseach and found out that the result list generated by VM Search module uses the sublayout products.php and obviously not the product override layout. List result is build by url and i'm afraid it is not possible to override the view for only specific products  :'(.
Title: Re: VM Search module - Results do not use product override
Post by: GJC Web Design on November 01, 2018, 10:21:33 AM
Quoteuses the sublayout products.php

exactly ...  the same as any category view of products

so u need to over ride the products.php in your template and make your changes there
Title: Re: VM Search module - Results do not use product override
Post by: suvel on November 01, 2018, 12:05:47 PM
Quoteso u need to over ride the products.php in your template and make your changes there

Thx for the confirmation.

Made override products.php to remove the "addtocart"-button for the specific category