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

0
votes
1answer
6 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
13 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
18 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
32 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
11 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
0answers
21 views

How to display specific swatch color button

I´m trying to display only one of the swatch buttons (The color blue) on a specific part of my page. Is there a way to do this? I don´t need it working, I just want it for display. Thanks!
0
votes
0answers
12 views

Need to show custom price on product detailed page for simple products inside configurable product?

Where can I find the price that is rendering for configurable products child ones when I use swatch renderer!
0
votes
1answer
25 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
26 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
20 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
22 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
80 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
40 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
39 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
13 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
24 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
28 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
35 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
45 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
7 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
18 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
19 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
34 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
36 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
33 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
43 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
208 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
54 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
14 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
99 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
223 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
14 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
12 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
724 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
150 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
17 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
154 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
171 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 ...
1
vote
0answers
39 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
119 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
237 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
148 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
455 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
94 views
0
votes
0answers
21 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
22 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 - ...