The following events do not respect the condition to redirect a page:
After adding product to the cart
Before adding product to the cart
After saving new commerce line item
Before saving a commerce line item
I'm trying to redirect users to checkout page on certain condition but remain on product page for another condition. The problem is that it always redirects to the checkout page with or without meeting the condition.
I tried all the combinations of the events mentioned above but it behaves the same each time.
I also tried to execute php and force redirect it but still not working.
I'm starting to think that these events can only have one redirect at a time?
Comments
Comment #1
halloffame commentedComment #2
rszrama commentedThe first event is likely the only you should be using, but I can't determine if there's a bug in anything Commerce related without seeing an export of the rule. My guess is your condition was just being met unexpectedly, which you can confirm by turning on the Rules log.
Comment #3
rszrama commentedClosing this out since there was no additional information and it's been so long.