Good morning.

Hello I want to recover with the "rules" the number of items to buy later add roles to the user with an expired role.
But he did not want to take me count the value just above to loop over and increment "one mouth" * "item number" for role_expire.

look at my picture to see it I'm not wrong

Sorry for my English , i am French .

Tank you.

Comments

rszrama’s picture

Status: Active » Closed (won't fix)

Rules loops can only be used for tokens that would be array values in code (like a list of line items from commerce-order:commerce-line-items). In other words, it can iterate over lists, but it doesn't work like a simple for() iterator (do something X number of times). You're going to have to figure out some other way to accomplish your goal. Please post future support requests to http://www.drupalcommerce.org/questions.

erebos60’s picture

The problem is that on the forum: http://www.drupalcommerce.org/questions there is no activity.

And I find no solution to my problem to allocate an expire date in the roles which is calculated with respect to the products.