Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing products from catalog when sold out


viper00713

Recommended Posts

Posted

does anyone know if i can make it to where when an item sells out, that it would no longer show up in the online catalog, untill i have more available stock.

thanks

Posted

There are sold out contributions that will still allow the product to be seen by your customers. If you remove it until there is stock again the product won't appear on your site. If someone comes to your site looking for it during the time that it is not there, they will assume you don't carry it and may not come back. With the sold out, they may come back. Installing the wish list contribution as well would enhance the chances of making a sale on such a product even more.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

i had just downloaded os commerce the other day, the copy which i have must already do this, for when a item sells out, it does not deactivate. I want the item to deactivate and to no longer show up in the catalog. I sell DVD's and when i reorder them, there is no guantee that i would recieve the same title as before, there for i would like it to deactivate until i get more copies of that movie.

Posted

take a look at your file - catalog/checkout_process.php:

 

find this code -

 

CODE

if ( ($stock_left < 1) && (STOCK_ALLOW_CHECKOUT == 'false') ) {

// tep_db_query("update " . TABLE_PRODUCTS . " set products_status = '0' where products_id = '" . tep_get_prid($order->products[$i]['id']) . "'");

}

 

 

The example above would keep the item shown and NOT de-activate it.

 

If that bit of code in your file looks like the above with the 2 comment marks // on the second line , just remove the 2 // to put it back to standard OSC.

Posted

no, my file doesn't have the 2 comment marks, it looks like this

 

 

if ( ($stock_left < 1) && (STOCK_ALLOW_CHECKOUT == 'false') ) {

tep_db_query("update " . TABLE_PRODUCTS . " set products_status = '0' where products_id = '" . tep_get_prid($order->products[$i]['id']) . "'");

}

Posted

steps:

Set a cron that will set the products status to 0 mif inventory 0 or less then 0.

In code that display products list modify query to chek for product with greate then zero and place those in list.

 

On product in page again chek for stock.Then decide whether to show add to cart or not.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Posted

If 'subtract stock' is set to true under configuration/stock, doesnt that automatically set the product to out of stock once it hits 0 and remove the product from displaying till there is more stock?

Posted

yes, i have it subtract stock set to true, and it displays the item as out of stock, and they can't purchase it anymore, but it remains in the catalog. I want it to remove it from the catalog, until i get more stock. I don't want alot of items that will show up as out of stock

Archived

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

×
×
  • Create New...