Based on Price

With this rule you can calculate one of your service costs depending on the total gross price for all products.

Setup

plugin.tx_caddy_pi1 {
        api {
                options {
                        ...
                        shipping {
                                options {
                                        1 {
                                                title = Standard
                                                extra = by_price
                                                extra {
                                                        1 {
                                                                value = 0
                                                                extra = 10.00
                                                        }
                                                        2 {
                                                                value = 100
                                                                extra = 7.50
                                                        }
                                                        3 {
                                                                value = 200
                                                                extra = 5.00
                                                        }
                                                }
                                                tax = normal
                                        }
                                        ...
                                }
                        }
                }
        }
}

In the example there is one shipping method called “Standard”, the normal tax will be applied.

  • If the total gross price of all products is lower than 100.00 the shipping costs will be 10.00.
  • If the total gross price of all products is lower than 200.00 the shipping costs will be 7.50.
  • If the total gross price of all products is equal to or higher than 200.00 the shipping costs will be 5.00.