Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [swatches]

Alternative way of presenting the selection of options for configurable products

1
vote
1answer
46 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 (...
0
votes
0answers
4 views

Reload swatches not showing in frontend

My swatch attributes are not showing after i reload my div. <div class="quotation-body"> <ul data-index="<?php echo $step; ?>" class="option option-list"> <?...
0
votes
0answers
11 views

How to add Swatches options to Recently viewed UI component

How to add swatches options for product item to a Recently viewed UI component? I use the following code to show recently viewed block on the page <block class="Magento\Catalog\Block\Widget\...
2
votes
2answers
98 views

Magento swatch is not disabled when configurable product is not on stock

I have a little problem at my Magento 2.2.5 store. When a combination of a configurable product is not on stock, the swatch should be disabled with a red strike. But at my store no swatch is disabled, ...
0
votes
0answers
18 views

Magento 2 - Set “Text Swatch” or “Visual Swatch” then images does not changed in frontend

I am trying to create basic text swatches for an attribute (instead of drop downs). I created an attribute (for example, "packgesize"), set the "Catalog Input Type for Store Owner" to "Text Swatch" ...
0
votes
0answers
24 views

How to show simple product size swatches in my wishlist page which can be selected and added to cart?

I have created size attribute as Text Swatch. When you add a config product from product/category page to Wishlist, config product is added and shown in My Wishlist page. In My Wishlist, available ...
0
votes
0answers
10 views

Magento 1.9 Image swatch not switching images

Magento 1.9 image swatch not changing images when clicking swatch options. We have set attribute color with labels and also include it at attribute sets.
0
votes
0answers
20 views

magento 2 cannot add text swatch option via php code

I've got a product attribute "size" set to "text swatch" and already populated with some values. Those values have been added via backend and they work fine. Now I need to add other values to this ...
0
votes
0answers
33 views

Magento 2: Configurable product detail page product name update dynamically

I want to update simple product name once I click on attribute in configurable product. Like I have configurable product T-shirt. So there's attributes named "red", "blue" so on. Now If I click on ...
-1
votes
0answers
18 views

How to show size swatch when there is no size available?

I'm currently working on Magento 1.13.1.0. I tried all solutions from this site and google, none of them are working. Currently, when I set quantity of one size from selected product, this size is ...
-1
votes
0answers
14 views

Why my swatches take a lot of time to appear?

Is there a way to make swatches render faster? Because when my page loads up it takes a few seconds for the swatches to appear. What can I do? Thanks! Gonzalo.
0
votes
1answer
20 views

In magento 2 mousehover on swatch disable non configurable option?

In Magento2 default swatch function is we are select the color swatch disable the nonconfigurable option like size is not there.Like below image http://prntscr.com/lh9jvl how can i write the same ...
0
votes
1answer
16 views

“As low as” label still displayed after swatch selected

I have a problem in the category products view. I have configurable products as well, for those the swatches and a "As low as [price]" is displayed initially. Which is exactly what i want. When i ...
1
vote
0answers
62 views

Change swatches images size

I can't change the image size of the swatches of my product. In My/Theme/etc, I have a view.xml file. I've added this : <image id="swatch_image" type="swatch_image"> <width&...
0
votes
0answers
110 views

Text swatches not selecting

I'm using a block to render swatches on the homepage of my website. I have used this before and it has worked perfectly. However, it's now not working and I can't figure out why. The swatches don't ...
1
vote
2answers
19 views

Custom swatch message 'This is a required field'

Is there a way to customize the 'This is a required field' message when you don´t select a swatch option? I want to change it to "Please select a color" and "Please select a size" Thanks!
0
votes
1answer
60 views

Adding text to swatch area on product pages?

I'd like to add text below each attribute on the product options form section of the product page. So, for example, something like: Size [s][m] Appended text here I can tell this is directly ...
1
vote
1answer
54 views

Extend Swatch rendered js file

How to extend the Swatch rendered js file in my custom module? I have override the phtml template files. <script type="text/x-magento-init"> { "[data-role=swatch-option-<?= /* @...
0
votes
0answers
22 views

Video on product stop working when clicking swatches!

I have a video on my product using Vimeo it works when I first enter the page and see my product. But after I click any of my swatches sizes or color my video stops working. I see the video button on ...
0
votes
1answer
47 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!
0
votes
1answer
115 views

Magento 2 - update product price via swatches on custom page

On a custom page I want to show only the swatches of a configurable product and automatically update the product price based on the chosen swatches. I managed to get the swatches and price to show up ...
0
votes
1answer
75 views

Configurable options (size and color) not load

Some times Configurable options are not loaded in product detail page and i get this error on console In firefox i get this error on console: TypeError: settings.fotoramaApi is undefined In chrome i ...
0
votes
0answers
64 views

How to display the swatches which are out of stock

I want to display the all the swatches (include the swatches which are out of stock) In the Configurable product in Magento 2.
4
votes
0answers
20 views

How can i change order position of swatch in ascending Magento2

I want to change the sort order of size swatches. I have already put it in sort order from admin but I could not see any result in the front side. Actual Result Expected Result How can I sort it ...
2
votes
0answers
35 views

Initialise swatches on product list loaded over ajax

I have noticed that on my infinite scroll the swatches are not showing for products loaded over ajax. I'm guessing that similar to ajax add to cart buttons needing to be initialised the swatch ...
1
vote
1answer
48 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
53 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
105 views

Want to display label or respected value on the visual swatch attribute at Layered navigation?

I have created size attribute with visual swatch field now in the fronted when we hover at option it is displaying the value/s for the users. Instead of changing to text swatch how to display the ...
0
votes
0answers
8 views

Swatches options are not selecting/addtocart after JS merge Magento 1.9.3.1

Swatches option are not able to selecting after merge JS from admin. If set disable JS merge than it works fine. Have you face issue like this with configurable products. Let me know if any one know ...
0
votes
0answers
19 views

Magento 2.1.14 - Swatches are not generated

I'm loading product images via CSV and set some image as a base, thumbnail, small and swatch. But when I go to the website I can't see my swatches. I see only a blank spot without a color/image. ...
0
votes
0answers
14 views

Magento 2 color and photo swatches different in each page

I have this question. Is there a way in Magento 2 to set "Color swatches" for the product listing page and "Color Photos" for the product details page? I know they can be disabled for some pages but ...
0
votes
0answers
25 views

Unable to add to cart configurable product with swatches Magento 1.9.3

I have create the configurable product and assign attribute as swatches instead of drop-down. Swatches will display properly but unable to work for add to cart process like freeze when click on any ...
0
votes
0answers
49 views

show manage Manage Stock in swatches js

im trying to show manage stock when customer choose attribute in configurable product page but it just show Stock Availability when attribute field onchange. this is code that show stock avaibility in ...
0
votes
0answers
10 views

My Size Swatch Labels Isnt showing

There should be size numbers in those labels ( VALI SOBIV MÕÕT ) but somehow there are product images?? My question is why and how can I show only size numbers? That switch function in magento ...
2
votes
1answer
68 views

How to show all swatches of out of product for a configurable products in magento 2

I want to show all swatches of product for out of stock products. Currently it is showing only in stock products. how to show for out of stocks products. How to display all swatches Can someone ...
1
vote
0answers
45 views

Help with Magento 2 extension conflict for configurable product swatches

I am using two extensions which both appear on the product page (configurable product with swatches): MagicZoomPlus - for image zoom ability Amasty Out of Stock notifications - for the ability to ...
1
vote
1answer
55 views

Unable To Override “ getJsonSwatchConfig() ” Method in Magento 2

I am working on magento 2 and want to override getJsonSwatchConfig method of Magento\Swatches\Block\Product\Renderer\Configurable class to meet the requirement but facing an issue. I have overrided ...
1
vote
0answers
306 views

magento2: unable to save text swatch attribute, “Admin is a required field in the each row”

on Magento2.2.3 unable to save text swatch attribute, getting error "Admin is a required field in the each row": Value is not Zero. Only possible way to save it is to change type to dropdown or ...
0
votes
1answer
88 views

How to remove or hide swatches for specific products?

Some of our products are available in a range of colors and sizes, and other products are only available in one color and one size. For example: A t-shirt might be available in red and blue, sizes ...
0
votes
0answers
20 views

How to sort this.options.jsonSwatchConfig

In this JS file: vendor/magento/module-swatches/view/frontend/web/js/swatch-renderer.js Following function _init: function () { if (_.isEmpty(this.options.jsonConfig.images)) {...
1
vote
1answer
167 views

Show out of stock product for configurable product Magento 2.1.13

I want to show all sizes of configurable products. Like i have three size S, M, L and L is in Out of stock than it should be visible swatches with cross. In configuration product i am enable show out ...
2
votes
4answers
271 views

Warning: array_merge_recursive() expects at least 1 parameter, 0 given

Warning: array_merge_recursive() expects at least 1 parameter, 0 given in /home/WEBSERVER/public_html/app/code/core/Mage/ConfigurableSwatches/Helper/Productimg.php on line 336 #0 [internal function]:...
0
votes
0answers
17 views

Configurable Products - how to stylize text swatches which are out of stock or available for preorder

I am using an extension to allow some configurable product options to be available for preorder (while the rest are available for immediate purchase). By default, all of the options (displayed as ...
0
votes
0answers
14 views

Swatch boxes are blank on product listings

After applying swatch image roles, swatch boxes are appearing blank. On inspection the swatch container has an image path applied to the background image however is incorrectly formatted. Correct ...
0
votes
2answers
1k views

Magento 2 - Setting “Text Swatch” or “Visual Swatch” does not work. Attribute still shows as dropdown on frontend

I am trying to create basic text swatches for an attribute (instead of dropdowns). I created an attribute (for example, "size"), set the "Catalog Input Type for Store Owner" to "Text Swatch" and ...
0
votes
0answers
20 views

Magento 2.1.3 multiple attributes showing

I have suddenly got 2 attributes showing on a couple of products and not others, I have checked that everything is as it should be in the admin area. How can I find out the cause of this problem? ...
0
votes
0answers
194 views

How to change and get minimum sale quantity in the qty box dynamically in configurable product view page

How I can change my configurable minimum sale quantity in the qty box dynamically when one option is selected, right now the product name, description, image is changed, I need to do the same with the ...
0
votes
0answers
5 views

Magento2 - Use swatches in admin when editing products

is it possible to use swatches for some attributes when editing a product in Magento admin? For example, we have about 20 diffenrent color's. When editing/making a product it would be faster if there ...
0
votes
0answers
20 views

Visual swatches not working as expected

Magento2.2 PHP 7.1 I have created one attribute as a visual swatch and added colors to the attribute and then updated the products but on frontend i am not able to see the colors , instead hex-...
2
votes
0answers
211 views

How to create a custom product view page in a custom url in Magento 2

I need to create a custom product view page in a different custom url. So, i created a custom module for this. But it didn't loads configurable, grouped, bundle swatches. Added the module below: ...