Hi,
I want to change the look of the advanced_search_result page if search returns just 1 product. How would one write that?
Thanks,
Eric
Hi,
I want to change the look of the advanced_search_result page if search returns just 1 product. How would one write that?
Thanks,
Eric
The search results are displayed using the product_listing module and its tpl_modules_product_listing.php subtemplate, just like any category or manufacturer does.
How to change what it does for just 1 result can be done a number of different ways, depending on what exactly it is you want to change.
One way would be to edit (your customized copy of) tpl_advanced_search_result_default.php and add code like " if ($result->number_of_rows ==1) { do something} ". But, again, it really depends on "what" you're wanting to do.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Bookmarks