Author Topic: [solved] VM Search module - Results do not use product override  (Read 1012 times)

suvel

  • Beginner
  • *
  • Posts: 11
[solved] VM Search module - Results do not use product override
« 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  :'(.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8892
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: VM Search module - Results do not use product override
« Reply #1 on: November 01, 2018, 10:21:33 am »
Quote
uses 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
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

suvel

  • Beginner
  • *
  • Posts: 11
Re: VM Search module - Results do not use product override
« Reply #2 on: November 01, 2018, 12:05:47 pm »
Quote
so 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