How To

Customer Groups

7min



To accommodate variable pricing and/or visibility for specific customer group, we will introduce two additional parameters to every API request.

  • priceFieldSuffix
  • visibilityGroupID

See: Modify Request Overview for details on preparing for Klevu JS overriding

See : Klevu API Documentation for Customer Groups

Indexing

The additional currency pricing data must be supplied at the product level during catalog indexing.



XML FEED example

Below is a FEED XML example for specific group visibility

XML


Below is a FEED XML example for specific group visibility and/or variable pricing

XML


If you intend to use multiple currencies in addition to group variable pricing and/or visibility, please review the Template JS Multi-Currency guide for more details



Template JS Override

The desired group visibility and/or prices are applied to all queries via overrides using the "all" scope value.

See: Modify Request Overview for details on preparing for Klevu JS overriding

Example 1

Exclude all records which do not belong to the group

JavaScript
BigCommerce


API Parameter

Description

Format

visibilityGroupID

Exclude all records which do not belong to the group

{GROUPID}

See : Klevu API Documentation for Customer Groups



Example 2

Apply the specific customer group pricing for the appropriate currency

JavaScript
BigCommerce


API Parameter

Description

Format

priceFieldSuffix

Fetch prices/currency specific to a customer group

{CURRENCY}-{GROUPID}

See : Klevu API Documentation for Customer Groups