How To

Multi-Currency

8min



To accommodate additional currency pricing, we will introduce an additional parameter to every API request.

  • priceFieldSuffix

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 examples

Below is a FEED XML example for product additional currencies

XML




Below is a FEED XML example for specific group additional currencies

XML






Template JS Override

The desired currency/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

Apply the selected currency for all products

JavaScript


API Parameter

Description

Format

priceFieldSuffix

Fetch prices in a specific currency

{CURRENCY}

Example 2

Apply the selected currency for a specific customer group

JavaScript


API Parameter

Description

Format

priceFieldSuffix

Fetch prices/currency specific to a customer group

{CURRENCY}-{GROUPID}

See : Klevu API Documentation for Customer Groups



Example 3

For Klevu Smart Recommendations use the Recommendations klevu_processRECSRecordQueries function for the outgoing query modifications

JavaScript


See : Modify Recommendations Overview for more details