Calling Developers!
We are reenergizing our code contribution process! Learn More

Product search with availability status (active)

Options
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 ✓
    Options

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

Answers

  • profuel
    profuel SSA Sprykee Posts: 37 ✨ - Novice
    Options

    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
    Options

    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 ✓
    Options

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