Product search with availability status (active)

jaiganez
jaiganez Spryker Solution Partner Posts: 9 🧑🏻‍🚀 - Cadet

Team, does Spryker product search consider product availability status as part of search criteria or do we need to implement customized QueryExpanderPlugin to add the availability status?

Best Answer

  • Alberto Reyer
    Alberto Reyer Lead Spryker Solution Architect / Technical Director Posts: 690 🪐 - Explorer
    Answer ✓

    You will need to implement this, it's not an out of the box feature

Answers

  • profuel
    profuel SSA Sprykee Posts: 76 🪐 - Explorer

    Hi!

    We already have such a plugin, please check \Spryker\Client\SearchElasticsearch\Plugin\QueryExpander\IsActiveQueryExpanderPlugin. it's enabled in the B2B and B2C demoshops by default.

    Also, we have a more sophisticated version with a date-range \Spryker\Client\SearchElasticsearch\Plugin\QueryExpander\IsActiveInDateRangeQueryExpanderPlugin .

  • jaiganez
    jaiganez Spryker Solution Partner Posts: 9 🧑🏻‍🚀 - Cadet

    IsActiveQueryExpander checks for active status ( isactive field)of the products right? but I need to check for quantity available status based on the product concrete quantity field, quite similar to the check on cart page( On product quantity exceeds the available status throws an error out of stock). Here I ned to list down only active and available products, ho

  • Alberto Reyer
    Alberto Reyer Lead Spryker Solution Architect / Technical Director Posts: 690 🪐 - Explorer
    Answer ✓

    You will need to implement this, it's not an out of the box feature