| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How do you edit the search result page layout? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi everyone,
I want to edit the layout of the search result page. Right now, it shows the same layout for the found products as I am using on the category pages but this is not wanted. Any idea how to edit this behaviour or how to build a custom layout for just the search result page? I know skin1/customer/main/search_result.tpl controls the page in question but there is no way to edit its layout. All the relevant code I see is: Code:
__________________
www.qualitylamps.eu X-Cart Gold 4.1.8, PHP 5.2.6, MySQL 5.0.51a, Apache 2.2.9 www.vervangjelamp.nl X-Cart Gold 4.2.0, PHP 5.2.6, MySQL 5.0.37-standard, Apache/2 Sorry for the weird user name, I registered it by mistake ![]() |
|||||||
#2
|
|||||||
|
|||||||
![]() The easiest way is to create a custom products template. So do this, replace this:
{include file="customer/main/products.tpl" products=$products} with this: {include file="customer/main/products-search.tpl" products=$products} Then create a copy of products.tpl, rename it products-search.tpl and edit however you want.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
#3
|
|||||||
|
|||||||
![]() That's a good suggestion, why didn't I think of that myself. Will work on it, thanks balinor
![]()
__________________
www.qualitylamps.eu X-Cart Gold 4.1.8, PHP 5.2.6, MySQL 5.0.51a, Apache 2.2.9 www.vervangjelamp.nl X-Cart Gold 4.2.0, PHP 5.2.6, MySQL 5.0.37-standard, Apache/2 Sorry for the weird user name, I registered it by mistake ![]() |
|||||||
#4
|
|||||||
|
|||||||
![]() Does anyone know how to link to the product's main category from the search result page? It seems impossible to do but nothing is impossible, right? I tried:
Code:
__________________
www.qualitylamps.eu X-Cart Gold 4.1.8, PHP 5.2.6, MySQL 5.0.51a, Apache 2.2.9 www.vervangjelamp.nl X-Cart Gold 4.2.0, PHP 5.2.6, MySQL 5.0.37-standard, Apache/2 Sorry for the weird user name, I registered it by mistake ![]() |
|||||||
#5
|
|||||||
|
|||||||
![]() Nobody knows?
__________________
www.qualitylamps.eu X-Cart Gold 4.1.8, PHP 5.2.6, MySQL 5.0.51a, Apache 2.2.9 www.vervangjelamp.nl X-Cart Gold 4.2.0, PHP 5.2.6, MySQL 5.0.37-standard, Apache/2 Sorry for the weird user name, I registered it by mistake ![]() |
|||||||
#6
|
|||||||||
|
|||||||||
![]() You can use webmaster mode to see what smarty variables are available to you on that page load. If there is no variable for the data you seek, then php has to be updated to provide it. This post gives more detail about using webmaster mode to find available variables.
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold (CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module) |
|||||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|