Implementing Member Based Pricing
Learn how to implement member-based pricing in Umbraco Commerce.
Last updated
Was this helpful?
Learn how to implement member-based pricing in Umbraco Commerce.
Last updated
Was this helpful?
By default, Umbraco Commerce uses a single price for a product. However, in some cases, you may want to have different prices for different customers. In this guide, you learn how to implement member-based pricing in Umbraco Commerce.
Creating the Member Groups to use for the member-based pricing. In this example two member groups are created: Platinum and Gold.
Create one Member for each group:
Next, you will create a new property editor for the member-based pricing. The in-built Block List Editor is used for this.
Create a Member Price
element type with a Price
and Member Group
property.
Use the default Umbraco Commerce Price
property editor for the Price
property.
Use the in-built Member Group Picker
property editor for the Member Group
property.
Open the Product Document Type.
Add a new Member Price
property using a new Block List Property editor configuration.
Select the Member Price
element type as the only allowed block type.
Navigate to the Content section.
Assign member-based pricing for any product you wish.
Populate the Member Price
field with the required Member Group and price combination.
With the prices defined, it's time to configure Umbraco Commerce to select the correct price based on the logged-in Member. This is done by creating a custom product adapter to override the default product adapter and select the correct price.
Add the following to a Composer
file to register the custom product adapter:
With all this implemented, the product page will display the correct price based on the logged-in Member.
The expected result for the standard product page:
The expected result for a Gold Member:
The expected result for a Platinum Member: