1

I just followed this Randy Fay video which shows how to generate a charge based in the products weight. I works fine. It multiplies the weight of products by a Cost Per Pound (CPP)

I need this CPP to be different based in the total weight of ALL products in the order.

Example:

Order up to 1 pound ........ CPP = 0,006

Order with weight higher than 1 pounds ........ CPP = 0,004

1 Answer 1

1

Easy, create two rules, one where the condition is that the total weight is more than 1 pound and one where the condition is less than or equal 1 pound.

You can setup the rest of the rules to be the same, with only the price (CPP) being different.

3
  • 1
    I was trying to do what you say. But I couldn't find the Condition of total weight of the order. But now I found a solution applying this patch for the commerce_physical module which adds that condition: drupalcommerce.org/node/1721#comment-3315
    – chefnelone
    Commented Mar 21, 2012 at 6:53
  • @chefnelone You could create a loop in Rules and get it by adding the weight of all the products.
    – googletorp
    Commented Mar 21, 2012 at 9:19
  • yes I guess I could, but using the condition provide by the commerce physical is cleaner.
    – chefnelone
    Commented Mar 21, 2012 at 13:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.