| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Show only items in stock button | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Show only items in stock button
Howdy,
Based on feedback on our store I made this quick and simple mod to enable people to view only items in stock. http://www.pchealth.ie to see it in action (this is a live store) This is how I did it in X-Cart 4.0.18: In include/search.php below Code:
add Code:
locate Code:
Code:
in /products.php add (last line before '?>') Code:
locate Code:
Code:
in /search.php add (last line before 'func_display("customer/home.tpl",$smarty);') Code:
create a file /skin1/customer/main/show_instock.tpl and add Code:
in /skin1/customer/main/subcategories.tpl /skin1/customer/main/search_result.tpl (if you have the Manufacturers modules activated also /skin1/modules/Manufacturers/customer_manufacturer_products.tpl) add Code:
Code:
if you have the Manufacturers module activated also do this: in /modules/Manufacturers/customer_manufacturers_list.php locate Code:
Code:
Code:
And that should be about it... I know this isn't the best of recipes, but I hope someone might find it useful, at least for inspiration. Hasse
__________________
Hasse |
|||||||
|
|||
X-Cart forums © 2001-2020
|