Doofinder logo

Support Documentation

Search icon

Multiprice B2B Integration

B2B Personalized Pricing Using Doofinder’s Multiprice Attribute

Adapting your pricing strategy to suit various customer segments can set your business apart.

To implement different pricing for user groups, you have the option to use Doofinder’s multiprice attribute, which will help you to easily harness the full potential of personalized pricing.

Keep in mind, this is a more complex adjustment and involves some coding expertise.

This guide will explore how you can present different prices to specific customer groups within Doofinder.

This is the supported version of B2B for the layer, ensuring full compatibility with our features. If you're unable to use Doofinder’s multiprice attribute to create different groups, you can follow the alternative method described in this documentation. The layer does not support this alternative version.

1. Index Various Prices and Groups in Your Product Data Feed

To index prices with the multiprice attribute for different groups, first, you will need to create a price_name for each group, including price and sale price (where applicable), in the Doofinder’s multiprice attribute, to call one group or another.

Structure example:

{
  "df_multiprice": {
    "price_name": {"price": 24, "sale_price": 19},
    "price_name": {"price": 26, "sale_price": 21},
    "price_name": {"price": 28, "sale_price": 23},
    "price_name": {"price": 30, "sale_price": 25}
   }
 }

Example using groups:

{
  "df_multiprice": {
    "GroupName": {"price": 24, "sale_price": 19},
    "GroupName": {"price": 26, "sale_price": 21},
    "GroupName": {"price": 28, "sale_price": 23},
    "GroupName": {"price": 30, "sale_price": 25}
   }
 }

2. Place the price_name Parameter in Your Script

Now, you will need to place the price_name parameter to your Doofinder script in your HTML. This parameter will tell Doofinder which are the different groups and prices for a currency in your Search Engine.

The script should be configured as follows:

<script>
  (function(w, k) {w[k] = window[k] || function () { (window[k].q = window[k].q || []).push(arguments) }})(window, "doofinderApp")
  doofinderApp("config", "language", "en")
  doofinderApp("config", "priceName", "GroupName")
</script>
<script src="https://eu1-config.doofinder.com/2.x/50ff970f-8f03-41f9-8203-0f9767f6ab99.js" async></script>

3. Configure Pricing in the Admin Panel

In your Admin Panel, go to Configuration > Store Search Engines > click on the name of the Search Engine where there are the different pricing for user groups. You will be now on the Search Engine Setup panel.

Search Engine Setup Multicurrency configuration

If you have created the df_multiprice attribute correctly in your feed, by adding the language and currency, all the price_name you have configured will be automatically mapped.

Once finished, click on “save”.

Did you find this page helpful?