shopware / shopware

Shopware 6 is an open commerce platform based on Symfony Framework and Vue and supported by a worldwide community and more than 1.500 community extensions
https://shopware.com
MIT License
2.8k stars 1.02k forks source link

Bug Report: Variant Display Issue on Product Detail Page with Clearance Sale Enabled #3881

Open Aduen opened 2 months ago

Aduen commented 2 months ago

PHP Version

8.3.10

Shopware Version

6.6.5.1

Expected behaviour

Description

Creating a variant with options not listed in the product-configurator-setting causes issues with the display on the product detail page (PDP) when clearance-sale is enabled. When the variant has physical stock, it is shown as disabled on the PDP, although it is selectable and can be ordered. A variant with no stock works as expected and is shown as "no longer available".

Steps to Reproduce

  1. Add variants as usual.
  2. Add an option to each variant that is not listed in the product-configurator-setting.
    • For example, if variants are made with a size-range ("38-40"), add extra options through the admin API for the actual sizes (38, 39, 40).
  3. Observe the variant display in the backend and on the PDP.
    • In the backend, the variant is displayed as ("38-40", "38", "39", "40").
    • On the PDP, the variant is displayed as "38-40" since this is the only option added to the product-configurator-setting.

Expected Behavior

Actual Behavior

Use Case

This particular use case is necessary to generate variants for clothing with size ranges, e.g., socks, and be filtered on exact sizes instead of the size-range.

Additional Information

Screenshots

L - 0 stock M, XL - 5 in stock

image Variant with 0 stock image Variant with stock

shopware-issue-bot[bot] commented 2 months ago

We found the following existing issues which may help or are related to your topic:

shopwareBot commented 2 months ago

[public] Automated response: This issue is linked to the internal issue https://shopware.atlassian.net/browse/NEXT-37664.

[created from NEXT-37664, comment 484201]