I am trying to add action rule to checkout, when customer makes payment.

What I planned to do is:

After payment, customer receives user points so much, how much customer was paid for all products in cart he added.

So how I do this?

So I need to do something in checkout settings - checkout rules - page. I added a new rule to event "Completing the checkout process", there i added action "Grant points to a user" and settings in there for user data selector I added "commerce-order:owner" but question is: What I should put in "Points" data selector, so customers receive points so much as they have total balance in shopping cart?

Thank you.

Comments

Jere Toivanen’s picture

In Points selector I tried to put "site:current-cart-order:commerce-order-total" but gives me error message.

rszrama’s picture

Status: Active » Closed (won't fix)

Sorry, as the issue submission guidelines indicate, this is no longer the place for Drupal Commerce support. Please report your question at http://www.drupalcommerce.org/questions, and if you provide a link, I'll be happy to hop over there and try a quick answer.

Jere Toivanen’s picture

Ok, thanks.

I made a question to drupalcommerce.org and let's continue this discussion over there:

http://www.drupalcommerce.org/questions/3709/cart-total-amount-checkout-rules-grant-points-user