Questions tagged [color-swatches]

Color swatches layered navigation

76 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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(...
4
votes
0answers
1k views

Is there any way that one swatch is selected by default (magento configurable swatches)

I am trying use Magento Configurable swatches in my website (for colors). But I am facing some issues, in Product details page, we have to select one color swatch. In Product Listing Page, we are ...
3
votes
0answers
315 views

Upload custom images dynamically from product edit page magento 2

I want to create custom image swatches for custom option. There is functionality in magento 1 please check this video. https://www.youtube.com/watch?v=tUvVjvgbJzI I want to develop similar ...
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" ...
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 ...
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 ...
2
votes
1answer
84 views

How to include configurable swatches in Best sellers / Cart cross sell / any custom listing

How to include configurable swatches on other listing like cross sell , bestseller or in a custom module product listing ?
2
votes
0answers
94 views

swatches not working in list page

Am working in magento 1.9.2.3. The configurable color swatches is not working in list page of mobile view while it is working fine in list page of desktop view.It is also working well in details page ...
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 ....
1
vote
0answers
207 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 ...
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 ...
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 ...
1
vote
0answers
18 views

how to show Color button Options in Product Category Listings page M1

How to show different Color button Options configure Product Category Listings page M1
1
vote
1answer
121 views

How to show swatches on category page in Magento 1.9

I was trying to show configurable color swatches on category listing page but unable to get it, I used below code but it just shows the name of color but I want to show swatches same as on product ...
1
vote
0answers
294 views

Change configurable product price selecting a swatch

Good morning, i'm working on a magento 2.2.5 store and i have a question about configurable products configurations. I have some products where the price is different betweent the configurations. ...
1
vote
0answers
290 views

Magento 2 visual swatch not working from changing attribute from drop down?

I have created an attribute "color" with drop-down, now as per our customer request we have changed to visual swatch. and did re-index and flush. but color not displaying at front end as we expected. ...
1
vote
0answers
811 views

How to select by default first swatches from dependent options color & size in magento 2

I have tier prices for the products but it is showing after selecting swatches. I have two attributes "Color & Size" for configurable products. Color attributes have swatch image and Size ...
1
vote
0answers
200 views

Filter the configurable products based on the child product's color in Magento 2

In Magento 2 How to filter the configurable products based on the child product's color. For example, if the parent has 4 children with Green, Red, Yellow and Black colors. If I select green in the ...
1
vote
0answers
197 views

I have an Issue with “Use Product Image for Swatch if Possible” in magento 2.2

I have an issue with swatch image URL on product detail page. You can check this link for color attribute. Swatch Image url is : ` pub/media/catalog/product\cache\f307e558402b572df42bba27be68d88b//...
1
vote
0answers
27 views

Colour swatch switching back to default randomly [Mage2]

For the past 2 days I've been monitoring my configurable products to see if there is an issue and not to my surprise, I see there is. Basically, I set up a test product with a colour, and checked ...
1
vote
0answers
165 views

Issue in product image color in magento 2.2X?

I have two swatches i.e., red and black And when a user clicks red colour it changes the colour of the image But in cart the image is base image only. So the issue is, Selected options image isn'...
1
vote
0answers
575 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
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 ...
1
vote
1answer
281 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 ...
1
vote
1answer
550 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 ...
1
vote
0answers
179 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 ...
1
vote
0answers
712 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?
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 ...
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
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 ...
1
vote
0answers
879 views

Displaying Configurable Swatches in a Custom Theme

I used this solution for adding configurable swatches to my custom theme. It worked but I managed to achieve a partial result. The problem i am facing is that i see double images on my product-view ...
1
vote
1answer
522 views

Change Product Image Gallery On Options Select

I have a configurable product with multiple colors/sizes, and each simple product has its own images. I have three images for the main configurable product. When I pick a color option for the product, ...
1
vote
0answers
1k views

Configurable Swatches Thumbnails not showing

I am using configurable swatches for a product. I want to configure just like the given link. Click to see the product But in my case the thumbnails are not showing. Every associated product have ...
1
vote
1answer
311 views

Product Attributes are not working after upgrade to 1.9.2.3

I just upgraded from 1.9.1 and our configurable.phtml was working fine before that. Now it's showing the pricing as "$0.00". I've replaced our configurable.phtml with the "Default" and it worked, but ...
1
vote
2answers
286 views

Colorswatch filter shows Size as Color

I am working with Magento 1.9.1.0 I have 2 attributes as swatches (Color and Size). In layered Navigation: select Blue--> shows blue swatch in filter select XL --> shows XL in Filter select blue ...
1
vote
0answers
202 views

How to resize image when click attribute on color swatches change image

In file list.html image when load page resize 230. but when i click attribute color. size images from 230px to 300px. how can resize images 300px -> 230px < img id="product-collection-image-getId()...
1
vote
0answers
46 views

Invisible, not transparent images for inactive attribute options in Configurable swatches

I use the same attribute "color" for different "textures" of the product. I am using configurable swatches with magento default rwd theme. The problem is, when a certain texture in frontend is ...
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 ...
0
votes
0answers
50 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 ...
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
43 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){ $...
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
73 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
0answers
33 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
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.