DmSProject Posted April 14, 2004 Posted April 14, 2004 Hi all. As I'm configuring a catalog for a customer of mine we have noticed that if a product is marked "not in stock" as status, it won't be shown to the customers since "not in stock" is used to disable a product. Can this be easily changed? This client has a limited stock of products, but wants to show the customers all the things he can order for them even if he doesn't hold them in stock right now. I've looked at the option of setting it as stocked and not deduct from stock on order, but that wouldn't be correct since the things he does have in stock, he wants to keep track of the quantity. I've seen that the condition " products_status = '1' " exsists in 30+ places in the code inside different queries so it's quite a big hack to change it everywhere, plus it still wouldn't be exact what he wants. The ideal situation would be if I was able to show all products and flag all that isn't in stock with "Will be ordered on request" or something similar. I've searched for contributions that handle this and/or posts on it but have come up dry so far. I can do this myself so I'm not asking anyone else to do it, but if it already has been done I'd rather benefit from that ;) Grateful for any tips/Dan
Guest Posted April 14, 2004 Posted April 14, 2004 Hi Dan, I know that if you go into your admin under configurations and click on "stock" you can set it up to show out of stock by clicking on "mark product out of stock" and switching allow checkout to false. and if they add it to their cart they can't check out until it is removed but it still shows up in the catalog. Hope this helps you. Lisa
DmSProject Posted April 14, 2004 Author Posted April 14, 2004 Thanx Lisa, I hadn't really noticed that combination. I just experimented a bit with that and it seems like I could set the stocklevel to 0 on non-stocked products and actually allow the end-customer to check it out (this should be allowed in this case since the product is ordered by the store for the end-customer, similar to a custom order with a longer delivery time). I'll run this through the storeowner to see if that's an ok way to solve it. Thanx a lot for the tip ;) /Dan
Guest Posted April 14, 2004 Posted April 14, 2004 Your Welcome, thank goodness it wasn't an html type answer I would have been no help at all! lol. Hope the store owner accepts it. You do know that you have the option to not show the quantity in stock to the customer right? Let me know if I can help you with anything else. Lisa
Nairn Posted May 6, 2004 Posted May 6, 2004 If you don't mind playing with the code, you can search for " p.products_status = '1' ". This is the condition used in pages such as product_info.php and other product listings to filter through only those products marked as in stock. - drink tea.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.