I have created a wholesale authenticated user and a retail authenticated user.
I want to assign a custom rule for anonymous and retail users to see different (retail) pricing.

How do I change the Offset value from an integer to a percentage(%)?

Rule listed below:

Event: Calculating the sell price of a product
Condition: User has roles...
Actions: Add an amount to the price
Is there anyway to change the ADD OFFSETvalue to a percentage(%)?

Comments

admin@online’s picture

Title: Need to have a percentage (%) value » Need to have a percentage (%) Offset value Instead of an Integer
StatusFileSize
new89.39 KB

I have created a wholesale authenticated user and a retail authenticated user.
I want to assign a custom rule for anonymous and retail users to see different (retail) pricing.

How do I change the Offset value from an integer to a percentage(%)?

Rule listed below:

Event: Calculating the sell price of a product
Condition: User has roles...
Actions: Add an amount to the price
Is there anyway to change the ADD OFFSET value to a percentage(%)?

timodwhit’s picture

Short answer is you don't, but there are simple ways to perform this action.

Let me make sure I understand your problem.

You have a base price (x) and you need to add an amount (y) to that base price, but that amount needs to be a percentage (p) of the base price?

Either way you need to add a step before you are adding your price.

1) Add the actions calculate a value.
2) Select the unit price as data selector 1, set value to (*), set value 2 as the percentage.
3) Add a new action that is 1) set the unit price of an item, or 2) add a price to the item, and use the variable that was found in step 2 to set the price. Viola.

Good luck with your project, hope the launch goes smoothly.

timodwhit’s picture

Priority: Major » Minor
Status: Active » Fixed

forgot to change the status.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.