Skip to content

[BUG] Swatches Not Displaying Correctly on Product Page #5135

@addison74

Description

@addison74

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I have encountered a bug with the swatches for configurable products in the latest version, which I believe needs attention. The issue occurs when trying to display the swatches (such as color or size) on the product page.

When "Size" is not selected in the "Product Attribute to Use for Swatches in Product Listing" field, the swatches do not appear on the product page. Instead, the attribute remains as a regular dropdown.

Expected Behavior

Swatches should appear on the product page regardless of the setting for "Product Attribute to Use for Swatches in Product Listing", since displaying swatches in the product detail page is not related to how products are listed in the category or the product listing configuration.

I consider this is a bug, as the swatches should be independent of the listing configuration and should display properly on the product detail page regardless of the "Product Attribute to Use for Swatches in Product Listing" setting.

Steps To Reproduce

  1. Select "Size" as an attribute in the "Product Attributes to Show as Swatches in Product Detail" section.

  2. Ensure that "Size" is not selected for "Product Attribute to Use for Swatches in Product Listing".

  3. View the product page.

Environment

- OpenMage: latest from the cloned repo
- PHP: 8.4

Anything else?

Visual Comparison

Without Size selected in Product Listing

Image

With Size selected in Product Listing

Image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions