Hello,
I need help to make a specific rule !
In my shop, there are static shipping costs by quantity parts. In example : If I buy between 1 and 12 units, shipping cost is 12€, if I buy between 12 and 24 units, shipping cost is 18€ ... For that, no problems !
But if I buy more than 72 units, shipping costs are no more statics, I have to apply a cost by unit. In example : If I buy 80 units, shipping cost is 80*0.3468€ (0.3468€ by unit). I can't make this rule because I can't access to "total product quantity" value in the action "Set the unit price to a specific amount"...
Any ideas about how to make this rule, how to access this value ?
Thanks a lot,
Best regards.
Comments
Comment #1
MarcElbichon commentedCan't you use site:current-cart-order:commerce-order-quantity data selector ?
Can you post your rule with static costs ? I'd like to see how you deal with line items.
Comment #2
Mantalo Conseil commentedHello,
Thanks for your answer.
I can't find this data selector in the action "Set the unit price to a specific amount"...
This is the rule :
Maybe it's impossible to make it by rules, I'm thinking about use an Hook or something else in PHP ...
Thanks for your help !
Comment #3
MarcElbichon commentedI think you can't. Maybe can you ask for a feature to commerce_shipping module.
Sorry, but I cannot be helpful for you. Closing this issue