-- 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 -
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