Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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


bizjaved

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!!!
Link to comment
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.

Link to comment
Share on other sites

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

 

Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released.

Looking for a payment or shipping module? Maybe I've already done it.

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...