Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Making out of stock still viewable


ChrisDJ

Recommended Posts

Posted

Right now when I mark something as out of stock, it goes inactive and is removed from the site. Is there any way to make it so that the out of stock items stay viewable on the site but get marked as "out of stock"?

 

Thanks in advance for any suggestions!

Posted

In Admin ~ Configuration ~ Stock, is Allow Checkout set to True?

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted
In Admin ~ Configuration ~ Stock, is Allow Checkout set to True?

 

I've tried it both ways. It doesn't seem to affect anything.

Posted

Have you tried setting the product as in stock but the quantity to 0?

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

Ok, so I got it to work. However, it will only display out of stock at the checkout, can I make it so it says while you're looking at the produect?

Posted

What did you do to get it to work?

 

In Admin ~ Configuration ~ Stock set the Mark Product Out of Stock to Out of Stock and see if that does not do what you want.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

This is ow I have it set up right now:

 

Check stock level: true

Subtract stock: true

Allow checkout: true

 

And made all of the items active, with the appropriate stock numbers.

 

So when they add an item that's out of stock, then look in the cart, it says that it's out of stock (but they can still order it).

 

That's great, however, I would like to make it say weather or not an item is out of stock on the product page, before they add it to their cart.

 

Got any ideas or contributions to make this happen?

Posted

This contribution might do what you are looking for.

 

Either that or you could just edit the page to do a stock check and print an appropriate message.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

Perfect, thanks!

 

What a simple snippet of code too. I feel stupid for not figuring this one out on my own.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...