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
can anyone help please?
some more information evolved here: https://drupal.stackexchange.com/questions/243556/why-does-the-selected-...
Comments
Comment #2
roxart CreditAttribution: roxart commentedComment #3
roxart CreditAttribution: roxart commentedhttps://drupal.stackexchange.com/questions/243556/why-does-the-selected-...
Comment #4
rszrama CreditAttribution: rszrama at Centarro commentedAs 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.