Questions tagged [color-swatches]

Color swatches layered navigation

Filter by
Sorted by
Tagged with
1
vote
0answers
18 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> <...
0
votes
1answer
32 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
20 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
25 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){ $...
1
vote
1answer
22 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?
0
votes
0answers
31 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
51 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
31 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
30 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
182 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
22 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
21 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 ...
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 ...
0
votes
1answer
356 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/...
1
vote
0answers
158 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
19 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 ...
0
votes
1answer
34 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 ...
0
votes
0answers
107 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/...
0
votes
0answers
188 views

Auto select first color swatches image in product page

I am currently using this code for auto selecting the first swatch option _init: function () { if (_.isEmpty(this.options.jsonConfig.images)) { this.options....
0
votes
0answers
14 views

Magento 1.9.2. - Counter attribute color incorrect after import

Summing up after importing the configurable products the counter of color and size filter (which are the attributes that make up the configurable products) is not updated, even with a new reindex. It ...
0
votes
1answer
278 views

Unselect Attribute “Is Default” - Color

Magento 2.2.6 The attribute 'color' had, for as long as I can remember, no "Is Default" value selected. A few days ago, I add a new color to the color value. Upon saving, there is now a color value ...
0
votes
1answer
72 views

Issue while Configuring color swatches in Magento 1.9.3.10

I am using Magento 1.9.2.10 to configure color swatches i have followed the below link to do this: https://www.templatemonster.com/help/magento-how-to-add-and-manage-configurable-swatches.html#gref ...
0
votes
1answer
563 views

Stop swatches from loading images on product detail [closed]

I have two swatches.. color and size. Is there a way to stop the size swatches from reloading the picture of the product and keep the color swatch working as usual? Ty!
1
vote
0answers
17 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
231 views

Magento2 - Get ID for simple product which is associated to configurable product on product listing page

I want to pass product id in a rel tag in the swatch-option class which is on the listing page for swatches. I am aware it has to be done via swatch-renderer.js but not able to do the code. console....
0
votes
1answer
203 views

In Magento 2, how to bypass cache for a custom block template extended from \Magento\Swatches\Block\Product\Renderer\Listing\Configurable?

Recently I customized category listing page to auto-select the color swatch in listing page when a color swatch is selected in the layered navigation filter. Everything is working fine with cache ...
1
vote
1answer
111 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
1answer
519 views

Magento 2, how to add color swatches to custom widget template

The custom module lists certain configurable products. I need to display the color swatches, I tried below but it returns nothing! in myTempalte.phtml <?php use Magento\Framework\App\...
2
votes
1answer
863 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?
3
votes
0answers
293 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 ...
1
vote
0answers
283 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
273 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
785 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
189 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 ...
0
votes
1answer
50 views

Pass extra class for stock in Swatch Magento2

I want to pass an extra class to swatch class which is formed via swatch renderer js based on the stock. The reason is the swatches are not being hidden if they are out of stock. This is what I am ...
1
vote
0answers
191 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
26 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
159 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'...
2
votes
1answer
524 views

Hide base product Images when pick a different color in Configurable Products

what I need is to hide all pics that doesn't bellongs to the selected color in swatch of configurable product, is there any way to achieve this? Thanks. I've seen this similar question, but without ...