POS: Product search by attributes

POS: Product search by attributes

[Total: 1    Average: 5/5]

This post will show you the way to enable and use product search by attributes in POS (ePOS).

AX configuration

Configuration of product attributes in AX include two main steps:

  1. Configure attribute groups, attributes and attribute values for hierarchies, categories and products.
    Very nice explanation is here: ORGANIC AX: PRODUCT ATTRIBUTES
  2. Mark all attributes to be used for search as ‘Can be refined’ (we will use new ‘Brand’ attribute as a sample).
  3. Assign product attributes to stores.
    Technet article can be helpful:STORE PRODUCT ATTRIBUTES
  4. Run 10401050 and 1070 jobs to update store databases.

POS changes

I did not find any standard way to run search by attributes in POS. But we can enable such search by a very small coding.

The main limitations of search by attributes are:

  1. It can be executed only within a SINGLE product category. This makes impossible to search across different category hierarchies
  2. It is performed only in local store database; call HQ (AX) is not possible.

Steps

  1. Add new ‘Blank operation’ for POS. Code for operation is shown below. This blank operation runs standard ‘Item search’ operation, but with a parameter. The parameter should contain Rec ID of product category.

  2. Add new button to POS layout

Results

  1. When POS starts item search with not empty category, it will show Search by attributes buttons: Category and Product attributes
  2. When you click on magic glass, the list of product attributes configured as Can be refined for current store will be shown.
    You can specify search values for multiple attributes, they will be applied as AND logical condition.
  3. Search shows found products
  4. If you click on Product details button, the list of attribute values will be shown.
  5. Minimum number of search chars to enter is two (2). When you try to enter a single character, you will receive the error: Search requires a minimum of two characters.
  6. Search by date attributes is disabled by default: AX does not allow marking date attributes as ‘Refinable’. However, if to change AX code a bit, search by date attributes will be possible.