Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

MVS Vendor ID assignment


mangus580

Recommended Posts

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

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...