Hi there.
I have the following business requirement.
- Anonymous users can see products but not order them. The price they see is the standard recommended retail price
- Logged in users can see products and order them. The price they see is a standard price for all logged-in users but differs from the retail price.
So, each product will have two prices and depending on whether you are logged in, one or the other will be shown.
Using Swift, what is the easiest (read fastest/cheapest) way to implement this? I can still change the integration so if needed I can extend the products endpoint to include the second price, or use the ProductPrices endpoint to return two prices for each product.
I can think of a few solutions:
1. Custom price provider that looks at the standard price or a custom field for a product.
2. Using the price matrix, and forcing all users in a specific group to which a separate price applies.
3. Use the "Amount from field" option on a product discount. This is probably the simplest; but it feels wrong as it's not a discount.
Are there others?
Thanks!