Hello,

I've been testing this module trying to make it work with rules in order to create a conditional checkout where certain types of shipping (Weight tariff shipping) show delivery times slots, however, it seems I cannot make it work.

I defined two shipping services: Courrier (£1) and Local collection (£0)

And created two rules:

A. To show delivery time slots when selecting Local collection
1.Event:
Process checkout pane
2.Conditions:
Shipping line item exists:
Parameter: Order: [commerce_order], Shipping service: Local collection
3.Actions:
Change pane properties
Parameter: Id of pane to change: Delivery times

B. Not to show delivery time slots when selecting Courrier
1.Event:
Process checkout pane
2.Conditions:
NOT Shipping line item exists
Parameter: Order: [commerce_order], Shipping service: Local collection
3.Actions:
Change pane properties
Parameter: Id of pane to change: Delivery times, Enabled: false

Also, in the checkout form flow, I included Shipping pane and Delivery times pane in the same section. So when Local collection is selected delivery time slots appears.

It seems that when defining A.3 Delivery times (enabled: true) and B.3 Delivery times, Enabled: false, the delivery time pane doesn't appear in the checkout form. In the other hand, setting both, A.3 and B.3 to false, delivery times pane doesn't appear. And setting both A.3 and B.3 to true, delivery time pane appears.

I looked at https://www.drupal.org/node/1807092 for triggering conditional panes but can't make it work.

May I ask any suggestion for making delivery times work with shipping and rules, please?

Many thanks

Comments

andrews501’s picture

Issue summary: View changes
andrews501’s picture

Issue summary: View changes
andrews501’s picture

Title: Delivery time slots module and rules (conditions) » Commerce delivery time, shipping and rules (conditions)