Features
Configurations

Pricing Display

Displaying a RRP price (MSRP price)

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.

Document image
ο»Ώ

ο»Ώ

ο»Ώ
πŸ›οΈ Using Shopify
🌐 Other platforms

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"}]

You can also watch our video tutorial on how to set this up.

ο»Ώ
ο»Ώ
JS
ο»Ώ

If you'd like to adjust the appearance of the RRP pricing, you can do so via adding special CSS overwrites to apply formatting.

Document image
ο»Ώ

Simply add the below CSS to your CSS overwritesο»Ώ and adjust accordingly.

CSS
ο»Ώ
ο»Ώ

Quantity pricing

Learn more For our full guide on quantity pricing and available configurations, please see our Quantity Rulesο»Ώ guide.

Quantity pricing table

If you've set up Quantity Pricing & Settingsο»Ώ for your products, SparkLayer will by default show this to your customers within the Product Detail Interfaceο»Ώ.

ο»Ώ

This will also show to customers when they add items to the My Cart Interfaceο»Ώ.

Document image
ο»Ώ

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.

Document image
ο»Ώ

Simply add the below in the source code of your product pages to display an additional quantity breaks table.

HTML
ο»Ώ

Quantity pricing savings

You can also customise how the "savings" column displays to customers.

Area

Details

Decimal places

If you'd prefer to show two decimal places in the savings percentage (e.g. 9.45% off instead of 9% off), you can add the following setting to your SparkLayer Core Scriptο»Ώ (within the display settings).

roundPriceBreakPercentages: true,

Hiding savings

You can optionally hide the savings percentage from showing by adding the following setting to your SparkLayer Core Scriptο»Ώ (within the display settings).

showPriceBreakSavings: false,

Document image
ο»Ώ

Quantity pricing discount percentage based off RRP

If you're using Quantity Pricing & Settingsο»Ώ 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%

Document image
ο»Ώ

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.

ο»Ώ
JS
ο»Ώ
ο»Ώ

Unit of measure pricing

Are you looking to set up pricing based on "units of measure" such as boxes, cartons, or pallets? Please refer to our Quantity Pricing & Settingsο»Ώ guide to learn more.

ο»Ώ

Customising the pricing text

It's possible to prefix the pricing display on a product detail page with custom language such as 'Your price'.

Document image
ο»Ώ
ο»Ώ
JS
ο»Ώ

In addition to this, you can also adjust any of the default language used for pricing using the below language strings.

JS
ο»Ώ
ο»Ώ

Display a 'unit cost' price

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".

Document image
ο»Ώ
ο»Ώ
πŸ›οΈ Using Shopify
🌐 Other platforms

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.

Document image
ο»Ώ

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

JS
ο»Ώ

Important to note If you are looking to customise the behaviour of how this works, we recommend engaging a Shopify expert to assist.

ο»Ώ

Adjusting the "Unavailable" message

When a product has no B2B pricing set against it, the Product Card Interfaceο»Ώ and Product Detail Interfaceο»Ώ will display a message that shows "Unavailable". This indicates to the B2B customer that the product cannot be purchased.

Document image
ο»Ώ

If you'd prefer, you can adjust this to display a different message by updating the language settings on your store.

ο»Ώ
JS
ο»Ώ
ο»Ώ
ο»Ώ

ο»Ώ