A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [color-swatches]

Color swatches layered navigation

Filter by
Sorted by
Tagged with
3
votes
1answer
949 views

get configurable swatches in homepage product list (Custom product list)

I have populated bestselling products on homepage. It's populating list of products as desired. Now i have enabled configurable swatches & have enabled on product listing(i'm using rwd theme). I ...
1
vote
0answers
572 views

programmatically add color swatches to color attribute Magento2

I am using Magento 2.1.10 and have around 580 different colors in my color attribute. Since the Javascript obviously has trouble showing all of them in the backend (does not matter which browser, ...
0
votes
0answers
16 views

Color Swatch and Swatch Issues

I am facing two issues regarding swatches. I did my due diligence and made sure this was not a theme issue prior to coming back here for help. 1- The Swatches created using the "color" built-in ...
2
votes
5answers
9k views

Magento 2: How to change image size of swatches?

I found the file to change the image size of Swatches here and it works when I change it in that place: vendor/magento/module-swatches/etc/view.xml However, if I move it to my theme it doesn't ...
2
votes
1answer
751 views

Create product for each color on catalog, but all link to one configurable

I am currently using Magento for a fashion website. I am looking for an extension or some way to do the following: PRODUCT 1 has 3 colors. Currently there is one configurable for PRODUCT 1 and then ...
1
vote
1answer
30 views

Magento 2: Unable to resize the swatch image

view.xml: <image id="swatch_image_base" type="swatch_image"> <width>500</width> <height>600</height> </image> <...
5
votes
1answer
1k views

Magento - How to remove color swatch if the product is disabled?

For Example,There is a product with attribute color - Black,Blue,Red. If the associated product with color Black is disabled, it should not display black color swatch. But it displays color swatch(...
0
votes
0answers
119 views

Color Swatch not showing on search result page in magento2

I am using Compo Theme for Magento website. Color swatch showing on category list page correctly. Now ISSUE ON SEARCH RESULT PAGE. When I search product in magento2 https://website.com/catalogsearch/...
2
votes
2answers
1k views

Auto Select colour Swatch when configurable product page loads

I have a configurable product with one colour and different sizes, both these are set as required fields. I've set the colour attribute as not required, but then it wont show up when I create a ...
0
votes
1answer
64 views

How magento 2.3 generates swatch images?

I want to resize default generated swatch images but upon doing that swatch images get blurred. So my question is, how to resize Magento swatch so that it will look nice? I have tried modifying ...
1
vote
0answers
13 views

How can I add a container div for each color of the swatch colors on the product page?

I am trying to add a container div for each color of the swatch colors to give it the look I need (configurable product, in PDP). I am adding the div in the following file that I inserted in my theme ....
0
votes
0answers
48 views

swatches not working in Magento 2.3.3

I have installed Magento2.3.3 on my system and created one configurable product which has two swatch attribute colour and speed. Colour is image swatch and speed is dropdown. So upon loading product ...
0
votes
0answers
23 views

How to change the Square Size of the colors in Magento 2.3

Greeting, could you please provide me detailed information regarding how to change the Square Size of the colors in Magento 2.3, the default one is quite small and does not appealing, want to enlarge ...
1
vote
2answers
1k views

Magneto2 : Add color swatch attribute option with colorcode value programmatically

I am working on Magento 2 and want to add custom color in color swatch attribute option programmatically. I have gone through this post but unable to add options Can anyone helps me to add custom ...
1
vote
2answers
984 views

How can I get the HEX code in Visual Swatch via Rest API

Could anyone help me to find the rest api to get hex or image of visual swatch attribute? I need the api to return the following, Label Value HEX or Image of the swatch. Thanks
6
votes
5answers
6k views

How can i disable Color Swatches Tooltip in Magento 2?

When i hove over magento color swatches, it shows a bigger tooltip. On Mobile this is truly not useful. I want to disable the tooltip. Where can i disable the tooltip? I looked for options but did ...
1
vote
1answer
25 views

How to change product image on swatch selection on related product on product view page in Magento 2?

I have color swatches on related products list on product page. I want to change product image on the basis of swatch selection on view page. How can I change image?
18
votes
1answer
11k views

How to display correct configured product image in shopping cart

I'm able to successfully use the color swatch feature that was introduced in CE 1.9.1, but I was wondering how can I display the selected colored product that was added to the shopping cart. Example: ...
0
votes
0answers
19 views

Magento 2 break custom options in different places on Product page

I gave configurable product with swatch color and custom options.My product page is so much customize and it have custom options in main content and some custom options in bottom area.I want to break ...
0
votes
1answer
23 views

Color swatches show up as text on frontend?

I created some color swatches, assigend a color from the color picker and saved, that seems to be ok (https://prnt.sc/pi9bm8). After that I assigned the colors to the products. Now on the frontend, ...
0
votes
0answers
41 views

Magento 2.3 color swatches with related products & upsell products?

I have added color swatches with related products using this code: <?php if($_item->getTypeId() == \Magento\ConfigurableProduct\Model\Product\Type\Configurable::TYPE_CODE){ $...
3
votes
3answers
792 views

How to disable a swatch, once it is been selected in Magento2.2?

I am trying to disable a swatch, once after it has been selected. So it should not be deselected... How to do it in Magento2.2.x ?
0
votes
2answers
2k views

Magento 2 - Use Product Image for Swatch if Possible BUG!

I am new to magento2, I'm testing fresh copy of Magento 2.1.7. I want to display Product image in place of color swatches on product detail page for Color Attribute. In the admin section, i choose (...
0
votes
1answer
990 views

Media main image not changes with swatches magento 2.0.2

I have facing some issues with configurable product. when i click on swatches main image not changed. my magento is 2.0.2. can you please help to resolve the issue. thanks
1
vote
0answers
142 views

Magento : Multiple Configurable Swatches on Product Listing Page

I want to show multiple configurable swatches on product listing page. For that I created configurable_category.phtml where I replicated configurable.phtml file to showing the configurable swatches ...
0
votes
2answers
628 views

Magento 1.9 : Swatch Image is not appearing at frontend

My swatch option name is Black - 100% Italian Leather (Italian Leather) and my image name is black_-_100%_Italian_Leather_(Italian_Leather).png I had also try with this name but not work black--...
0
votes
0answers
32 views

Magento 2: How to create color swatch attribute for the customer?

I want to create a color swatch attribute for the customer same like we use for the product attribute.
0
votes
0answers
68 views

Magento2.3.0 For configurable product attribute variation display this type

I am using Magento2.3.0 an i want to display swatch color and drop-down color name display this type of and after swatch color first attribute selected automatically color name choose in drop-down ...
0
votes
1answer
37 views

Magento 2 Change base image when attribute is selected on catalog page

I want to change the base image depending on the color which is selected. So if i select "Olive Green", all the products with olive color single products must change the base images to the black ...
0
votes
0answers
32 views

Magento 2.3.0 In product detail page configurable product swatch box remove it when simple product out of stock

I am using Magento 2.3.0 and our requirement is when I change qty in the admin side for a simple product than a configurable product color swatch removes it not display on the frontend side. How to ...
0
votes
1answer
222 views

Magento 2 configurable product price not update

Magento 2.2.8 .I have created Configurable product with Color + Size attribute. Product price is not update When select(Click) attribute on Product details page. I am using Luma theme.
0
votes
0answers
26 views

How to add my whole existing simple products catalog to configurable products with different colors/swatches?

So I would like to know the most optimal way how I can merge my existing simple products (let's say 1 product, in 5 different colors, so 5 simple product pages) to 1 configurable product. I would also ...
0
votes
0answers
12 views

Why default color attribute is not available for grouped products?

Default color attribute does not show when creating/editing a grouped product, there is a reason for this? Can i change it? I guess it has to be some hardcoded stuff, because you can do this '...
0
votes
0answers
12 views

Magento2: How to perfill the color in view page

I want to prefill selected color in product view page from category page. How to do that. Thanks.
0
votes
0answers
25 views

Magento 2 how to get swatch name instead of image on hover in category page?

i changed that code - from - ' option-tooltip-thumb="' + thumb + '"' + ' option-tooltip-value="' + value + '"' + to - ' option-tooltip-thumb="' + label + '"' + ' option-tooltip-value="' + label ...
1
vote
2answers
566 views

How can I change the color of search box input icon?

It's defined like this "@icon-search: '\e615';". I just want to change into green.
0
votes
1answer
454 views

Magento 2.3 How to Auto Select Swatch Option Values if Only One Exists in Product View

I'm trying to have swatch option values selected on the Product View page if only one value exists. also, I have tried this reference but not working for me https://magento.stackexchange.com/a/...
0
votes
0answers
22 views

Magento 2 Color Attribute: How to make the size of uploaded swatches match the default ones?

For our site's color attribute, we would like to use both the default color options and a few uploaded swatches. However, the uploaded swatches are showing up much smaller, with a white border around ...
2
votes
1answer
923 views

Magento 2 Get all the colors of a single Product?

How can I get all the available colors of a single product in Magento 2?
1
vote
0answers
198 views

Magento 2 How to dynamically change custom attributes when click on the color attributes in the configurable product?

I need dynamically change custom attribute on the configurable page when I click to the swatch color attribute. On this purpose I programmatically created custom attributes with options on the admin ...
0
votes
1answer
23 views

How to check uniquenes of color options when adding a color magento 2?

I want that when i add an existing color an exception will be raised so how to proceed and which file do i have to override and thanks in advance.
1
vote
0answers
7 views

Magento 1.9 Colour Swatch handling code -

Please can someone help me with some PHP code: Our magento server hosts have identified this section of code as being very resource hungry, is there an alternative route we can take? a module that ...
0
votes
1answer
25 views

Not able to create color swatches Magento ver. 2.2.4

Preconditions Magento ver. 2.2.4 Developer mode/Production Mode Steps to reproduce Add your own colors Expected result You should be able to add as many colors as you want. Actual result After ...
0
votes
0answers
21 views

get selected by default first color in most recent products in magento2

I have the most recent products on the home page and showing color swatches now I want to select the first color by default of all most recent products in magento2 code to display the color swatches ...
7
votes
5answers
3k views

Magento 2 error in swatchRenderer.js at 'updateData' property

I have this error in category page. When i change color from swatch option it star loading in product image container and shows error in SwatchRenderer.js here is the error: Uncaught TypeError: ...
0
votes
1answer
37 views

why button not showing in custom theme in magento 2?

when i go customer login and customer module and custom_module related pages button is not showing when i move a mouse over that button the button is showing how to solve this css color ...
1
vote
1answer
28 views

Get option selected image for conformation email attached

I like to get selected option image of swatch option, for design email template. Now i'm getting a parent image instred of selected image. Eg: in my website parent image is black color, i choose ...
1
vote
0answers
18 views

Photos needed for product attributes?

I have some shirts that the client can choose the size, color and also add a custom text and choose the color of the text. My problem is that I'm not sure if I have a photo of each shirt color without ...
2
votes
3answers
713 views

Receiving 500 Internal Server Error [duplicate]

I did not even change any code or configure other than changing image in my slide show, which I have done earlier but I am continuously receiving these two errors on some of my pages including ...