Multiprice
Doofinder's multiprice attribute introduces a streamlined and efficient way to manage multiple currencies. This feature allows you to handle multiple prices and currencies within a single Search Engine, simplifying operations and enhancing flexibility and enabling a more streamlined and efficient approach to managing multiple currencies and price configurations across regions.
This enhancement introduces a new df_multiprice
field within the search engine index. The multiprice field is an object containing keys that represent different price labels (such as currencies or pricing tiers). These labels are accessed dynamically through the price_name
parameter in search requests, ensuring flexibility and control.
-
With no multiprice functionality, you have on your store a unique search engine configured for every language/currency combination:
- EN/EUR
- EN/USD
- EN/GBP
The selection of search engines in the Live Layer is determined based on the following criteria:
- Language: Defined by the
lang
attribute in the HTML tag of the page or an explicitly provided option in the layer configuration. - Currency: Optionally specified in the layer configuration for cases where the language code does not match any available search engine.
-
With multiprice functionality you now have the power to manage multiple currencies, managing a unique search engine for every language, and a specific attribute to deal with prices.
- EN/EUR - USD - GBP
With multiprice configuration, you can now minimize the number of search engines needed, streamline unique feed generation and indexing, and reduce search engine operations.
For example, for two Search Engines you will be able to have four combinations. In here, each Search Engine indexes two different currencies, like this:

Configuration
Here is a step by step guide on how to configure your feed to benefit from this functionality.
- Prepare Your Data Feed: Add the
df_multiprice
field to your feed. This field should include price values for different currencies, formatted as an object with currency codes and corresponding prices. - Update Your Search Engine: Ensure you create a new search engine (multipricing only applies to new engines) or update the existing one to include the multiprice field in the indexing.
- Configure Your Layer: Use the
price_name
parameter in your search layer configuration to dynamically access the correct currency based on user preferences or regional settings. - Test the Setup: Verify that multiple currencies display correctly in your search results by testing with various
price_name
values. - Streamline Operations: Leverage the multiprice functionality to reduce the number of search engines needed and simplify your operations.
Example:
{
"df_multiprice": {
"EUR": {"price": 24, "sale_price": 19},
"USD": {"price": 26, "sale_price": 21}
}
}
Take a look at a TXT index example:
id | title | link | df_multiprice
1 | Hummingbird printed t-shirt | https://www.doofinder.com/es/men/1-hummingbird-printed-t-shirt.html | EUR_price=24.00277/EUR_sale_price=19.202216/GBP_price=19.9222991/GBP_sale_price=15.93783928
Example of the Multiprice Field
The df_multiprice
object allows you to define price values for multiple currencies or pricing structures, as shown in the examples below:
Example:
{
"df_multiprice": {
"EUR": {"price": 10, "sale_price": 6, "best_price": 6},
"COP": {"price": 9000, "sale_price": 5000, "best_price": 5000},
"ARS": {"price": 10000, "sale_price": 5000, "best_price": 5000}
}
}
This approach encapsulates all pricing information, for a unique language, in a single field, simplifying price management across multiple regions and currencies.
Conclusion
With Doofinder’s multiprice indexing, you now have the flexibility to:
-
Manage multiple currencies within a single Search Engine.
-
Reduce the complexity of maintaining unique feeds for different languages or currencies.
-
Dynamically control pricing attributes for diverse contexts, including sales and promotions.
If you do not decide to configure multiprice and prefer having a unique search engine for each currency/language combination, refer to the following article.
Troubleshooting
Multiprice does only apply to new stores/search engines?
Yes, it only applies to new stores/search engines created.
What happens if a search engine is added to an existing store?
Search engines without multiprice functionality and those with multiprice capability can coexist across different search engines.