- Posts: 64
- Thank you received: 0
UPS Shipping container / Express Box
- irfanhanfi
-
Topic Author
- Offline
Less
More
11 years 1 month ago #211076
by irfanhanfi
UPS Shipping container / Express Box was created by irfanhanfi
-- 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
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 -
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 or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
11 years 1 month ago - 11 years 1 month ago #211143
by Mohamed Thelji
Replied by Mohamed Thelji on topic UPS Shipping container / Express Box
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.
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 1 month ago by Mohamed Thelji.
Please Log in or Create an account to join the conversation.
Time to create page: 0.155 seconds