cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

I want to show country specific prices in storefront in search result page i.e. solr pricing.

Former Member
0 Likes
763

Country specific means for a product there are different prices for different country depending on tax.

I have written valueProvider which creates indexes depending on country. For example: priceValue_it_eur_double: 10 priceValue_fr_eur_double: 12 priceValue_sp_eur_double: 13 priceValue_be_eur_double: 14

so Indexing part is done.

now How to show fetch that perticular value on storefront? current country and currency are stored in session.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hi Jalindar,

For the storefront (excluding product listing page - results returned from solr) you can simply use searchRestrictions - based on the country you have in session.

For solr built pages (PLP) - depending on your hybris version, create a custom implementation of FacetSearchListenerAdapter or SolrQueryPostProcessor - and add the required logic using the country held in session.

Answers (0)