Questions tagged [swatches]

Alternative way of presenting the selection of options for configurable products

Filter by
Sorted by
Tagged with
1
vote
0answers
17 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
31 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 ...
0
votes
0answers
13 views

Magento 2: Display Swatchs in my template file

I am fetching configuration products from SKU, I am displaying configuration by dropdown, and using selected value I am generating proper SKU of that product. Ex: if customer select 'MH01' and select ...
0
votes
1answer
24 views

Magento 2 Visual Swatch Image: Background of image is removed after upload

This is the image that I upload to display on a visual swatch: However, it uploads and displays like this: How do I get the image to upload with the background intact? You can view the uploaded ...
0
votes
0answers
19 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
1answer
30 views

Magento 2.3: Show custom attribute value for configurable products

Is there a way to show the value of a custom attribute that changes for every child product? I mean something like: user selects "blue" color for shirt and, under the swatches a text appears (like, ...
0
votes
0answers
18 views

Magento 2| Move Product options swatches before product image, Category page

I want to move options swatches before product image, in category view. I try something like this <move element="category.product.type.details.renderers.configurable" destination="product.info"/&...
0
votes
0answers
17 views

Magento 2: How to add radio button type swatch on product page programmatically?

I want to show the radio button to select the product option instead of dropdown or text swatch? Help me out to solve this programmatically.
0
votes
0answers
14 views

How to set the option swatch text by API in Magento 2

I am currently trying to set an option in a swatch text attribute: $headers = array(); $headers[] = "Content-Type: application/json"; $headers[] = "authorization: Bearer xxx"; $body = '{ "option": {"...
0
votes
1answer
16 views

Magento 2 How to move product swatches container

I am trying to change product swatches container and putting it in detailed info tabs.But it move whole option block.How to move only swatches.Table is a watches image. <move element="product.info....
0
votes
0answers
16 views

Magento 1.9 selects the maximum number of attributes

Magento 1.9 swatches the front display is ok, the Attributes are over 2000.but when i Select the all swatches attribute and save it, it just can only select a part attribute, if reached the maximum ...
0
votes
0answers
7 views

Magento 2 Update customer group price of a configurable product using update attributes

I don't find the option for customer group price when I select all the variations of a configurable product and update the attributes, how can I set the customer group price once for all the ...
0
votes
0answers
19 views

Can anybody update Interjar's Configurable Child Visibility?

we have a big issue related to https://github.com/magento/magento2/issues/10454#issuecomment-530846959. We deactivated MSI in our store as there was to many SQL Queries (https://github.com/magento/...
0
votes
1answer
51 views

Magento 2 Configurable product with multiple color swatches

I'm creating a configurable product, each simple product has multiple colors, how can I create multiple swatches for each simple product of its configurable one?
0
votes
1answer
39 views

Magento 2 - Move swatch options after product name in product details page

I want to move my swatch option after product name. If anyone have idea how to do? Please let me know.
0
votes
0answers
18 views

Magento 2 change swatch image size to product page only

Is it possible to change the swatch image size of only the swatches in product page? So Small images in category page: And larger images at product page
0
votes
0answers
22 views

Magento 2: How to fetch swatch_images url in product listing and how to loop them in an array

I am trying to fetch the swatch_image url of product list and pass them through the api. I am even trying to loop those images in an array if in case there are multiple images in the gallery.
0
votes
0answers
17 views

Display swatches on custom module

I want to display swatches on my custom module. In my module I display configurable product and I want add below configurable product swatches and add to cart button
0
votes
1answer
58 views

Magento 2 : Display dropdown attribute with its label in product listing page [duplicate]

How to display dropdown type product attribute in product listing page and I also want to display that label name? How to display that drop-down attributes? I created in admin. But, it's not ...
0
votes
0answers
20 views

Magento 2 : Show Out of Stock Swatch Options On Configurable Product Page

I want to show outofstock swatch options on the configurable product even if the options is outofstock and the main configurable product is also out of stock. I want to show that swatch options with ...
0
votes
0answers
411 views

Magento 2.3.1 CE visual swatch images showing blank

We have upgraded Magento 2.2.3 CE to Magento 2.3.1 CE recently we have been facing an issue i.e the visual swatch images are not displaying for the configurable product options at frontend details ...
0
votes
0answers
10 views

How do stores with large catalog map item image to swatch colors?

So I have thousands of items (all config products) that have a few different colors (simple products) and have about 8 different swatch colors and the only data that have the only relation to color is ...
0
votes
0answers
21 views

Dropdown to Text Swatch not showing

I changed product attribute dropdown to text swatch but after text swatch, it's not showing on frontend. I have tried all the articles and stack-exchange solution but not getting output. Thanks in ...
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 ...
2
votes
1answer
113 views

Magento2: How to add a text between swatch configure and swatch attribute name?

I am having trouble while creating a module that add a text between swatch configure and swatch attribute name load by default, I want to add it only on a specific swatch if I have more than one. And ...
0
votes
0answers
15 views

Configurable SIze Swatch Loding Issue

Hi Any One please help me to resolve size swatch taking long time to render. Please check the url http://52.66.213.76 Help Me to fix it. Thanks in advance.
4
votes
1answer
199 views

Getting placeholder image instead of swatch image. Magento2.3

I have some issues with swatch images. Clicking swatches in catalog list pages loads placeholder images instead of real product images. I noticed that request to get swatch images returns only small ...
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 ...
1
vote
0answers
39 views

In my custom theme swatch option not display in category page in magento 2

In my custom theme swatch option not display in category page in magento 2 configuration option is not display in the category page refer image : https://prnt.sc/nvegd1
0
votes
1answer
539 views

Magento2 Swatch change Image does not slide to first Image

I have a problem with product gallery changing swatch (f.e. color). I have a configurable product with different size and different color. each configurable product has it's own color image (I added "...
0
votes
0answers
29 views

Swatches customization in Magento 2

I want to customize swatches as implemented on https://www.sweetpeaandwillow.com/brands/handmade-in-london/astrid-bed# It will showing swatches in popup as well change image on swatch value. Any ...
0
votes
0answers
17 views

How to show Swatches red line when the product is out of stock

Current my swatches are working but not what I expected. I have a product and the colour is black and silver Which has 2 options and if i put black colour and the option 1 out of stock the swatches ...
0
votes
0answers
39 views

How can I have a product attribute with a source model as a swatch?

I have a product attribute that I populate from my own custom table, I have a class that extends from \Magento\Eav\Model\Entity\Attribute\Source\AbstractSource to be able to populate my attribute ...
0
votes
1answer
149 views

How to get product manufacturer swatch image?

I have next string, where I get manufacturer attribute: $brand = $currentProduct->getResource()->getAttribute('manufacturer'); I need to get attribute swatch image. How can I get it? On ...
1
vote
1answer
25 views

How can I get full-sized image on swatch attribute? Magento 2.3

I added swatch images for my brand. I get swatch data in my template: $swatchData = $block->getSwatchData(); Next step - I show image inside my template: $swatchThumbPath = $block->...
2
votes
0answers
32 views

How to add svg icons to Swatch attribute (disable admin panel file validation)?

Currently, I can load png/jpg files in swatch attribute, but when I tried to load save attribute with loaded svg file, it's not working. When I load svg from servers - it displays well, but when I ...
0
votes
0answers
14 views

can't find my new attribute with dynamic options

when i access to stores product my new attribute i found this : ok this is my code to install the new attribute public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $...
0
votes
1answer
86 views

How to set values to “Manage Swatch(Values of Your Attribute)” section of swatch text attribute programmatically?

I have created a swatch text attribute. But the values are not getting saved properly. How to set values to the section "Manage Swatch(Values of Your Attribute)".
1
vote
2answers
463 views

How to show out of stock product configuration in Magento 2.2.7?

The display of out of stock products is enabled in the store configuration. This means that out of stock simple products are displayed. But if one or more configuration of a configurable product is ...
0
votes
0answers
16 views

Configurable product own url M2

I have configurable product and has size and color options. I want when user clicks the color then want to change Url of the product. My colors are swatches type Looking for good approach. Thanks
3
votes
0answers
41 views

Magento hierarchical attributes

Does anyone know how to make product attributes visible only when they exist? Ex. you have a T-shirt, models are Spiderman and Thor (model attribute), and available on red, blue and green (color ...
2
votes
0answers
21 views

Don't show swatches on product listing magento 1

Don't show swatches on product listing magento 1 In the settings everything turned on Attributes are also all set up correctly.
0
votes
1answer
262 views

Swatch Option Not showing in ASC order in Magento2

If size swatch not found with color swatch then it showing in last position, But I want to show in ascending order. Any way for this?
0
votes
0answers
184 views

How to get swatch image of multiple select attribute values in Magento 2?

I am using Magento 2.2.2 I have an attribute called "Brand" and input type for this attribute is multiple select. In this attribute, I have set "Small Image" in additional settings for one of the ...
1
vote
0answers
112 views

New option value not inserting in eav_attribute_option_swatch

i have 700+ text swatch options.. whenever i add new one, it will insert in eav_attribute_option_value but the Admin value which is supposed to be inserted in eav_attribute_option_swatch is not being ...
0
votes
1answer
23 views

How to show Size Swatch Option in Reverse Order in magento2

Swatch option coming in asc order but i want to show in reverse order! Is any way for that?
0
votes
0answers
24 views

Exclude Swatch Image from Product Images when creating gallery

I'm trying to find out how to have a swatch image assigned to a product, but ONLY used for the swatch, right now, it also shows up as one of the product's images, and I was hoping there was a way to ...
0
votes
0answers
15 views

Passing data as Javascript variables without caching

I've made some modifications to Magento's swatches via a custom module to display out of stock options on the product page (as non-selectable deactivated swatches, so the user will know that the ...
1
vote
1answer
677 views

How to display attribute swatch image in listing page in Magento 2

I am using Magento 2.2.2 I have created one attribute "Manufacturer". Input type of this attribute is visual swatch. I have added values with swatch images in this attribute. I have selected ...
2
votes
2answers
368 views

Swatches disappearing

In the table eav_attribute_option_swatch (the one that holds the swatch options for the attributes) I have about 6k records. Some are color codes, others are paths to images and most of them are null (...