mangus580 Posted May 2, 2007 Share Posted May 2, 2007 At what point when an item is added to the cart, does the vendors_id get assigned? I am trying to set up a small mod, that will check stock on an item during the cart add, and change the vendor if stock is too low. Basic theory is, that stocked items would be under the main store vendor. I am adding some fields that would let you set an alternate vendor for each product. And I want to move the item to the alternate vendor if there is not enough in stock on the main. Should be pretty straight forward to do, I just cant seem to find where the ID is assigned as it builds the cart. Thanks Quote Link to comment Share on other sites More sharing options...
mangus580 Posted May 3, 2007 Author Share Posted May 3, 2007 At what point when an item is added to the cart, does the vendors_id get assigned? I am trying to set up a small mod, that will check stock on an item during the cart add, and change the vendor if stock is too low. Basic theory is, that stocked items would be under the main store vendor. I am adding some fields that would let you set an alternate vendor for each product. And I want to move the item to the alternate vendor if there is not enough in stock on the main. Should be pretty straight forward to do, I just cant seem to find where the ID is assigned as it builds the cart. Thanks FOUND IT!!!!!!!!! /includes/classes/shopping_cart.php roughly line 343 (at least in my install) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.