0
votes

I want to make a shipping method rule based on subcart total. If the subcart total > X then shipping method is free shipping but if subcart total < X then shipping method is flat rate. I tried with the following rule, but it doesn't work.

If ANY of these conditions are TRUE : Subtotal equals or greater than 75 Shipping Method is [freeshipping] Free Subtotal less than 75 Shipping Method is [flatrate] Fixed

The shipping method has to be automatically displayed on checkout and appropriate changes should be made to grand total.

Thanx in advance

2

2 Answers

1
votes

I think it's better to use the table rates for this.
You will need 2 lines in the csv

Country|Region|Postal code|Order subtotal (and above)|Shipping Cost
*      |*     |*          |0                         |10 - or the cost you want
*      |*     |*          |75                        |0
0
votes

@Marius your solution works, but there is a slight modification to it.

Modification: Rules in table rate should be defined in descending order and not in ascending order.

This happened because of a bug in magento 1.7 or magento 1.7 handles the rules in different way compared to earlier versions.

Refer : http://www.magentocommerce.com/boards/viewthread/312623/ & http://www.magentocommerce.com/boards/viewthread/334406/

P.S: Excel can be used to edit tablerates.csv file.