WebsiteBaker Support (2.8.x) > Bakery Shop

Showing prices in Searches

(1/1)

svsanchez:
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!

dbs:
Hello, try that in modules/bakery/search.php
Line 48 add comma + price

--- Code: ---SELECT item_id, title, sku, definable_field_0, definable_field_1, definable_field_2, link, description, full_desc, modified_when, modified_by, price
--- End code ---

Line 103 if you want the price in the title

--- Code: ---'page_title' => $res['title'].' '.$res['price'].' €',
--- End code ---

Line 104 if you want the price as first in description

--- Code: ---'page_description' => $res['price'].' €<br />'.$res['description'],
--- End code ---

But maybe a more bakery pro has better ideas.

svsanchez:
Hello dbs, thanks a lot, it worked perfectly!!!

Navigation

[0] Message Index

Go to full version