3. Rules

1. Rules management

Smart price uses a set of rules to perform Pricing calculation.

All rules have common information and specific information depending of the rule type : for instance, a rule dedicated to the cost calculation will require a cost attribute, and a rule related to price adjustment will need some information to know who you want to compete with and how price must be adjusted.

Available rule types

Field Value  
Products to monitor No Select what products you want to send to the Smart Price server to monitor prices
Products to reprice No Select what products you want to enable the automatic price calculation
Cost Yes Defined the basic cost for the product (usually the vendor buying price)
Additional cost No Configure additional costs (handing fees, stocking fees…)
Shipping cost Yes Configure the shipping cost
Profit margin Yes Select the minimum margin levels you want the system use as a minimum price
Price adjustment Yes Select who you want to compete with, and how the system should calculate the target price
Commission Yes Configure the marketplace feed percentage
No competitor price Yes Configure the price to apply when you dont have any competitor
Minimum price No The minimum price the system must not exceed
Maximum price No The maximum price the system must not exceed
Shipping price calculation No Used to calculate the shipping price from the total price

Create a new rule

To create a new rule, select menus Smart Price > Rules, and click on the “Create new rule” button : then you must select the type of rule you want to create and click on the “Save” button.


After creating a new rule, please wait 10-15 minutes to get the “Pricing wizard” screen updated.

Delete a rule

To delete a rule, select menus Smart Price > Rules, click on the wanted rule and once you are in the rule profile, click on the “Delete” button


System rules can not be deleted

2. Rule common fields

FieldDescriptionNameIdentifier for the ruleEnabledEnabled or disable the rulePriority Select the rule priority. System rules always have a -1 priority. You can use priority to OVERRIDE a behaviour from another rules, for instance :

  • Create a rule A with priority 1 for all products saying that handling costs are 1 EUR
  • Create a new rule B with priority 5 for products weighting more than 5KG
  • Create a new rule C with priority 10 for products with brand = SONY

Such configuration will lead to the application of the following rules depending of the products :

  • Logitech Hamonry remote - 3 KG : rule A applies
  • Logitech boomboom speakders - 10 KG : rule B applies
  • Sony Noisy speakers - 11 KG : rule C applies

Last index dateLast time the rule has been indexes

3. Rule conditions

When you configure a rule, you can select the products / offers to which it applies to.

Conditions can apply on ANY product information (such as the product attributes) but also on the channels.

At the bottom of the rule profile screen, you’ll see all products matching to the current rule conditions

Condition types

You can add a condition on ANY product information. However, Smart Price provide additional fields to put conditions on.

{any magento attribute} Apply a condition on a product information.Depending of the attribute type (numeric, boolean, list etc…), the condition form will be displayed differently (to select a min/max value, select options in a multi select list etc..)
Channels Select the channels to which the condition rule applies to : this way, you can create a specific rule for amazon.fr, and other rules for amazon.com
Category Display a multi select list where you can select products from their category.

Add a condition


Note : you can not manage the conditions on system rules, they apply on EVERY products. You must create a new rule and play with the rule priority to override the default rule behaviour.

To add a new condition for a rule, from the rule profile, select the condition type in the drop down menu and click on the save button:


Once you saved, a new row is displayed for the condition :


You can then select the condition values and save to apply

Remove a condition

 To remove a condition, click on the “delete” icon on the right and click on the save button.

4. Rules variables

Each rule get its own variables that helps to process the rules.

To see the variables required per rule, you can check the next section.

For instance, the rule type “cost” get a “Cost formula” field where you can fill a formula to indicate how is calculate the value (cost).

You can fill the variables fields different ways, here are the main inputs :

  • Variable can contain a fix value : 5.25 OR 12
  • Variable can include a product attribute, you must surround the attribute code with { and }. For instance, to include the product cost attribute in the formula, use {cost}
  • You can also mix fixed values and product attribute into a single formula : {cost} * 1.2 + 5
  • Last, you can use PHP basic operators : ({weight} > 10 ? {cost} * 4 : {cost} * 7.5)

Advanced variables

Smart Price also provides additional variables containing the result of the previous rules :

  • rule.tax_rate
  • rule.commission
  • rule.cost
  • rule.cost_shipping
  • rule.additional_cost
  • rule.margin

For instance, if you want to use the tax rate in the formula for no competitor, you can use : {price} * (1 + {rule.tax_rate} / 200)

5. Rule types

Smart Price includes several rules types to help you to configure the pricing behaviour automatically.

Products to monitor

With this rule, you can select what products are sent to the Smart Price server to watch competitors.

By default, ALL products are sent to the server, so you need to configure that rule ONLY if you dont want to send some products to the server.

If you want to restrict the products sent to Smart Price, you must :

  • Create a first rule with a priority of 1, without condition and set Enabled to “FALSE”
  • Create a second rule, with a higher priority, select the conditions  and set enabled to “TRUE”

Products to reprice

This rule define what products you want to enable the automatic price calculation for.

By default, all products are enabled for repricing.

To exclude some products, create a new rule, setup the conditions and in the “Variables” section, select enable = NO :



WIth this rule, Smart price calculate the basic cost for your products, usually, this is the buying price.

Most of the magento installation has a “cost” attribute, if you have such attribute, you can configure the rule to use it :



Note : this rule type is MANDATORY, and a system rule is automatically inserted when you install the extension. The system rule will apply to ALL products

Additional cost

With this optional rule type, you can configure additional cost for products. For instance, you can add a “Handling cost” for products with weight higher than 2 KG :



Additional cost rules can NOT be OVERRIDDEN, meaning that you can have several additional cost rules applying for the same product , and the additional cost will be added.

Shipping cost

 Coming soon…..

Profit margins

 This is one of the most important rule : here you can configure the margin % associated to the 2 behaviour : conservative and moderate.

This rule has 2 settings :

  • Conservative margin %
  • Moderate margin %

You must fill here values between 0 and 100, with decimal or not (use the dot as decimal separator).


Technically, you can also fill negative values.

Price adjustment

The price adjustment rule defines the optimum price the system will try to reach if your profit and minimum price rules allows it : with this rule, you configure with who you want to compete (what seller) and how cheaper than him you want to be.

This rule contains 3 parameters :

FieldDescriptionCompete with

  • Best rank : you’ll compete with the Buy box winner
  • Best price : you’ll compete with the seller having the lowest price (including shipping)

Adjustment method

  • Percent : subtract a percentage from the compete with price
  • Value : subtract a fix value from the compete with price

Adjustment value

  • Value to use with the adjustment method


For amazon, it is recommended to compete with the buy box winner, adjust by percent = 3


For cdiscount, it is recommended to compete with the best price, adjust by value = 0.01


 With this optional rule, you can configure the marketplace fees for the products.


Note : for amazon, fees are automatically updated from your amazon merchant account, so it is not mandatory to have a rule for that. You can see amazon fees in menu Smart price > tools > commissions

The only variable for this rule is the percentage.

If you have different commission levels depending of the product categories and channels, remember to use the rule conditions on categories & channels to create different rules.

No competitor price

 Smart price will use that rule to calculate your selling price when there is NO competitors for the channel (ie : when you are the only seller on amazon)

 Two modes are available for that rule :

  • Price : fill a formula to calculate your selling price. A best practive is to use the magento price attribute, for instance : {price} * 1.1
  • Margin : you can decide to apply a certain percentage of margin

Minimum price / Maximum price

With this rule, you can setup a minimum price under which one the system will not reprice product under that limit.

This kind of rule can be useful if you don’t want to sell under your website price, or if your vendor / manufacturer force you to sell to a specific price.

These rules contain only one variable which is the formula to use to calculate the minimum / maximum price. For instance, here is an example to prevent to have a calculated price lower than the magento price :


Shipping price calculation

 Not available for the moment