Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Split shipments per category/class instead of per item

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 05-20-2016, 03:33 PM
 
info@shadowgraphicsinc.co info@shadowgraphicsinc.co is offline
 

Senior Member
  
Join Date: Jan 2011
Posts: 123
 

Default Split shipments per category/class instead of per item

We are looking to offer items that would require separate shipping from most items but if you were to purchase more than one item from that category, we wouldn't want it to make it a new shipment each time.

Example:
If someone orders 3 t-shirts and 2 posters.

All t-shirts will ship together and all posters will ship together - however they can't all ship in one shipment due to different packaging.

Is there a way to make it possible so all items in one category or user class ship separately instead of making each item in that category ship separately (which causes multiple shipping cost additions per purchase)?

That way when someone buys 3 shirts and 2 posters they are only charged for two shipments instead of 3 (1 for shirts, 1 for each poster)?
Reply With Quote
  #2  
Old 05-24-2016, 09:28 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Split shipments per category/class instead of per item

\XLite\Core\Package::generatePackages() is the method that split the order into multiple packages.

However, you are likely should customize the \XLite\Core\Package::getSeparatePackages() method that determines which of the ordered items should be shipped in separate packages.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:46 PM.

   

 
X-Cart forums © 2001-2020