Skip to content

Nested category conditions are not working properly in virtual categories #3744

@ioweb-gr

Description

@ioweb-gr

Preconditions

Magento Version : 2.4.7-p8

ElasticSuite Version : 2.11.15.1

Environment : Production

Third party modules :

+------------------------------------------------------+------------------+
| Name                                                 | (Schema) Version |
+------------------------------------------------------+------------------+
| Amasty_Base                                          |                  |
| Amasty_CronScheduleList                              | 1.0.0            |
| Amasty_Label                                         |                  |
| Amasty_LabelCacheCleanerForQtyVariable               |                  |
| Amasty_ProductLabelsSubscriptionPack                 |                  |
| AvS_ScopeHint                                        |                  |
| Cardlink_Checkout                                    | 1.1.0            |
| Fooman_Totals                                        |                  |
| Fooman_Surcharge                                     |                  |
| Fooman_SurchargePayment                              |                  |
| Ho_Templatehints                                     | 0.2.5            |
| Ioweb_AddressAttribute                               | 0.1.0            |
| Ioweb_AdminUser                                      | 0.1.0            |
| Ioweb_Base                                           | 2.4.6            |
| Ioweb_PylonGreekTaxes                                |                  |
| Ioweb_BottomBar                                      | 0.1.0            |
| Ioweb_ConfigurableDynamicAttributes                  | 0.1.0            |
| Ioweb_CookieConsentOb                                | 0.1.0            |
| Ioweb_CspWhitelist                                   | 0.1.0            |
| Ioweb_CustomerGroupClass                             | 0.1.0            |
| Ioweb_Customizer                                     | 0.1.0            |
| Ioweb_DeleteCustomAttribute                          | 0.1.0            |
| Ioweb_DisableCod                                     | 0.1.0            |
| Ioweb_ExtendBuyRequest                               | 0.1.0            |
| Ioweb_FloatingAddToCart                              | 0.1.0            |
| Ioweb_GoogleTags                                     | 0.1.0            |
| Ioweb_JmsSerializer                                  | 0.1.0            |
| Ioweb_Label                                          | 0.1.0            |
| Ioweb_Migration                                      | 0.1.0            |
| Ioweb_Pylon                                          | 0.1.0            |
| Ioweb_PriceHistory                                   | 0.1.0            |
| Ioweb_PrivateCms                                     | 0.1.0            |
| Ioweb_ProductGrid                                    | 0.1.0            |
| Ioweb_PylonPodilatis                                 | 0.1.0            |
| Ioweb_AgreementShipping                              | 0.1.0            |
| Ioweb_PodilatisWholesale                             | 0.1.0            |
| Ioweb_ShippingRestrictions                           | 0.1.0            |
| Ioweb_SimplifyCaptcha                                | 0.1.0            |
| Ioweb_SkroutzFeedVariations                          | 2.4.6            |
| Ioweb_SortOptions                                    | 0.1.0            |
| Ioweb_StorePickup                                    | 0.1.0            |
| Ioweb_TaxDisplay                                     | 0.1.0            |
| Ioweb_Taxis                                          | 0.1.0            |
| Ioweb_Toolbox                                        | 0.1.0            |
| Mageplaza_Core                                       | 1.0.0            |
| Magezon_Core                                         | 1.0.1            |
| Magezon_Builder                                      | 1.1.1            |
| Magezon_PageBuilder                                  | 1.1.1            |
| Magezon_Newsletter                                   | 1.0.3            |
| Magezon_NinjaMenus                                   | 2.0.6            |
| Magezon_HeaderFooterBuilder                          | 1.0.2            |
| Magezon_PageBuilderIconBox                           | 1.0.0            |
| Magezon_PageBuilderPageableContainer                 | 1.0.0            |
| Magezon_PageBuilderPreview                           | 1.0.1            |
| Magezon_UiBuilder                                    | 1.0.1            |
| OlegKoval_RegenerateUrlRewrites                      | 1.6.2            |
| Smile_ElasticsuiteAdminNotification                  | 0.0.1            |
| Smile_ElasticsuiteCore                               | 0.0.2            |
| Smile_ElasticsuiteCatalog                            | 1.7.1            |
| Smile_ElasticsuiteCatalogGraphQl                     | 1.0.0            |
| Smile_ElasticsuiteCatalogRule                        | 1.0.0            |
| Smile_ElasticsuiteCatalogOptimizer                   | 1.2.1            |
| Smile_ElasticsuiteTracker                            | 1.4.0            |
| Smile_ElasticsuiteThesaurus                          | 1.0.0            |
| Smile_ElasticsuiteSwatches                           | 0.0.1            |
| Smile_ElasticsuiteIndices                            | 1.0.0            |
| Smile_ElasticsuiteAnalytics                          | 0.0.1            |
| Smile_ElasticsuiteVirtualCategory                    | 1.5.0            |
| Swissup_AddressAutocomplete                          | 1.0.0            |
| Swissup_AddressFieldManager                          | 0.0.2            |
| Swissup_AddressValidation                            | 1.0.0            |
| Swissup_Attributepages                               | 1.4.0            |
| Swissup_BotProtection                                |                  |
| Swissup_Checkout                                     | 0.0.1            |
| Swissup_CheckoutCart                                 | 1.0.0            |
| Swissup_CheckoutFields                               | 1.4.1            |
| Swissup_CheckoutRegistration                         | 1.0.0            |
| Swissup_CheckoutSuccess                              | 1.0.0            |
| Swissup_Codemirror                                   | 1.0.0            |
| Swissup_Core                                         | 1.2.1            |
| Swissup_CustomerFieldManager                         | 1.0.0            |
| Swissup_DeliveryDate                                 | 1.3.1            |
| Swissup_FieldManager                                 | 1.0.0            |
| Swissup_Firecheckout                                 | 0.0.1            |
| Swissup_FirecheckoutIntegrations                     | 1.0.0            |
| Swissup_Geoip                                        | 1.0.0            |
| Swissup_Marketplace                                  | 1.2.0            |
| Swissup_Orderattachment                              | 1.0.1            |
| Swissup_Rtl                                          | 0.0.1            |
| Swissup_SubscribeAtCheckout                          | 1.0.0            |
| Swissup_Swiper                                       | 1.0.0            |
| Swissup_Taxvat                                       | 1.0.0            |
| Swissup_Tippyjs                                      | 1.0.0            |
| Veriteworks_CookieFix                                |                  |
+------------------------------------------------------+------------------+

Steps to reproduce

  1. Create a virtual category with a complex rule like this

Image

Because the store only has Greek available, I provide here below the translations for the screenshot rule selection

ΟΠΟΙΑΔΗΠΟΤΕ = ANY
ΟΛΑ = ALL
ΑΛΗΘΗΣ = TRUE
Κατηγορία = Category
είναι ένα από = is one of

  1. Make sure the categories have products
  2. Check that the products are not appearing in preview as they should

PS: Each rule by itself shows products fine

Expected result

It should include products in the preview

Actual result

It shows no products found in the preview

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions