Open CBrach opened 1 month ago
[public] Shopware automated response: This issue is linked to the internal issue: NEXT-38939
[created from NEXT-38939, comment 503336]
Did someone find a workaround yet? :) This issue is affecting a live shop of a customer :/
PHP Version: 8.2 | Shopware Version: 6.6.7.0 | Affected area / extension: Platform(Default)
Expected behaviour:
In shops with two storefronts that share the same domain (e.g. localhost and localhost/test), the carts should be seperate. Opening the second storefront shouldn't have any influence on the cart in the first storefront and vice versa.
Actual behaviour:
When opening the second storefront, the cart from the first storefront is still loaded. Any products that are only assigned to the first storefront are removed from the cart, even when switching back to the first storefront. In shops that have distinct products assigned to two storefronts, the cart is effectively emptied when opening the other storefront.
How to reproduce:
Setup: In a fresh Shopware 6.6.6.1 or 6.6.7.0 setup, create a second storefront sales channel. For the domain, use the same domain as the primary sales channel with a slug (e.g. localhost and localhost/test). Assign one or more products to only one of the sales channels.
Bug reproduction: Open the primary storefront and add a product to your cart that isn't available in the second storefront. Afterwards, open the homepage of the second storefront.
When switching back to the first storefront, the cart should be unchanged. Instead, all products that are not available in the second storefront are removed from the cart.
Video of the bug in action: https://imgur.com/07JtQ4K