On my website I have a Sold Items category qhere I put the items aftey they were sold. Everytime somebody search for something the products from the Sold Items category show up also but I dont want them to show up. How would I do it?
On my website I have a Sold Items category qhere I put the items aftey they were sold. Everytime somebody search for something the products from the Sold Items category show up also but I dont want them to show up. How would I do it?
I dont know if there is a direct way to do it but you can modify the search related file to not include the products in the search results which are sold
Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php
---------------
advanced.programmer at gmail dot com
In love with Zen Cart!!
How can I do that?
Replace this line
with thisCode:$where_str = " WHERE (p.products_status = 1 AND p.products_id = pd.products_id AND pd.language_id = :languagesID AND p.products_id = p2c.products_id AND p2c.categories_id = c.categories_id ";
Please take the backup before you make this changeCode:$where_str = " WHERE (p.products_status = 1 AND p.products_quantity > 0 AND p.products_id = pd.products_id AND pd.language_id = :languagesID AND p.products_id = p2c.products_id AND p2c.categories_id = c.categories_id ";
Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php
---------------
advanced.programmer at gmail dot com
In love with Zen Cart!!
includes/modules/pages/advanced_search_result/advanced_search_result/header_php.php
Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php
---------------
advanced.programmer at gmail dot com
In love with Zen Cart!!
Wait a minute .... instead of just moving the items to the sold category, why not just mark them sold out? (or both?)
That way you wouldn't need to modify any code.
That Software Guy. My Store: Zen Cart Modifications
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Thanks superprg, that worked. swguy if I do that it will still have the sold out items in the category with the items for sale. I want to have all the sold ones separate.
Bookmarks