I'm trying to set up flat rate shipping rules for Drupal Commerce.

Basically, for 1-3 items ordered the shipping price is $xx, for 4-7 items ordered the shipping price is $yy, etc... When I attempt to order 5 products, it shows me the correct flat rate option selected, but in the shipping costs the flat rate is multiplied by 5, so when it should be $5, it shows $25 for the shipping costs. The shipping rate is supposed to apply to the entire quantity, not each individual item.

Obviously, I set the conditions elements incorrectly, but I can't seem to use any other type of data selector besides: commerce-order. Every other option gives me the error:

The integrity check failed with the following error message: "Data selector commerce-order:commerce-order-total: for parameter commerce_order is invalid."

Someone suggested using: "commerce-order:commerce-order-total:amount", but anything I attempt to put into Flat Rate > Condition > Order > Data selector gives me the "Data selector commerce-order:commerce-order-total: for parameter commerce_order is invalid."

Can someone give me some guidance on this?

Thank you very much.

Comments

googletorp’s picture

Status: Active » Closed (works as designed)

You can setup in the settings if the flat rate should be applied per order, line item or product.

The flat rate is now a module of its own.

pkcho’s picture

Thank you. That's what I needed to know.

Someone also brought that to my attention this morning and it resolved my issue. Thanks.

fhdrupal’s picture

Issue summary: View changes

Can you please explain that a little where can I do those changes, to apply per order and what will happen when I setup that.
thanks.

s_seymour’s picture

So the substance of the question remains unanswered.
What db type is correct so I can copy commerce order totals to an entity