Umbraco Commerce: Multiple Prices
# help-with-umbraco
n
Hi all, I am looking into having 2 different prices on a single product/variant, but I can't really see how to do this probably, as when I put a variant in the cart, it will always look at the property with alias "price" - and I can't have 2 of those. So I am wondering if I am missing something, or what the correct approach would be in this case. Use case is a standard price and a member price, so when a user is logged in, the product should use the member price, and not standard price. Thanks for the help 🙂
m
Use a price adjustment? https://docs.umbraco.com/umbraco-commerce/key-concepts/price-amount-adjustments simple check if logged in and alter the price to your second (member) price field.
n
Hmm alright, I will try and see if I can get that to work, I might not have used it correctly - but thanks, I Will try and give it another shot 🙂
m
I'd probably override the default ProductAdapter and have that check if the members is logged in or not and then resolve the price from whichever property is relevant.
Checkout the webinar we did a while ago that talks about this approach

https://youtu.be/vZPug_aSiXo?si=MexUP7EnwJrieNrL&t=3020â–¾

n
Alright, I will check out the webinar - thanks a lot 🙂
6 Views