Author Topic: Showing prices in Searches  (Read 451 times)

Offline svsanchez

  • Posts: 449
Showing prices in Searches
« on: July 17, 2018, 11:50:30 PM »
Hello!

Is it possible to show prices from bakery items when making a search on the site? If so, how do I do that?

Thank you!

Offline dbs

  • Betatester
  • **
  • Posts: 7558
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Showing prices in Searches
« Reply #1 on: July 18, 2018, 10:12:56 AM »
Hello, try that in modules/bakery/search.php
Line 48 add comma + price
Code: [Select]
SELECT item_id, title, sku, definable_field_0, definable_field_1, definable_field_2, link, description, full_desc, modified_when, modified_by, price
Line 103 if you want the price in the title
Code: [Select]
'page_title' => $res['title'].' '.$res['price'].' €',
Line 104 if you want the price as first in description
Code: [Select]
'page_description' => $res['price'].' €<br />'.$res['description'],
But maybe a more bakery pro has better ideas.

Offline svsanchez

  • Posts: 449
Re: Showing prices in Searches
« Reply #2 on: July 19, 2018, 06:53:20 PM »
Hello dbs, thanks a lot, it worked perfectly!!!

 

postern-length