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

Alternative way of presenting the selection of options for configurable products

2
votes
0answers
17 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
19 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
18 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
29 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
5 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
14 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
12 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
10 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 dropdown. Swatches will display properly but unable to work for add to cart process like freeze when click on any ...
0
votes
0answers
13 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
24 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
21 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
34 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
117 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
38 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
7 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
58 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
175 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
13 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
10 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
342 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
19 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
89 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
14 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
103 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: ...
0
votes
0answers
99 views

Magento 2 : How to save swatch_text attribute options programatically?

I'm creating a product attribute with input type 'swatch_text'. But I'm able to save option value but swatch text value is not saving. Can anyone help me in saving the marked field in screenshot ...
0
votes
0answers
32 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'...
0
votes
1answer
95 views

Stop simple product images overriding main product gallery after clicking swatches

I've upgraded from 2.1.9 to 2.2.3. Now on a configurable product page when a swatch is selected the product page gallery images get overridden by the simple product image for each swatch. This didn'...
3
votes
2answers
182 views

How to disable a swatch, once it is been selected in Magento2.2?

I am trying to disable a swatch, once after it has been selected. So it should not be deselected... How to do it in Magento2.2.x ?
0
votes
1answer
69 views

Product attribute don't save in backend

When trying to save the backend product attribute, it says saved but the same settings are there. I try to change from visual swatch to text swatch, and it saves the text swatch but doesn't update the ...
0
votes
1answer
365 views

Magento 2 Uncaught SyntaxError: Invalid or unexpected token

When I tried to select the product color swatch and product size I got this error in production mode. Uncaught SyntaxError: Invalid or unexpected token at new Function (<anonymous>) at ...
0
votes
2answers
65 views
0
votes
0answers
19 views

Magento 2.1.10: Uncaught TypeError: $element.size is not a functionUncaught TypeError: $element.size is not a function - swatch-renderer.js

i have changed product color attribute from dropdown to visual swacth. And cleared all cache settings under Cache Management. Tested prodcut page add to cart not working.... It shows "This is a ...
0
votes
0answers
19 views

I'm using Magento 1.9.x and the Swatches give me problems

I'm trying to set this website for a long time. It seems like my swatches are giving me several errors. The first one is with the Brands tab in the menu. First Magento is not reading all the images - ...
0
votes
0answers
211 views

Magento 2.2.0 swatches sort order not working

Magento 2.2.0 swatch option sorting doesn't working. The issue which exist in all M2 and we don't think they have fixed it still, but the patch isn't also available for latest version. Fix on Magento ...
0
votes
0answers
183 views

Can't change dropdown attribute to visual swatch on Magento 2

I tried to change a dropdown attribute, for color, to a visual swatch on a test magento2 environment but cannot get it working, does anyone have some advice? When I changed the color attribute to a ...
0
votes
0answers
88 views

How do I access color / size swatches in template/catalog/product/view.phtml?

Currently the display of my swatches occurs on my product view page through the swatches.phtml file located there: template/configurableswatches/catalog/product/view/type/options/configurable/...
0
votes
0answers
75 views

Magento 2 : How to set Swatch Attributes value and image Using CSV

I can set the value in the swatch but I cannot set the image to value so can anyone have the idea related to this? <?php use \Magento\Framework\App\Bootstrap; include('app/bootstrap.php'); $...
0
votes
0answers
22 views

Mangento 1.9. swatches with same attribute value does not updated

We do have a small magento 1.9 store with configurable products. In our store we have a pens with two attributes for configuration. Body color and ink color. If ink color and body color is both blue ...
0
votes
0answers
78 views

Magento 2 visual swatches show on cart page

I am working on magento 2 module and facing issue with visual swatches, I want to show them on cart page too for update color and size, Is there any way to do this? If yes please share your ideas. ...
0
votes
0answers
337 views

Magento 2.2 'Use Product Image for Swatch' not working

Magento 2 Open Source, I am trying to use this feature in product attrbutes -> Visual Swatch > 'Use Product Image for Swatch if Possible' It doesn't work. No image is showing in product page ...
1
vote
0answers
88 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 ...
0
votes
1answer
155 views

Magento 2 - Removing swatches.css from theme

Its a pretty simple and straightforward question, at the moment my theme seems to be pulling through the following: Vendor/default/en_GB/Magento_Swatches/css/swatches.css this isn't in my theme, ...
1
vote
0answers
45 views

Magento : Remove Swatch Selection

This has probably been asked before but I can't seem to find it. Is there a way with javascript to clear or reset a configurable swatch selection?
2
votes
1answer
365 views

Magento 2 Init script after page load

Is there any option to init (text/x-magento-init) script after page load? Example, I am working on a simple quickview feature and my controller returns my a layout - phtml file - with rendered html ...
3
votes
3answers
509 views

How to Auto Select The Color as Swatch Option for Products with Only One Color (on Magento 2.1 Product View)?

I'm trying to have swatch option value of color auto-selected for Products that only have one color. If a user selects some product from the category page, the product page is displayed with ...
0
votes
0answers
61 views

Configurable Product image swapping with swatch image?

I want to know that if, we select any swatch color for configurable product it will add feature image of product but it also show the default image in thumbnail gallery. Like i have one product "kids ...
1
vote
1answer
204 views

Ordering attribute options on product page

We have a site with a number of colour swatch options. We have ordered the options in the attribute edit section but this does not seem to be taken into account when Magento renders the swatch options ...
2
votes
1answer
554 views

How to handle click event on configurable product attribute swatch on product page?

How can i handle click event on configurable product attribute on product page. i am trying to below code but its not work. <script type="text/javascript"> require(['jquery'],function($...