When using the Extended pricing module I add the following to my YML file.
Product:
extensions:
- HasGroupPricing
HasGroupPricing:
price_levels:
wholesale: WholesalePrice
field_labels:
WholesalePrice: 'Price for wholesale customers'
I have a wholesale group and the fields show up in the CMS for setting a price, but nothing happens on the front end.
The key for the
price_levelshas to exactly match theCodeof the group in the CMS. TheCodeof a group will only be set with the initial write, so renaming a group later on won't change its group-code!That being said, you should inspect the
GroupTable in your Database and look at theCodecolumn. Identify the group you want to apply theWholesalePriceto and ensure that the key matches theCodeof that group…Example: You have a Group that is called "My Wholesale Group", the
Codeof said group ismy-group(you'd have to look this up in the Database). You'd then have to change your YML to read: