Jump to content
bizjaved

Out of stock item is displayed as "Availability: In stock"

Recommended Posts

I use OSCommerce 2.3.4

I face the following problems:

1. Out of stock item is displayed as "Availability: In stock"

2. The 'add to shopping cart' link appears next to out of stock item

I use the following configurations:

Title Value Action 
Check stock level true  
Subtract stock true  
Allow Checkout false  
Mark product out of stock Out of stock  
Stock Re-order level 1  

I tried re-order level = 1 too but it didn't work.

Edited by burt
Remove ADMIN URL!!!

Share this post


Link to post
Share on other sites

I have removed your Admin URL (which you managed to post 5 times!).

Stock levels work on products_quantity, ensure the product you are looking at has stock = zero.


This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest Responsive osCommerce CE (community edition) here

Share this post


Link to post
Share on other sites
15 hours ago, bizjaved said:

Even when stock = zero, then too the product is displayed as in stock, and add to basket button remains active. 

This add to basket button has no link to the out of stock functionality.

From memory...it is just some text on the shopping_cart page that changes dependent on the setting of the "mark product out of stock".

https://github.com/gburton/Responsive-osCommerce/blob/master/shopping_cart.php#L85-L92
and
https://github.com/gburton/Responsive-osCommerce/blob/master/shopping_cart.php#L116-L132

It's fairly useless as is, so the question is ... what next... ideas;

  1. create a module that turns off the buy buttons based on the stock level
  2. create a module that shows a stock message on the product page
  3. create a module that reacts to zero stock when the person is checking out

I'm sure you can think of more.


This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest Responsive osCommerce CE (community edition) here

Share this post


Link to post
Share on other sites
16 hours ago, ArtcoInc said:

@burt

Your Easy Stock Message add-on?

Malcolm

Forgotten about that one!  Possibility.  Will be making a slightly different version for the 28d.
Thanks for reminding me!


This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest Responsive osCommerce CE (community edition) here

Share this post


Link to post
Share on other sites

The required execute function based on new data attributes is here:

 


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×