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 to enable this, sparklayer uses special settings (sometimes referred to as metafields or attributes ) that allow additional data to be stored against products 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 https //app sparklayer io/customers/groups 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 \[ { "customer group" "gold tier", "min order quantity" 5, "max order quantity" 50 } ] example use cases example 1 exclusive products company x has two customer groups base (standard b2b customers) gold tier (a group of preferred customers who have access to discounted pricing and exclusive products) as part of their preferential terms, gold tier customers have access to a range of exclusive products which are not available to base customers \[ { "customer group" "base", "display" false, "sell" false } ] please note product variants that have this metafield applied will only be visible to gold tier customers by default all products are visible to all customer groups, we do not need to explicitly make these products visible to gold tier customers, instead we simply need to hide them from base customers please make sure that you add the following metafield to the variants you wish to remain showing to the base group \[ { "customer group" "base", "display" true, "sell" true } ] example 2 customer group specific pack sizes company x has two customer groups wholesale customers (other businesses who stock their products) influencers (people who advertise their products on social media) their influencers only need to order single units to showcase their products on social media, whereas their wholesale customers need to order large quantities for their stock company x wants to configure their products to be sold individually to the influencer customer group, and in pack sizes of 50 to the wholesale customer group \[ { "customer group" "base", "pack size" 50 }, { "customer group" "influencer", "pack size" 1 } ] please note when the customer group is set to โbaseโ, this applies to all customer groups in the second array, we specify that the specific customer group โinfluencerโ is set with a pack size of 1