Skip to content

Visual Swatch not showing on product page when once set as Text Swatch #3139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Pakkapao opened this issue Jan 26, 2016 · 14 comments
Closed
Assignees
Labels
bug report Component: Catalog Event: WroCD Contribution day in Wro Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Progress: PR Created Indicates that Pull Request has been created to fix issue Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release

Comments

@Pakkapao
Copy link

Hi,
It happended when changing Swatch type between Text Swatch and Visual Swatch back and forth.

Text Swatch -> Visual Swatch OR Visual Swatch -> Text Swatch -> Visual Swatch

Magento 2.0.1 / PHP 7.0.2

  1. Create product attribute and product template as usual.
    1
    2
  2. Create Configurable product
    3
  3. Visual Swatch is displaying on product page.
    4
  4. Now changing from Visual Swatch to Text Swatch
    9
  5. Now Text Swatch is displaying on product page
    6
  6. Change Swatch type back to Visual Swatch
    7
  7. Text Swatch is showing instead of Visual Swatch!
    6

Thanks,

@Pakkapao Pakkapao changed the title Virtual Swatch not showing on product page when once set as Text Swatch Visual Swatch not showing on product page when once set as Text Swatch Jan 26, 2016
@vkorotun vkorotun removed the MX label Aug 4, 2016
@AVoskoboinikov AVoskoboinikov self-assigned this Aug 29, 2016
@AVoskoboinikov
Copy link
Contributor

Hi, @Pakkapao

Thanks for reporting this issue, I have created ticket in our internal JIRA to fix it (MAGETWO-57766). This issue will be closed after fix.

@AVoskoboinikov AVoskoboinikov added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Aug 29, 2016
@AVoskoboinikov AVoskoboinikov removed their assignment Aug 29, 2016
@soncp
Copy link

soncp commented Nov 2, 2016

Hello, did you fixed this issue?

@soncp
Copy link

soncp commented Nov 5, 2016

hello,
Is there any update on this one?

@joshdoehla
Copy link

+1
I've had to recreate configurable products multiple times because of this issue.
(Currently running multiple instances of 2.1.2)

@phucdh57
Copy link

phucdh57 commented Dec 9, 2016

Hi, I've not fixed in logic code of Magento Swatches, but I found in eav_attribute_option_swatch table
which like as below
+-----------+-----------+----------+------+---------+
| swatch_id | option_id | store_id | type | value |
+-----------+-----------+----------+------+---------+
| 11 | 9 | 0 | 1 | #000000 |
| 12 | 10 | 0 | 1 | #ff05ff |
| 13 | 11 | 0 | 1 | #33ff24 |
| 14 | 12 | 0 | 1 | #ff6600 |
| 15 | 13 | 0 | 1 | #ffffff |
| 16 | 14 | 0 | 1 | #fbff00 |
| 17 | 15 | 0 | 1 | #f20000 |
| 18 | 16 | 0 | 1 | #ababab |
| 19 | 9 | 1 | 0 | Black |
| 20 | 10 | 1 | 0 | Purple |
| 21 | 11 | 1 | 0 | Green |
| 22 | 12 | 1 | 0 | Orange |
| 23 | 13 | 1 | 0 | White |
| 24 | 14 | 1 | 0 | Yellow |
| 25 | 15 | 1 | 0 | Red |
| 26 | 16 | 1 | 0 | Gray |
+-----------+-----------+----------+------+---------+
I changed field "value" from Black, Purple ... Gray to NULL and the issue seems to be solved.
Note: option_id is same to the option_id in eav_attribute_option so, you can check which is in a same pair. Before we have a patch for this issue I hope that my tip can be helpful for others.
(My current magento version is 2.1.2)

@ghost
Copy link

ghost commented Jun 21, 2017

This is still an issue in 2.1.7.

@magento-engcom-team magento-engcom-team added Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development bug report Component: Catalog Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed labels Sep 11, 2017
@magento-engcom-team magento-engcom-team added the Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed label Oct 12, 2017
@magento-engcom-team
Copy link
Contributor

@Pakkapao, thank you for your report.
We've created internal ticket(s) MAGETWO-57766 to track progress on the issue.

@magento-engcom-team magento-engcom-team added 2.2.x Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release labels Oct 12, 2017
@basselalaraaj
Copy link

I found out that the issue is caused because only store_id '0' is getting the right type '1', the rest of the store_id's are still on type '0', if u adjusted that to '1', it works again.

From
schermafbeelding 2018-02-06 om 08 17 09

To:
schermafbeelding 2018-02-06 om 08 16 42

@magento-engcom-team magento-engcom-team added the Event: distributed-cd Distributed Contribution Day label Mar 19, 2018
@magento-engcom-team magento-engcom-team removed the Event: distributed-cd Distributed Contribution Day label Apr 13, 2018
@dmanners dmanners added the Event: WroCD Contribution day in Wro label May 18, 2018
@mmularski
Copy link
Contributor

#WroCD :)

@magento-engcom-team
Copy link
Contributor

@mmularski thank you for joining. Please accept team invitation here and self-assign the issue.

@udayankoliya
Copy link

I am working on this at #dmcdindia

@magento-engcom-team
Copy link
Contributor

@udayankoliya thank you for joining. Please accept team invitation here and self-assign the issue.

@udayankoliya
Copy link

me and @dasharath-wagento both are checked as per given step by @Pakkapao to produce this issue but we can't reproduce it in Magento 2.2

@magento-engcom-team magento-engcom-team added Progress: PR Created Indicates that Pull Request has been created to fix issue and removed Imagine2018 Event: dmcdindia labels May 26, 2018
@magento-engcom-team
Copy link
Contributor

@Pakkapao we are closing this now due to inactivity. Additionally, @udayankoliya reported that issue is no more reproducible.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Component: Catalog Event: WroCD Contribution day in Wro Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Progress: PR Created Indicates that Pull Request has been created to fix issue Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release
Projects
None yet
Development

No branches or pull requests