Hi all

i'm trying with following simplified rule but nothing happens if using maro_credits as payment method!?

{ "rules_pay_with_maro_credits" : {
"LABEL" : "pay with maro credits",
"PLUGIN" : "reaction rule",
"OWNER" : "rules",
"REQUIRES" : [ "rules_conditional", "rules", "commerce_payment", "commerce_pos" ],
"ON" : { "commerce_pos_transaction_completed" : [] },
"DO" : [
{ "CONDITIONAL" : [
{
"IF" : { "commerce_payment_selected_payment_method" : { "commerce_order" : [ "order" ], "method_id" : "maro_credits" } },
"DO" : [ { "drupal_message" : { "message" : "aklfjaipwoejfipasjfijasdfas" } } ]
}
]
},
{ "LOOP" : {
"USING" : { "list" : [ "order:commerce-line-items" ] },
"ITEM" : { "list_item" : "Current list item" },
"DO" : []
}
},
{ "drupal_message" : { "message" : "test pos event" } }
]
}
}

however the orders in admin - store - orders show up with the payment method

http://imgur.com/a/XZeHy

can anyone help please?

some more information evolved here: https://drupal.stackexchange.com/questions/243556/why-does-the-selected-...

Comments

roxart created an issue. See original summary.

roxart’s picture

Issue summary: View changes
roxart’s picture

rszrama’s picture

Category: Bug report » Support request
Priority: Major » Normal
Status: Active » Closed (works as designed)

As Shawn suggested over at Drupal Answers, the condition in question is only for the selected payment method on the checkout form, not for orders outside of that context. You'd need a custom condition for that that knew how to interpret the presence of multiple transactions per order. I see some good advice in the answers at Drupal Answers.