Questions tagged [color-swatches]

Color swatches layered navigation

Filter by
Sorted by
Tagged with
3
votes
3answers
787 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 ?
1
vote
1answer
1k views

Magento 2 colour swatches not showing on homepage

I have used Magento's default feature for calling New products on homepage. In the list I have a configurable product with visual swatches. But the visual swatches not showing on homepage, can anyone ...
0
votes
0answers
676 views

Can't change dropdown attribute to visual swatch on Magento 2

I tried to change a dropdown attribute, for color, to a visual swatch on a test magento2 environment but cannot get it working, does anyone have some advice? When I changed the color attribute to a ...
1
vote
0answers
568 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, ...
1
vote
2answers
979 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
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
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 ...
1
vote
0answers
23 views

Magento | Configurable Swatches Tab doesn't appear in The Admin page

I am trying to add a product with color swatches. when I searched I found a lot of articles like this: http://docs.magento.com/m1/ce/user_guide/catalog/product-configurable-swatch.html but I can't ...
3
votes
3answers
1k views

How to Auto Select The Color as Swatch Option for Products with Only One Color (on Magento 2.1 Product View)?

I'm trying to have swatch option value of color auto-selected for Products that only have one color. If a user selects some product from the category page, the product page is displayed with ...
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
314 views

how to fetch swatch images from another folder ( not from swatches folder )

I have created new attribute color_group. I have added multiple colors to color_group attribute. Now I want to add the color images to that colors. How can I assign color images to that colors.
1
vote
1answer
280 views

Retrieve all the available color in product collection

I have a custom product collection and products inside this collection has variety of colors. I want to retrieve all the colors available inside this product collection and store it in array. $layer ...
0
votes
1answer
301 views

How color swatches work?

Can anyone explain to me how color swatches work when changing images? And where it is done? I want to know where in code it change images.
0
votes
1answer
285 views

Magento 2 - Values required set to no , still get You must choose options for your item

I set to No the Values required and Visible for the size and color from Product Attributes and when I try to add an item to cart , I get this error : You must choose options for your item. What ...
1
vote
1answer
545 views

Magento 2: How to add a Color Picker in Grid?

I'd like to add the standard Magento color picker to a custom grid in the admin panel, as an editable field. I have been able to do this in admin forms using code like the below, but have no idea how ...
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 (...
1
vote
0answers
178 views

Black and White Magento Visual Swatches displaying Hex instead of color swatch

We have swatches configured for our configurable products for users to select the color of the shirt from, everything seems to work fine except for the two black and white swatches, instead of ...
2
votes
1answer
1k views

Color Swatch and Price Filter not showing in magento 2.1.7

I am new to Magento 2.1.7. following set to create the category product listing page. Create the Root category and sub category In display setting Anchor value is Yes. Than create the product ...
1
vote
1answer
1k views

Magento 2 can't get the selected color swatch value in options.phtml file

I am trying to get the selected color swatch value in options.phtml module-catalog/view/frontend/template/product/view/options.‌​phtml file with following code.But i am not able to get the value. ...
1
vote
0answers
710 views

Magento 2: How to quickly import the color swatches?

I've more than 50k attributes to apply the color swatches, I'd like to know if there are different method more easy or fast than the manual process?
0
votes
1answer
235 views

How to get the quantity of color options of each configurable product

I need to know the number of color options of each configurable product in a list. I get them like this: $productAttributeOptions = $_product->getTypeInstance(true)->...
2
votes
1answer
2k views

Magento 1.9.3 : color swatches not working in ultimo theme

I created configurable product and enable configurable swatches from admin. And added color with "Red-swatch" in image section. Added image for simple product also. But color swatches are not doing ...
1
vote
0answers
136 views

Magento : Configurable product option selected [closed]

I have created a configurable product in Magento 1.9.3.0 with default Magento " Configurable Swatches" feature. I have display all simple product with configurable product on product listing page. I ...
1
vote
2answers
405 views

Magento 2 render duplicated products in category page

I want to show duplicate products on category page based on visual swatch attribute. For example: an configurable product has color swatch with 3 colors It must render it 3 times on category ...
0
votes
1answer
3k views

Magento 2 : How to Import Color and Size Swatch Attributes Using CSV

How to import color and size swatch attributes using csv.
1
vote
0answers
183 views

How to set up a layered navigation filter with swatches - but not use as a configurable product option

I would like to use an attribute set (with swatches) to feed into a filter on the layered navigation on category pages. However I do not want this attribute set to be an option on the product detail ...
3
votes
1answer
3k views

how to get swatches attribute option in magento 2

how to get progmatically swatches attribute option data in magento 2. I tried this:- \Magento\Eav\Model\ResourceModel\Entity\Attribute\Option\CollectionFactory $options = $this->...
1
vote
0answers
35 views

Not able to see other images in Product view of Configurable Product in Magento 2

I'm creating a configurable product in Magento 2, and I added 3 images (let's say A,B,C) in the configurable product section Images and Videos. Then I create configuration based on color and select 2 ...
1
vote
1answer
72 views

First select color, then

I have seen a similar question but no answer, so trying again. (Select Fabric First Then Color?) In our shop, we have a product in different colors (bright and dark) with their own SKU. I have setup ...
0
votes
1answer
989 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
0
votes
1answer
2k views

I want to display the color and size of the configurable product in the catalog product list page [duplicate]

I am using magento 1.9.3,I want to display both color and size of the configurable product in the catalog product list page. now i have the color only. if I change it to size in configuration, then it ...
0
votes
1answer
314 views

Fatal Error: function getIsInStock() on a non-object in Mediafallback.php on line 112

I got fatal error in configurable product after update Magento ver. 1.9.2.4 to 1.9.3.1 or 1.9.3.2. Fatal error: Call to a member function getIsInStock() on a non-object in magento1/app/code/core/Mage/...
4
votes
1answer
2k views

How to show visual swatch color on product listing page magento2

Hi i am trying to show the color on product listing page which is configure in the color attribute as visual swatch. Please find the screenshot below.
1
vote
1answer
53 views

How to hide non available attributes on catalog page ? Magento 1.9

I want to hide Non-available attributes (i.e. color or size) on catalog page or products listing page. I have tried to get quantity/stock for particular attribute_id and product_id but I did not get ...
0
votes
1answer
55 views

Website Customizable Color not shown in Navigation Menu [closed]

I have installed the JM Trex theme, which uses JM Mega Menu to edit the Navigation Menu of the theme. The theme has 5 colors, which the website visitor can choose from: Red, Blue, Green, Violet and ...
0
votes
1answer
330 views

Setup color swatches image update (update image without size selection)

is it possible to update the image on colour selection? without having to select size? I successfully setup swatches, but the image only updates after I select size. thanks
3
votes
1answer
556 views

Displaying new set of thumbnails in Configurable Product Swatches

So, this question has been asked multiple times in the past and yet I didn't find an answer for it. I am running Magento 1.9.2 which comes with Configurable Product Swatches. Now I can display ...
4
votes
1answer
2k views

Visual swatches for attribute with input type multiselect

In Magento 2.1.1 CE visual swatches works with select-type attributes out of box, but not witth multiselect. Is there any simple way to make it work also with multiselect-type? Can it be achieved ...
0
votes
1answer
238 views

Magento 2 Want to move the “This Is A Required Field” attribute message below the Color Swatch

I have tried this fix but it did not work. I wondered if anyone else had any suggestions. I am in M2.1.2 using a custom theme based on the parent blank theme.
0
votes
1answer
3k views

Magento 2: Get image from the swatch id

I have attribute color_swatch which is visual swatch and it has some items with images. In my code I can take this data: [swatch_id] => 57 [color_swatch] => Red [swatch_id] => 58 [...
0
votes
1answer
46 views

How to properly display swatches?

Magento beginner here, using 1.9.2.4 and Ultimo theme I have 2 attributes, color and size and would like to display them as swatches, not dropdowns on product pages. I've configured attributes to ...
0
votes
1answer
225 views

Change Category thumbnail with swatch which is not from gallery

I have hidden my thumbnail from the gallery as what I display in the category listing is not the same image as what I want to show in the gallery (it has extra bits in it). In the JsonConfig object, ...
0
votes
1answer
141 views

Will Color Swatches Migrated during Magento 1.9 to Magento 2.1 Migration?

I am planning to migrate my site from Magento 1.9 to Magento 2.1. I have a question that I have color swatches on my current site so If I will migrate using Uber Migration tool, Then Can I use those ...
1
vote
2answers
562 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.
2
votes
1answer
1k views

How to display Configurable/Color Swatches in Homepage Magento 1.9.1

I have a list of products on my homepage and I'm trying to display its associated color swatches but I'm having a hard time to do it. I have the configurable swatches in my product list and it's ...
0
votes
1answer
63 views

Show No Image against Specific Color if Image not there

i am using magento 1.9.2.3 version. Normally mangeto behave when user click on the different color or size in configurable product case system show the specific image against every color if specific ...
0
votes
2answers
626 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--...
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
114 views

Configurable swatches are not displaying on new products page ( new.phtml )

I am using my custom theme. By following some articles, I have displayed configurable swatches on the product list page. When I set the configurable product as New then it appears on my New Products ...
3
votes
0answers
52 views

Add text into attribute options

I want to add some info text to every option under the attribute Color. For example in Color with label Red I want to add the text "Color red is a color that we are using under the products...etc" ...