kentteague Posted August 10, 2012 Share Posted August 10, 2012 We have a business requirement where we offer products to customers which we do not carry in physical stock, allowing them to order out of stock products. But we also only order the amount the customer orders from us. The following example uses the 1.5.0.15 version with the demo products. So think in terms of the following: ADMIN-> Preferences -> Products -> Allow ordering of out-of-stock product = YES ADMIN-> Preferences -> Products -> Enable stock management = YES ADMIN-> Preferences -> Products -> Enable advanced stock management = YES ADMIN-Catalog->Products->MacBook->Information->Reference = PMacBook ADMIN-Catalog->Products->MacBook->Quantities->I want to use the advanced stock management ... = CHECKED ADMIN-Catalog->Products->MacBook->Quantities->Available quantities for current product ... = selected ADMIN-Catalog->Products->MacBook->Quantities->When out of stock: = Default: Allow orders as set in Preferences ADMIN-Catalog->Products->MacBook->Quantities->Availability settings->Minimum quantity: = 0 ADMIN-Catalog->Products->MacBook->Suppliers->Supplier Name->AppleStore = selected ADMIN-Catalog->Products->MacBook->Suppliers->Product references->Supplier reference = sMacBook ADMIN-Catalog->Products->MacBook->Warehouses->Warehouse1->Stored = selected A customer orders 1 MacBook. ADMIN->Stock->Supply orders->Add new->Automatically load products = 0 (with everything else filled out correctly) While a 1 in the Automatically load products field will work, this also orders all of the other products which have 0 physical inventory and orders 2 of the MacBooks. What we want is to be able to only order products which have a negative Quantity on ADMIN->Catalog->Products. Enclosed is the /override/classes/controllers/admin/AdminSupplyOrdersController.php file which seems to solve our problem. Can anyone think of other problems this might cause? I don't consider this a bug, since I'm not sure if our scenario really fits into the initial design criteria, but I offer the file as a potential solution if others may have the same desired business functionality. AdminSupplyOrdersController.php 1 Link to comment Share on other sites More sharing options...
acfccfsignals Posted October 24, 2012 Share Posted October 24, 2012 I'm trying to do this with now version 1.5.2 but cannot find the override/classes/controllers/admin folder. is it ok to simply add it? Link to comment Share on other sites More sharing options...
hadessoul Posted October 25, 2012 Share Posted October 25, 2012 It is not working anymore under 1.5.2. This feature is also good for me. Please, can you get it working under 1.5.2? Thank you for your support Link to comment Share on other sites More sharing options...
Recommended Posts