Pricing Display
Within the SparkLayer Frontend, it's possible to show RRP prices (or "MSRP prices") alongside your specific B2B pricing. For example, you may want logged in users to see what non-B2B customers pay for a specific item, allowing them to easily see their pricing savings.

To enable this, SparkLayer uses special settings (sometimes referred to as metafields or attributes) that allow additional data to be stored against products.
Setting up metafields on Shopify To learn more about how to configure metafields on Shopify for SparkLayer, please refer to our guide here
Item | Details |
Custom data type | Variants |
Metafield type | This must be set as an JSON string |
Namespace | This must be set as sparklayer |
Key | This must be set as rrp |
Value | This must be set up in the following format [{"value":15.99,"currency_code":"usd"}] Where value is the retail price and currency_code is the currency code (e.g. usd, gbp, eur). You can define prices for additional currencies by using this example format [{"value":15.99,"currency_code":"usd"},{"value":10.99,"currency_code":"gbp"}] |

Updating language and text You can update the default text by adding code to your Core Script. Learn more about how to update text on SparkLayer.
If you'd like to display the RRP price elsewhere on your website, you can do this using the Product Price Interface
Please also see Quantity Rules for other configurations available.

It's also possible to display the tiered pricing breaks table anywhere on your product detail page by adding a special code snippet to your website.
If you're using Quantity Pricing & Rules in your price lists, this will display additional information to make it clear to the customer how much they are saving based on how many units they purchase.
By default, the 'Savings' will be calculated based on the single unit price of the particular product (or variant). For example, if the single unit price is $2.00 and if you purchase 5 or more the price reduces to $1.00, the savings will display as -50%

If you'd prefer for the savings to instead be calculated off the RRP (i.e. retail price) of a product, you can enable this by adding a special setting.
Updating the display You can update the default display by adding code to your Core Script. Learn more about how to update display settings on SparkLayer
It's possible to prefix the pricing display on a product detail page with custom language such as 'Your price'.

Updating language and text You can update the default text by adding code to your Core Script. Learn more about how to update text on SparkLayer.
If you sell products that comprise 'multiple units', it's possible to display an automatically calculated "Unit Price" on your product pages. For example, you may sell a product that comes in packs of 10, but you want to make it clear to your customers how much a "single unit" costs. Or you may sell products that come in specific weights (e.g. kg) and you want to show a "price per kg".

To enable this, SparkLayer uses special settings (sometimes referred to as metafields or attributes) that allow additional data to be stored against products.
Setting up metafields on Shopify To learn more about how to configure metafields on Shopify for SparkLayer, please refer to our guide here
Item | Details |
Custom data type | Variants |
Metafield type | This must be set as an integer string |
Namespace | This must be set as sparklayer |
Key | This must be set as case_size |
Value | This must be set up in the following format 1, 2, 3, etc |
Once the setting has been set up, you can then use and modify the below code sample to display on your product pages.
Combining with Shopify's unit price feature
If you're using Shopify's built-in unit price feature, you can also dynamically display the 'reference unit' e.g. kg, lb, ml.

Within the code sample above, simple change el.textContent to the below: