Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change Inventory As added to cart


dosworld

Recommended Posts

Posted

My shop will be selling unique gift baskets, where only a limited # of them will be available... i need to check that whenever a product is purchased and checkout is complete, if there are none left of the product that it becomes inactive.

i understand that to set a product inactive, one must change the value in row 'products_status' of the table 'products' from 1 to 0

how would i go about checking and changing these values??

can someone please upload the code for this...

thanks

dosworld

Posted
My shop will be selling unique gift baskets, where only a limited # of them will be available... i need to check that whenever a product is purchased and checkout is complete, if there are none left of the product that it becomes inactive.

i understand that to set a product inactive, one must change the value in row 'products_status' of the table 'products' from 1 to 0

how would i go about checking and changing these values??

can someone please upload the code for this...

thanks

dosworld

No coding involved here as you can take care of this within your admin.

Go to admin->configuration->stock and make sure you set:

Check stock level true

Subtract stock true

Allow Checkout false

Once the stock for a product reaches 0 it will be set inactive and not be shown on the catalog side anymore.

Archived

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

×
×
  • Create New...