SOFTWARE
DEVELOPMENT
Conditions for calculating shipping costs according to e.g. girth dimensions can only apply if the values for the given product under free attributes: Height, Width and Depth are active.
You can find more information on this in the following article:
Free attributes - Application area: Girth based shipping price calculation
In the following example, we will create a condition that should apply to a belt dimension of less than 100cm.
1. Create conditions for Shipping Methods
1.1 Click:
smartShop > Options > Shipping methods > "Conditions"
1.2 Click "New" to create a new condition
Name
In this case, the name of the condition is: "girth smaller 100cm"
2. Click on "Add Rule" to create a new rule.
2.1 By clicking on the first selection window of the rule, a list of query parameters appears. The lower entry contains a formula for calculating the dimension in this example, select it.
2.2 To query the belt dimension, the formula for the belt dimension is entered in the value window next to it: ($max_side)+2*($median_side)+2*($min_side) and then the actual query value <100.
The entry for the belt dimension smaller than 100 cm would therefore be: ($max_side)+2*($median_side)+2*($min_side)<100
2.3 Save the condition.
3. 2 rules must be created to define a condition for a belt dimension range (from - to).
Create a new condition. To do this, repeat steps 1.2 - 2.1
Name
In this case, the name of the condition is: "girth 100 - 199 cm"
3.1 As both rules apply and should cover a range, the match type "AND" must be selected.
3.2 Now the rule is created as in steps 2. and 2.1. Subsequently, the girth formula ($max_side)+2*($median_side)+2*($min_side) is used with the value appended at the end: >100.
3.3 The second rule is given the value <=199 In other words: ($max_side)+2*($median_side)+2*($min_side)<=199
Enter it into the field
3.4 Save the condition.
The conditions can now be assigned to a dispatch type.
You can find information on this in the article: Assigning conditions to a shipping method