When a search generates only one product is there a way to go straight to the product, and not stop at the Search Results Layout page?
Announcement
Collapse
No announcement yet.
Search Results Layout
Collapse
X
-
Search Results Layout
Keith Oratz
PrepareSmart, LLC - Emergency Preparedness Supplies and Professional Grade Search and Rescue Gear
www.preparesmart.comTags: None
-
Re: Search Results Layout
Not by default, but you could add some code to redirect to the correct page.
Code:<mvt:assign name="g.results_returned" value="miva_array_elements( l.settings:search_results:products )" /> <mvt:if expr="g.results_returned EQ 1"> <mvt:assign name="l.null" value="miva_output_header( 'Location', '/product/' $ l.settings:search_results:products[1]:code $ '.html' )" /> </mvt:if>
Comment