Guest Posted April 27, 2010 Share Posted April 27, 2010 I currently run a web store based on OSC and I'd like to know if there is a way to do the following: Show out of stock products by default but not allow them to be added to basket. Have a button/checkbox to toggle whether to show or hide out of stock products. Matt Link to comment Share on other sites More sharing options...
♥mdtaylorlrim Posted April 27, 2010 Share Posted April 27, 2010 I currently run a web store based on OSC and I'd like to know if there is a way to do the following: Show out of stock products by default but not allow them to be added to basket. Have a button/checkbox to toggle whether to show or hide out of stock products. Matt If your store configuration is set to Check Stock Levels (True), Subtract from Stock (True), Allow Checkout (False); then it will react as follows... If the item is shown as ACTIVE then the item will be shown in the store whether the quantity is zero, or more than zero, except, When the last item of that product is purchased the stock will be reduced to zero AND the item will me marked as INACTIVE. It would be a simple change to the code to tell it not to mark the product as inactive when the last item is purchased, but I am not aware of settings that would allow the stock to be reduced each sale but not to be marked as inactive when the last item is purchased. Community Bootstrap Edition, Edge Avoid the most asked question. See How to Secure My Site and How do I...? Link to comment Share on other sites More sharing options...
Guest Posted April 27, 2010 Share Posted April 27, 2010 Cheers for the reply bud, I've found a contrib that would do the first part now, how about the second part? I'd like it so people have the option to hide products that are out of stock via a button or checkbox. Matt Link to comment Share on other sites More sharing options...
♥mdtaylorlrim Posted April 27, 2010 Share Posted April 27, 2010 Cheers for the reply bud, I've found a contrib that would do the first part now, how about the second part? I'd like it so people have the option to hide products that are out of stock via a button or checkbox. Matt See my contributions for In-Stock/Out of Stock buttons based on qty in stock. Community Bootstrap Edition, Edge Avoid the most asked question. See How to Secure My Site and How do I...? Link to comment Share on other sites More sharing options...
Guest Posted April 28, 2010 Share Posted April 28, 2010 Thanks, how might I locate them? Link to comment Share on other sites More sharing options...
♥mdtaylorlrim Posted April 28, 2010 Share Posted April 28, 2010 Thanks, how might I locate them? Hover over the icons in my profile information. Community Bootstrap Edition, Edge Avoid the most asked question. See How to Secure My Site and How do I...? Link to comment Share on other sites More sharing options...
JSR Posted June 2, 2010 Share Posted June 2, 2010 Hi there, I'm looking for the same solution that I think topic starter mentioned. What I think he needs is a link(button) within each category that says "show/hide sold products" with one mouse click. So he's not referring to a button that simply says "sold out".... :) Link to comment Share on other sites More sharing options...
drofe Posted June 7, 2010 Share Posted June 7, 2010 I'm also looking for a way of letting customers toggle between show/Hide Out of Stock products. My store is all one-off products (an online gallery). I have already implemented a SOLD add-on because I have users interested in viewing items whether sold or not,for research purposes, but I have another set of users only interested in available stock. Link to comment Share on other sites More sharing options...
JSR Posted June 7, 2010 Share Posted June 7, 2010 Hey drofe, Maybe this will help in your case... I came across this contribution: http://www.oscommerce.com/community/contributions,2805/page,2 However it doesn't do exactly what I want, so I've been trying to adjust the code to no avail. I would like to have a link displayed that says "hide sold products" and changes to "show sold products" if the previous is chosen. This contribution adds a check box in the manufacturers and category product listing, but the logic is tied to the display of the filter in the admin-->configuration-->article list. I would just like to add a $stock=yes or $stock=no to the productlisting query, but since I don't have a very good understanding of PHP and Mysql queries it's going to take me a little while to figure it out. Link to comment Share on other sites More sharing options...
JSR Posted June 7, 2010 Share Posted June 7, 2010 Sorry, this is the link to the contribution: Add In Stock Only Filter Link to comment Share on other sites More sharing options...
Guest Posted June 9, 2010 Share Posted June 9, 2010 See my contributions for In-Stock/Out of Stock buttons based on qty in stock. Greetings, This thread seems to have some relevance to a problem my client is having and I hope to get a lead on where to start looking to debug... my client is periodically experiencing a phenomenon when all available quantity of a given product is purchased (often times the qty is 1 but it could be more). The problem is that after the shopper pays (only available method is PayPal) & successfully checks out, the product remains visible in the catalog with its original non-zero quantity. I have done some test purchases and everything seems fine (i.e. product qty is adjusted down after purchase and removed or marked "Out of stock" if qty=0). The symptom seems random and thus is difficult to diagnose. I'm hoping someone else in the community may have seen this or something similar that will give me a lead on where to look. The install is v2.2 RC2a and we're using a multi-zone shipping module add-on and a discount coupons add-on. Regards, John Link to comment Share on other sites More sharing options...
JSR Posted June 9, 2010 Share Posted June 9, 2010 Greetings, This thread seems to have some relevance to a problem my client is having and I hope to get a lead on where to start looking to debug... my client is periodically experiencing a phenomenon when all available quantity of a given product is purchased (often times the qty is 1 but it could be more). The problem is that after the shopper pays (only available method is PayPal) & successfully checks out, the product remains visible in the catalog with its original non-zero quantity. I have done some test purchases and everything seems fine (i.e. product qty is adjusted down after purchase and removed or marked "Out of stock" if qty=0). The symptom seems random and thus is difficult to diagnose. I'm hoping someone else in the community may have seen this or something similar that will give me a lead on where to look. The install is v2.2 RC2a and we're using a multi-zone shipping module add-on and a discount coupons add-on. Regards, John This probably has something to do with your payment method... I have a problem with the item getting stuck in the cart after a customer pays with PayPal and the quantity not being updated correctly. Maybe you could check out the PayPal IPN thread for the fix? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.