[Skip to main content](#vessel-content)

#   UPS Shipping container / Express Box

##

- **[irfanhanfi](/forum/user/23811-irfanhanfi "View irfanhanfi's Profile")**
- [![irfanhanfi's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/23811-irfanhanfi "View irfanhanfi's Profile") Topic Author
- [ Offline](/forum/user/23811-irfanhanfi)

Less More

- Posts: 64
- Thank you received: 0
-
-

11 years 3 months ago [\#211076](#211076) by [irfanhanfi](/forum/user/23811-irfanhanfi "View irfanhanfi's Profile")  *[UPS Shipping container / Express Box](/forum/31-development/878663-ups-shipping-container-express-box#211076 "-- HikaShop version -- : 2.3.0  Hi,  I need some customization in UPS plugin.  We currently have the standard UPS containers.Here are the containers:    www.ups.com/content/us/en/resources/ship.../supplies/boxes.html  Express Envelope - the envelope does not require weight or dimensions, volume range of 1-20 Express Pad Pack – this pack does not require dimensions to be declared, weight 28g,volume range of 21-70 Small Express Box – dimensions are 13”x11”x2”, weight 166g,volume range of 71-100 Medium Express Box – dimensions are 15”x11”x3”, weight 249g ,volume range of 101-150 Large Express Box – dimensions are 18”x13”x3”, weight 274g,volume range of 151-200  For each product we set volume value and based on total volume range we fetch Box details.We only set product weight and do not set any dimensions of product instead we use Box dimension.  If we set a maximum volume value of 20 for the Express envelope, then for each product in Hika we assign a volume value (in hika product setup). Within an order, it adds up the total volume for all products ordered, selects the appropriate container, then sends the container dimensions (if applicable) and weight (if applicable) to receive a price quote for shipping.  So instead of product dimension we send box dimension and weight is sum of container and total product weight.  I have doubt in boxes and package.Package has some limitation set in code -  Do I have to code based on container dimension and total weight same as done for package?  Like first I get applicable container dimension and create package based on that container.  Or is there any way to code this?  Please let me know if I did not make it clear.  Any help would be appreciated.  Thank You, Irfan")* was created by *[irfanhanfi](/forum/user/23811-irfanhanfi "View irfanhanfi's Profile")*

-- HikaShop version -- : 2.3.0

Hi,

I need some customization in UPS plugin.

We currently have the standard UPS containers.Here are the containers:

[ www.ups.com/content/us/en/resources/ship.../supplies/boxes.html](http://www.ups.com/content/us/en/resources/ship/packaging/supplies/boxes.html)

Express Envelope - the envelope does not require weight or dimensions, volume range of 1-20
Express Pad Pack – this pack does not require dimensions to be declared, weight 28g,volume range of 21-70
Small Express Box – dimensions are 13”x11”x2”, weight 166g,volume range of 71-100
Medium Express Box – dimensions are 15”x11”x3”, weight 249g ,volume range of 101-150
Large Express Box – dimensions are 18”x13”x3”, weight 274g,volume range of 151-200

For each product we set volume value and based on total volume range we fetch Box details.We only set product weight and do not set any dimensions of product instead we use Box dimension.

If we set a maximum volume value of 20 for the Express envelope, then for each product in Hika we assign a volume value (in hika product setup). Within an order, it adds up the total volume for all products ordered, selects the appropriate container, then sends the container dimensions (if applicable) and weight (if applicable) to receive a price quote for shipping.

So instead of product dimension we send box dimension and weight is sum of container and total product weight.

I have doubt in boxes and package.Package has some limitation set in code -
Code:

if($data['weight_unit'] == 'KGS'){ $limitations['weight'] = 70; } else{ $limitations['weight'] = 150; } if($data['dimension_unit'] == 'CM'){ $limitations['dimension'] = 419; } else{ $limitations['dimension'] = 165; }

Do I have to code based on container dimension and total weight same as done for package?

Like first I get applicable container dimension and create package based on that container.

Or is there any way to code this?

Please let me know if I did not make it clear.

Any help would be appreciated.

Thank You,
Irfan

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3ODY2My11cHMtc2hpcHBpbmctY29udGFpbmVyLWV4cHJlc3MtYm94P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

11 years 3 months ago -  11 years 3 months ago [\#211143](#211143) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[UPS Shipping container / Express Box](/forum/31-development/878663-ups-shipping-container-express-box#211143 "-- HikaShop version -- : 2.3.0  Hi,  I need some customization in UPS plugin.  We currently have the standard UPS containers.Here are the containers:    www.ups.com/content/us/en/resources/ship.../supplies/boxes.html  Express Envelope - the envelope does not require weight or dimensions, volume range of 1-20 Express Pad Pack – this pack does not require dimensions to be declared, weight 28g,volume range of 21-70 Small Express Box – dimensions are 13”x11”x2”, weight 166g,volume range of 71-100 Medium Express Box – dimensions are 15”x11”x3”, weight 249g ,volume range of 101-150 Large Express Box – dimensions are 18”x13”x3”, weight 274g,volume range of 151-200  For each product we set volume value and based on total volume range we fetch Box details.We only set product weight and do not set any dimensions of product instead we use Box dimension.  If we set a maximum volume value of 20 for the Express envelope, then for each product in Hika we assign a volume value (in hika product setup). Within an order, it adds up the total volume for all products ordered, selects the appropriate container, then sends the container dimensions (if applicable) and weight (if applicable) to receive a price quote for shipping.  So instead of product dimension we send box dimension and weight is sum of container and total product weight.  I have doubt in boxes and package.Package has some limitation set in code -  Do I have to code based on container dimension and total weight same as done for package?  Like first I get applicable container dimension and create package based on that container.  Or is there any way to code this?  Please let me know if I did not make it clear.  Any help would be appreciated.  Thank You, Irfan")*

Hello Irfan,
If you want to add a "package container" option with size/weight restrictions, you'll just have to add these restrictions through the "$limitations" array and correctly check you packages through the "_getShippingMethods" function.

Last edit: 11 years 3 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3ODY2My11cHMtc2hpcHBpbmctY29udGFpbmVyLWV4cHJlc3MtYm94P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.058 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
