Skip to main content

Documentation Portal

Pricing: Sorting and Faceting

Configuring Global‑e price facets for Global‑e countries operated by Global‑e is a feature of the Add-on.

You can follow the standard Hybris approach to configuring pricing facets. However, Price facets are currency-specific rather than country-based. Therefore, we recommend the following approach to ensure accurate functionality.

The sort function, Sort Prices High - Low or Sort Price Low - High, is automatically enabled by setting the price facet for a specific currency.

To index a currency and show the price facet:

Step 1. Enable Currency and faceting and select a site

  1. Enable currency sorting and faceting: From the Backoffice’s left menu, select System > Search and Navigation > Solr Facet Search Configuration > Facet Search Config.

    SAP7.png
  2. Select a site (in this example, we have chosen Electronics)

    SAP8B.png
  3. In the main area, under the Properties tab, add the currency for which to enable sorting and faceting (in this example, we have chosen Zloty).

  4. Click Save

Step 2: Create a New Set of ranges.

  1. From the Backoffice’s left menu, select Ranges.

    SAP9.png
  2. In the main area, click + Set of Ranges to add the new ranges.

    SAP10.png

    The Create New Set of Ranges dialogue opens.

    SAP11.png
  3. Under Name, give the new range a suitable name.

  4. Under Type, select Double.

  5. Click Done.

  6. At the top of the Ranges screen, click inside the Search field.

    The range that you have created appears as a row.

    SAP12.png
  7. Click the new range row.

    The Ranges tab opens.

    SAP13.png
  8. Under Ranges, add a new value range by clicking ‘+’.

    The Create New Value range dialogue opens.

    SAP14.png
  9. Fill in the required fields to create the new range.

  10. Click Done.

  11. Repeat the above steps until you have created all the required ranges.

    The following figure shows a list of ranges.

    Note

    Make sure to save after each range has been created to avoid errors.

    SAP15.png

Step 3: Add the currency code

  1. Select the administration tab.

    SAP16.png
  2. In the Qualifier field, add the currency code.

  3. click Save.

Step 4: Add a Facet

  1. Click on the site row (Electronics).

    The site details screen opens.

  2. Select the Indexed Types tab.

    SAP22.png
  3. Click the 3 dots on the left and select Edit Details.

    SAP17.png
  4. In the pop-up’s Properties table click on Indexed Properties. On the price row, click the 3 dots and select Edit Details.

    SAP19B.png

    The Edit Item price screen opens.

    SAP23.png
  5. Select the new range set you have created for Range sets.

    SAP20.png
  6. Click Save.

    The 'Create new Solr indexing operation' was created successfully.

    image27.jpg
  7. Click Done.

Step 5: Run an index

  1. At the top of the screen, click Index.

    Index.jpg
  2. Under Operation Values, select 'full'.

  3. Click 'Start.

    SAP21.png

Once the index is complete, the new facets appear on the front end, and the sorting by price works as expected.