Index
- CPC Lesson 1 - Activation and file upload
- CPC Lesson 2 - Configure the Main settings
- CPC Lesson 3 - Setting up Zones
- CPC Lesson 4 - Setting up Routes
-
CPC Lesson 5 - Setting up Prices
- Add prices and intervals
- How to define intervals correctly
- Additional options
- XML examples - CPC Lesson 6 - Setting up Fees/Discounts
- CPC Lesson 7 - Managing your files
Prices depend on the Calculation type set under the Main tab. Different calculation types will have different options.
Add prices and intervals
- Go to the Base prices tab after opening your CPC file in edit mode.
- You will see sections according to the Calculation type > Measurement that you specified under the Main tab.
- Click Add to define an Interval. Fill in From and To (and Step if relevant). Add as many intervals as needed. (Important: see the next section on how to define intervals correctly to avoid missing prices)
- Add your prices by using the Add button in the Base prices section and filling in the information for each column. Add as many prices as required.
- Click Save
How to define intervals correctly
It is important to specify intervals correctly to avoid missing prices.
The value in From = included in the interval
The value in To = up to but not included in the interval
The To and From values in consecutive intervals must always be identical to avoid intervals without prices.
Example 1
In this example, a parcel weighing 5 kg will cost 5 EUR.
From (weight) | To (weight) | Price in EUR |
0.001 | 5 | 3 |
5 | 10 | 5 |
Example 2
In this example, a parcel weighing 5 kg will cost 3 EUR. Using 3 decimals is a way to ensure that you will not experience price gaps, even with detailed weights.
From (weight) | To (weight) | Price in EUR |
0.001 | 5.001 | 3 |
5.001 | 10.001 | 5 |
Additional options
In the Options dropdown, you can select additional columns if needed. These will appear when you start adding Intervals and/or Prices:
Step defines a minimum increment for the range specified by the values in From and To. If no step is specified, the increment will be one.
Min contribution is used if you have a minimum price that must be used in case the calculated price is lower.
Max Contribution is the maximum price that should be used in cases where the calculated price is too high and should be adjusted.
Example using options:
In the example below, prices are calculated based on Loading meters. One step is 2 loading meters. Each step has a price of 1.5 EUR. The minimum price is 5 EUR and the maximum price is 12 EUR.
A shipment with 8 loading meters will cost 6 EUR. There are 4 steps x 1.5 = 6 EUR.
XML examples
The code samples below show what prices may look like when defined in the XML file generated by the user interface. Due to the many configuration possibilities, the code can vary and include more or fewer elements.
It is possible to make changes in the XML by opening the XML tab and editing the code.
Sample 1:
<Prices>
<BasePriceEntryInterval ValueTo="20" ValueFrom="1">
<Price Value="50" RouteName="Route Z1"/>
<Price Value="75" RouteName="Route Z2"/>
</BasePriceEntryInterval>
<BasePriceEntryInterval ValueTo="50" ValueFrom="21">
<Price Value="100" RouteName="Route Z2"/>
<Price Value="125" RouteName="Route Z1"/>
</BasePriceEntryInterval>
</Prices>
Sample 2:
<Prices>
<BasePriceEntryInterval ValueTo="50" ValueFrom="0">
<Price Value="75" MinContribution="50" RouteName="Route1"/>
</BasePriceEntryInterval>
<BasePriceEntryInterval ValueTo="*" ValueFrom="51" Step="1">
<Price ValueTo="*" ValueFrom="318" RouteName="Route1" Step="3" MaxContribution="350"/>
</BasePriceEntryInterval>
</Prices>
← Previous lesson | ↑ Back to top | Next lesson → |