magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.55k stars 9.32k forks source link

Unable to add Product Image for Color Swatchs #10171

Closed gilbertsohal closed 7 years ago

gilbertsohal commented 7 years ago

Preconditions

  1. Magento ver. 2.1.7

Steps to reproduce

  1. In Color attribute property set (Use Product Image for Swatch if Possible) to YES
  2. Run (php bin/magento indexer:reindex)
  3. Run (php bin/magento cache:clean)

Expected result

  1. Color Attribute on product detail page showing product images in place of color swatches.

Actual result

  1. Color Attribute on product detail page not showing product images in place of color swatches.
  2. If i Run (php bin/magento indexer:reindex) and Run (php bin/magento cache:clean)
  3. Product image in place of color swatches appear on first page load and disappear if i refresh page again

Color Attribute http://prntscr.com/fslrnm

Detail Page Before Run (php bin/magento indexer:reindex) and Run (php bin/magento cache:clean) http://prntscr.com/fslry4

Detail Page After Run (php bin/magento indexer:reindex) and Run (php bin/magento cache:clean) http://prntscr.com/fslsov

LeLieu commented 7 years ago

The same issue, pls fix it!

IlnitskiyArtem commented 7 years ago

Hi, @gilbertsohal. I reproduced this behavior but in my case it's a little bit different. Can you please specify your steps? How exactly do you add images to your configurable product? By adding them for each simple product generated with your configuration or in some other way?

gilbertsohal commented 7 years ago

Hi IlnitskiyArtem

Thanks very much for your reply please find the steps below.

1) Create Color Attribute Store > Attributes > Product > Color (Attribute name) > Attribute Properties > Use Product Image for Swatch if Possible > YES

Please find screenshot Below. http://prntscr.com/g0qlyi

2) Add color attribute on Product Products > Catalog > Add Product (Configurable Product) > Configurations >Create Configurations

Step 1 (Screenshot) http://prntscr.com/g0qn4h

Step 2 (Select Attributes) http://prntscr.com/g0qnxs

Step 3 (Select Attributes Value) http://prntscr.com/g0qoqo

Step 4 (Apply unique images by attribute to each SKU) http://prntscr.com/g0qpby

Step 5 (Upload Images) http://prntscr.com/g0qpto

Step 6 (Summary) http://prntscr.com/g0qq8z

Step 7 (New Product) http://prntscr.com/g0qqr1

These are the steps i followed and the result is product detail page not showing product images in place of color swatches.

I find in my research if i disable EAV types and attributes in Cache management then the product image appear in place of color swatches. SYSTEM > Cache Management > EAV types and attributes > DISABLED

Screenshot (Admin) http://prntscr.com/g0qtdk

Screenshot (Frontend) http://prntscr.com/g0qu29

Hope this will help you.

regards G

IlnitskiyArtem commented 7 years ago

@gilbertsohal Yes, it helped. Internal ticket MAGETWO-71084, which tracks this GitHub issue, is in our issue backlog.

magento-engcom-team commented 7 years ago

@gilbertsohal, thank you for your report. The issue is already fixed in 2.1.9