Products in parent category of virtual categories showing 404
Preconditions
Magento Version : 2.4.7-p3
ElasticSuite Version : 2.11.10.1
Environment : Developer / Production
Third party modules : The list is really big
Apptrian_FacebookPixel
AvS_ScopeHint
BestPrice_BestPriceAnalytics
Cardlink_Checkout
DEG_CustomReports
Ebizmarts_MailChimp
Elegento_SkroutzPoint
Ioweb_AccountDropdown
Ioweb_AdminDashboard
Ioweb_Base
Ioweb_CardlinkAddons
Ioweb_CleanNegativePricesFromConfigurables
Ioweb_ColorCrosslinks
Ioweb_ConfigurableDynamicAttributes
Ioweb_CookieConsentOb
Ioweb_CspWhitelist
Ioweb_CustomerAccountLinks
Ioweb_Customizer
Ioweb_EltaCourier
Ioweb_FeedCore
Swissup_AddressFieldManager
Ioweb_FotoramaMarginsFix
Ioweb_GoogleTags
Ioweb_Iconify
Ioweb_JmsSerializer
Ioweb_Label
Ioweb_LabelCustom
Ioweb_Linkwise
Ioweb_LinkwiseAddons
Ioweb_Migration
Ioweb_OrderColumns
Ioweb_OrderToolsEnhancer
Ioweb_PaymentRestrictions
Ioweb_PostUpgradePatches
Ioweb_PriceHistory
Ioweb_QtyIncrement
Ioweb_QtySold
Ioweb_SimplifyCaptcha
Ioweb_SkroutzFeedVariations
Ioweb_SmileElasticHotfix
Ioweb_Sms4u
Ioweb_StickyHeader
Ioweb_StockManager
Ioweb_StockReport
Ioweb_Toolbox
Ioweb_TrackingNumberCarriers
Mageplaza_Core
Mageplaza_DeleteOrders
Mageplaza_Multiflatrates
Mageprince_Paymentfee
Magezon_Core
Magezon_Builder
Magezon_PageBuilder
Magezon_Newsletter
Magezon_NinjaMenus
Magezon_HeaderFooterBuilder
Magezon_PageBuilderIconBox
Magezon_PageBuilderPageableContainer
Magezon_UiBuilder
Opengento_Gdpr
PayPal_Braintree
PayPal_BraintreeCustomerBalance
PayPal_BraintreeGiftCardAccount
PayPal_BraintreeGiftWrapping
PayPal_BraintreeGraphQl
Smile_ElasticsuiteAdminNotification
Smile_ElasticsuiteCore
Smile_ElasticsuiteCatalog
Smile_ElasticsuiteCatalogGraphQl
Smile_ElasticsuiteCatalogRule
Smile_ElasticsuiteCatalogOptimizer
Smile_ElasticsuiteTracker
Smile_ElasticsuiteThesaurus
Smile_ElasticsuiteSwatches
Smile_ElasticsuiteIndices
Smile_ElasticsuiteAnalytics
Smile_ElasticsuiteVirtualCategory
Smile_ProductLabel
Swissup_AbandonedCart
Swissup_AddressAutocomplete
Swissup_CheckoutFields
Swissup_AddressValidation
Swissup_Checkout
Swissup_CheckoutCart
Swissup_Firecheckout
Swissup_CheckoutRegistration
Swissup_CheckoutSuccess
Swissup_Codemirror
Swissup_Core
Swissup_CustomerFieldManager
Swissup_DeliveryDate
Swissup_FieldManager
Swissup_Orderattachment
Swissup_FirecheckoutIntegrations
Swissup_Geoip
Swissup_Marketplace
Swissup_Taxvat
Swissup_Rtl
Swissup_SocialCore
Swissup_SocialLogin
Swissup_SubscribeAtCheckout
Ioweb_FireCheckoutInvoiceAddons
Swissup_Tippyjs
Wyomind_Framework
Wyomind_DataFeedManager
Steps to reproduce
- Create a top level category (subcategory not root category)
- Create a child category below it and make it a virtual category.
- Visit the main category from the frontend
- Click on a product
- The URL turns out 404
Expected result
- The product opens fine
Actual result
- 404 error
@ioweb-gr
Provide an example of the URL that caused a 404 error.
BR, Vadym
Hi you can check this page here on our staging site
This is a plain subcategory which contains multiple virtual categories below it
Products are coming directly from the elastic suite virtual category conditions
https://polr.ioweb.gr/7I0un
All product links are redirecting to 404
@ioweb-gr,
When I click on your link it redirects me to this page.
Also, I'm not a native Greek speaker.
On which virtual rules are based your multiple virtual categories that belong to your plain subcategory (is this on Brand attribute)?
BR, Vadym
Yes and when you click on any product you will get a 404 page
They're built based on manufacturer attribute
Hello @ioweb-gr,
Is your "Brands" category actually empty/void of any products and it only shows products from the children (virtual) categories ?
Regards,
Yes exactly
just encountered the same problem. we have normal category A, with normal subcategory B and virtual subcategory C. We have products assigned to subcategory B and some in C via conditions. When visiting now parent category A in the frontend products of category B and C are shown, but all product that are added via virtual subcategory C lead to 404 pages whereas products coming from subcategory B lead to correct product detail pages. Seems like url rewrites are only provided for the virtual categories ? So, opening www.myshop.com/a/c/product.html works but since category A is an ordinary category www.myshop.com/a/product.html isn't handled.
Hello @ioweb-gr, @Wutzl,
Could you provide me the configuration you have for Stores > Configuration > Catalog > Catalog > Search Engines Optimization ?
So far, I can't reproduce the issue but my guess this relates to "Generate "category/product" URL Rewrites" since if all product URLs are "canonical", that's a non-issue.
Regards,
Hi these are our settings
Any ideas on what might be causing this?
Hello @ioweb-gr,
Unfortunately, we don't have any ideas at the moment. We were not able to reproduce this issue on the fresh Magento installation, and most likely, it could be linked with smth specific to your project. Therefore, we need to delve deeper into this issue, we will return to this later.
BR, Vadym
Just to let you know, I just found out we're experiencing the same issue.
Hello everyone,
we have the same issue. In the backend the virtual Category shows 5 Products, which is correct. In the frontend it shows all the products which are in the parent category.
We are running on
Magento 2.4.8-p2 Elasticsuite version: 2.11.15.1 PHP 8.3 Opensearch 2.19.3
Kind regards Eike