Author Topic: Vendor store description on search results page  (Read 204 times)

Leila

  • Beginner
  • *
  • Posts: 6
  • A beginner
Vendor store description on search results page
« on: September 28, 2018, 14:23:20 pm »
Hi!  Is it possible to hide vendor store description on virtuemart search results page before search results? I need it on my default page which is top level category layout but not on results page! I dont understand why and for what reason it is there. Explain me please or help me to hide or delete it. I use Virtuemart 3.4.0

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3354
  • using Matomo instead of Google Analytics
Re: Vendor store description on search results page
« Reply #1 on: September 28, 2018, 22:46:19 pm »
Do you use a VirtueMart plugin which might add that? I'm not aware of a form field labeled 'Vendor Store Description' in the VM core.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8200
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Vendor store description on search results page
« Reply #2 on: September 28, 2018, 23:27:19 pm »
in a components\com_virtuemart\views\category\tmpl\default.php overide change the line

if ($this->show_store_desc and !empty($this->vendor->vendor_store_desc)) { ?>

to

if ($this->show_store_desc and !empty($this->vendor->vendor_store_desc) and empty($this->keyword) ) { ?>
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

Leila

  • Beginner
  • *
  • Posts: 6
  • A beginner
Re: Vendor store description on search results page
« Reply #3 on: September 29, 2018, 08:32:29 am »
My backend is in Russian so I am not sure about correct translation (Virtuemart  > Shop > Description).
Ive already done override but Id like to know why store description on search results page can not be hidden in settings. I think it is not very comfortable especialy on mobile to scroll downl all that sheet of store description to see search results.:)
But maybe there is a reason for this, will you explain me?
Besides store description block is on every page of pagination!



GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8200
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Vendor store description on search results page
« Reply #4 on: September 29, 2018, 09:59:45 am »
I have already told u how to do this...

We could have settings for 100's of more configurations and user wishes -  but obviously there has to be limits
just do the simple change I mention
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

Leila

  • Beginner
  • *
  • Posts: 6
  • A beginner
Re: Vendor store description on search results page
« Reply #5 on: September 29, 2018, 11:45:30 am »
GJC Web Design, thank you for your help!
I understand that it is impossible to meet needs of all users but I really think my question is obvious. I looked through different VM templates and many of them delete/ hide store description section and categories from search and pagination. This little thing makes people use overrides. I worry because recently I met errors with overrides after update and now I try to minimise them.
So I just want to know the reasons of such layout. Maybe I dont understand obvious things and vendor description MUST be on results page and pagination.

Regards!