If you are using nShift Ship along with Checkout and have a Custom Price Calculation configured in Ship, you can utilize this feature to look up prices in Checkout. This way, any changes you make to the prices in your price files in Ship will automatically update your Checkout prices.
Activate price look-up in Checkout
Before you begin, please make sure you have an active Custom Price Calculation (CPC) file in Ship. Read our articles about CPC here. It is also a good idea to look at the Important notes below.
- Edit your Checkout configuration and click on a Delivery option.
- Expand the Carrier service section and check the box next to Lookup price.
- Expand the Price section and write costprice in the field if you want to display price 1 from Ship or write salesprice to display price 2 from Ship. This can also be written in the Rule engine.
"Costprice" and "salesprice" are inspecting functions that can be used as a basis for calculation, e.g., cost price* 1.25. If no price is returned to the inspecting function, the options will not be shown.
- Repeat for any other delivery options that should retrieve prices from CPC files in Ship and save.
Setting a fallback price
You can set a fallback price that will be shown if no price is returned from the CPC files in Ship.
Example: costprice(59)
With this setting, if there are no results, the delivery option will still be displayed, and the price will be 59.
Important notes
- The CPC file must be set up on the same actor/Member account in Ship as the one that is used on the Sender in Checkout.
- The weight must be sent in, so make sure to activate the weight_kg parameter.
- The same currency must be used in CPC file and the Checkout configuration.
- The same carrier service must be used.