📝 This feature is based on custom code. It requires development using Python 📝
Table of Content
Why?
Do you have groups of products, and their relationship plays a role in your price recommendations? If so, you can benefit from this feature.
How?
Step 1 - writing your code
Go to the "Pricing Functions" section.
Add a new pricing function.
Choose the custom function type.
Step 2 - Create a pricing strategy.
Under the "pricing strategy" section, choose the "bulk" option.
Then choose your code, and save
Step 3 - Create a pricing group.
Under the "pricing group" section, choose the "bulk" option.
Set it as you would any other group.
Functions types
Pre-processor
Use the pre-processor to prepare your data for pricing.
For example, assign leader and follower roles.
Pricing
Pricing is the function containing all of your pricing logic.
Use it to decide what the recommendation should be.
You can set different variables if you want to give the pricing manager the ability to make changes and affect the result.
For example - Define X percentage to be higher than the cheapest competitor.
Post-processor
Post-processor will be used to check any limits and make a final rounding.
Cost
You can use this function to calculate your cost if you don't send this information from your ERP system.
Functions Output
|
State = Array of objects, This is the returned value from the last invocation. The state is the way to pass data from pre-pricing to the pricing function. |
Pricing & Post pricing |
Pre-Pricing |
|
State => Array of objects.
|
|
*required fields ** supported only in post-pricing functions *** supported only in cost functions |
|
❗️Update only the relevant fields. if you set accepted = 'false' as default, for example, any existing "accept" will be removed. ❗️
Errors
In case of any bulk pricing function error, we stop the process and set an error for all products in that pricing group.
To override this default behavior, return pricing_error for the products causing the error.
Conflicts
Overriding Feature |
Expected result |
Manual override |
Edit of recommendation & reason is not available. Adding attributes - available. |
Promotion with the settings: |
Edit of recommendation & reason is not available. Adding attributes - available. |
Promotion with the settings: |
Edit of recommendation & reason is not available. Adding attributes - available. At the end of the promotion, the price will be reverted to the shelf price. |
Promotion with the settings: Price-precedence = manual-strategy. |
The product will be priced according to the promotion’s strategy in the “single” pricing process.
If the product has reached the "bulk-pricing" process, it will become "read-only" and will not receive a price recommendation according to the bulk. |
External recommendation from API |
Edit of recommendation & reason is not available. Adding attributes - available. |
If you use bulk pricing & promotions, it is recommended to use the following promotion settings-
price-precedence = promotion
price-reset-behavior = revert to shelf-price or base price.
Read Only Mode
You can use some products to help you generate a recommendation in your pricing function without making any changes to them.
There are two ways of getting to read-only mode.
Automatically |
Programatically |
|
A product that reached bulk pricing even though it should be priced according to a “single” strategy.
Examples:
|
The product was defined as read-only through the pricing function.
|






Comments
0 comments
Please sign in to leave a comment.