dosworld Posted January 29, 2007 Share Posted January 29, 2007 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 Link to comment Share on other sites More sharing options...
wheeloftime Posted January 29, 2007 Share Posted January 29, 2007 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.