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
๏ปฟ
๏ปฟ
๏ปฟ

๏ปฟ