Questions tagged [swatches]

Alternative way of presenting the selection of options for configurable products

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

SKU switcher based on configurable selection

I am trying to update the product SKU based on the product selection chosen.. I have the following code that works, but only works if the configurable product is in stock (eg at least one of the ...
0
votes
0answers
18 views

Magento 2: 404 for productpage image when click on swatch option

i have used the swatch option for configurable product and each of this color swatch product image are different for that associate products. I have already assign different different image for this ...
1
vote
0answers
39 views

Magento 2 Create Product Swatch Attribute via API

Is it possible to create a swatch attribute via the API endpoint? Swatch product attributes are seemingly created programatically by setting swatch_input_type data to the attribute, as demonstrated ...
1
vote
1answer
24 views

How to hide the bubble when placing the cursor on option-label?

I wish to hide this information, because it is useless :
0
votes
1answer
25 views

Magento 2 : How to get swatch attribute label

I have an attribute "brand" with type Swatch. I have created many brands as an option in this attribute. I want to filter brands label which are starts with a particular letter (ex. A or B or C).
0
votes
0answers
36 views

Products color image didn`t load and i see placehold image

can anyone help me? when I click on products color image, it did not load and I see placeholder image instead of product image!! Edit: I found that cache product did not generate auto , i tried ...
0
votes
0answers
10 views

Magento 2: Issue with double configurable swatches on related product tab

I am having an issue with double configurable swatches on the related product tab. It is working properly with single swatches such as color swatches only but it creates an issue on products with ...
0
votes
2answers
36 views

Magento 2 combine two functionality s using a single mixin js file?

I would like to override Magento_Swatches/js/swatch-renderer.js file using mixins concept. I would like to club two functionalities in a single file. here is the code I have written please Note 2nd ...
0
votes
0answers
24 views

Magento 2.3: How to set the default swatch selection pro-grammatically on product listing page?

I want to implement the selection of swatch options in a way that by default it should be selected 2nd swatch on listing pages. Attribute name is color. I looked over the following Blocks but not ...
0
votes
0answers
22 views

Magento 2 - PHP Error After Saving Any Attribute

I am working on a Magento 1 to 2 migration and, after migrating data from 1 to 2, I am receiving an error when attempting to save or create an attribute, and when attempting to load the category and ...
1
vote
1answer
53 views

Text swatch value for multi store view showing wrong on frontend [ Magento 2.3.3 Enterprise Edition]

Have a look at below. Did anyone get the solution for this? Why product text swatch display admin swatch value instead of specific store value? Magento EE [2.3.3] Steps to reproduce: Create 2 ...
1
vote
1answer
53 views

Magento 2: how to get swatch options in custom product list on detail page?

I added my custom product list in detail page, the collection is properly displaying but now I want to display swatches in that list. is there any way to make it possible?
0
votes
0answers
15 views

Magento 2: Render swatch select option type

how to render swatch select option type I render swatch by: $swatchesRender = $block->getLayout()->createBlock('Magento\Swatches\Block\Product\Renderer\Listing\Configurable')->setTemplate('...
1
vote
1answer
138 views

How to display Swatches into product list page into custom modules with add to cart functionality

How to display Swatches into the product list page into custom modules with add to cart functionality. We need to display properly selected options with the configuration product into cart.
0
votes
0answers
56 views

Magento 2 : Visual swatch image uploader in custom ui not working

I tried to use this Magento 2 : Add visual swatch uploader in custom UI form solution for creating custom swatch image uploader, but when i upload image it is not loading in swatch_window element. ...
0
votes
0answers
137 views

Magento 2 : How to load pre selected configurable product media on product detail page load?

I have pre-selected swatch options selected on page load, but the first time it's loading default product image not the pre-selected product image then after 4-5 seconds it loads my pre-selected image....
0
votes
0answers
16 views

Magento 2.3.3: Swatches showing on some products, not others

We are doing an upgrade for a customer and since the upgrade, some products are displaying swatches and others are not. All the swatches show on the category page, as we want. We have a color visual ...
1
vote
1answer
124 views

Magento 2.3 - Swatches Helper override

I'm trying to override a function in the Helper of the Swatches module of Magento 2. The function resides in the Data.php file. As some of you may know in specific versions of Magento 2 the text ...
1
vote
0answers
24 views

How to dynamically change attribute value depending on the selected swatch or size?

I have a table in which I want to display product attribute data there, depending on the selected size or swatch. So that the value of the attributes in the table changes dynamically How to ...
0
votes
0answers
19 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
68 views

Magento 2: swatch images loading ONLY thumbnails

I'm using Magento 2.3.3 and I have a very annoying problem with the swatches. When I click on size/color, the picture will show the standard placeholder, but if I take a look at the json, the picture ...
0
votes
0answers
39 views

Magento 2 swatches problem

I have a very very annoying problem with Magento 2.3.3. I have a product with size and color attributes. If I inspect the code, I will see ALL the values: Indeed in "Magento_Swatches/js/swatch-...
0
votes
1answer
35 views

Swatches on mobile not working

I have a problem with my site. When i select a swatch on mobile, the price of the product doesn't change. This is only a problem on the mobile version of the site and not present on the desktop ...
0
votes
0answers
92 views

Magento 2: this.options.jsonConfig.mappedAttributes is undefined

Configurable products are not changing the pictures while selecting attributes like size or color. I really don't know how to fix this problem. It is two days now and I still facing the same issue. ...
0
votes
0answers
79 views

Magento 2: configurable product doesn't update image on select of attribute

I know this is probably a duplicated, but I read ALL the posts about this issue and I still didn't figure it out. So, I have attribute size (dropdown) and attribute color (swatches). What I want is ...
0
votes
0answers
158 views

Getting TypeError: $(…).AddFotoramaVideoEvents is not a function in magento 2.3.3

The image gallery is not loading on product detail page getting an error like Uncaught TypeError: $(...).AddFotoramaVideoEvents is not a function at $.<computed>.<computed>....
1
vote
0answers
8 views

Magento2 Custom Product Type has no Swatch Image

I have added custom product types that are based on the simple product and this works. However I don't get a swatch image option. I can set base, small_image and thumbnail but no swatch. What have I ...
1
vote
1answer
42 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
166 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
20 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
28 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
101 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
167 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
30 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
44 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
101 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
45 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
19 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
10 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
37 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
133 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
101 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
58 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
28 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
20 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
1
vote
1answer
250 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 ...
1
vote
0answers
24 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
948 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
11 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 ...

1
2 3 4 5 6