Features
Configurations

Product Settings

Introduction

Whilst it’s possible to configure product settings for all customers across your website (e.g pack sizes, reserve stock quantities), you can also apply these product settings to specific customer groups, giving you a high degree of control over what product options are available to your customers.

ο»Ώ

Available product settings

You can apply any of the following product settings to customer groups:

Name

Type

Description

customer_group

string

Customer Group - settings will be applied to this customer group

pack_size

integer or null

Only allow the product to be purchased in multiples of x Default: 1

reserve_stock_quantity

integer or null

Reserve stock quantity - always ensure x amount of stock is left (generally used to ensure DTC has availability) Default: null

min_order_quantity

integer or null

Only allow the product to be bought in a minimum of x Default: null

max_order_quantity

integer or null

Only allow the product to be bought in a maximum of x Default: null

min_order_parent_quantity

integer or null

Only allow the product to be bought in a minimum of x across all variants Default: null

max_order_parent_quantity

integer or null

Only allow the product to be bought in a maximum of x across all variants Default: null

display

boolean or null

Allow the product to display on the frontend Default: null

sell

boolean or null

Allow the product to be added to the cart Default: null

ο»Ώ

Settings Configuration

ο»Ώ

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 settings

Value

This must be set up in this format

​[{"customer_group": "base","pack_size": 1,"reserve_stock_quantity": 10,"min_order_quantity": 5,"max_order_quantity": 50,"min_order_parent_quantity": 5,"max_order_parent_quantity": 50,"display": true,"sell": true}]

Please note

  • You can find the value for customer_group in your dashboard in the "Name" column, e.g. Base
  • When setting a customer_group, always enter it as lowercase. E.g. Base becomes base
  • See table Available settings to apply to customer groups above for accepted inputs for each Value
  • In the metafield Value, you only need to include the settings that you actually want to set - you can either remove the unused settings, leaving only customer_group and the settings you wish to configure, or leave them set to null
  • Make sure that every line ends with a comma, except for the last line

For example, if you only wanted to configure minimum order quantity of 5 and a maximum order quantity of 50 for the customer group 'Gold tier', the Value would look like this:

JS
ο»Ώ
ο»Ώ

Example use cases

ο»Ώ

ο»Ώ

ο»Ώ