# Unit Ranges in details in xshippingpro

For each method you can define multiple ranges e.g weight ranges or quantity ranges and a separate cost for that range.
For example, consider a shipping requirements where you need following:

1. For the first 3 items, cost is \$5
2. For the remaining each item cost is \$2

In this scenario, we need two unit range rows. Since it is related with quantity, so must
select rate type is “Quantity”. Then you will have to enter following unit ranges.

Start    End       Cost        Per Unit Block       Allow Partial
0            3            5               0                                       NO
4           9999       2             1                                        NO
Finally you will have to select final price to cumulative. why cumulative? Because you want to sum up two ranges cost together.

Q. So what will be shipping cost for 5 items from above scenario?

A. For first 3 item, \$5 (According first unit range)
For remaining 2 item (2 x \$2) \$4 (According second unit range)
——————————————
Cumulative cost \$9

So shipping cost will be \$9
Q. What is Per Unit Block?

A. Per Unit Block simply means per unit. For example, in our above scenario, we want to charge
\$2 per item after the first 3 items. So Per unit block is 1. Thats why we have entered Per unit block is 1
for second unit range (second row) for our described shipping scenario.
Q. What is Allow Partial?

A. Sometimes you might need to charge for the half block or half item. Sometimes you don’t want
to allow partila block. Moreover you want to charge for the full block cost in case of partial block. Consider following scenario:
1. if weight is less 3kg, cost will be \$5 per kg
2. if weight is greater than 3kg, cost will be flat rate \$10
In this scenario, we need two unit range rows. Since it is related with weight, so must
select rate type is “weight”. Then you will have to enter following unit ranges.

Start    End       Cost        Per Unit Block       Allow Partial
0            3            5               0                                       NO
4           9999       10             0                                        NO

Since we don’t need summed cost of each rows together in this scenario. So final cost will be single NOT cumulative.

So what will be cost of 3kg?   Total block 3, cost of each block \$5 so cost is \$15 (3*5) (according to first row)
So what will be cost of 4kg?   Flat rate \$10 (according to second row)
So what will be cost of 2.5kg?   Total block 2.5, cost of each block \$5 so cost is \$15 (3*5, 2.5 rounds to 3 depending on Allow Partial) (according to first row).
But if you would set “Allow Partial” is Yes, cost would be \$12.5 (2.5*5)