Questions tagged [configurable-swatches]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
18 views

Magento 2 : Get Configurable Product using swatch-option

I want to get product id on selecting swatch option.for that i have used code as given below. i am getting error of "Cannot read properties of undefined (reading 'options')" as per given ...
user avatar
0 votes
0 answers
14 views

swatch-renderer.js custom attributes

How to get custom attribute value in swatch-renderer.js for selected simple product on configurable product page, and show it after on one class?
user avatar
0 votes
0 answers
35 views

Magento 2.3 - Thumbnail images not display while swatches selected for configurable product

Magento - 2.3.* Logged in customer Add configurable product to wishlist with swatches Go to wishlist page and click on the product The product page is open with selected swatches but thumbnail images ...
user avatar
0 votes
0 answers
9 views

Reset dependent swatches options if change first swatch(color) option magento 2 product page

There are 4 attributes are used as swatches color, height, width, weight Color swatch's first option is selected by default and other options from other swatches are selected by the user. After ...
user avatar
  • 1,967
0 votes
0 answers
13 views

Magento 2.3.7 category page swatch render issue with ajax infinite scroll

When we come first time on the category page, the swatches is coming properly (on page load), but when we scroll down to see the next product collection (ajax loaded product collection on scroll event)...
user avatar
0 votes
0 answers
58 views

how to add swatch attribute options through api

How can I add swatch attributes options thorugh rest api? I want api which allows to add attribute options for all attributes which are text swatch,visual swatch.
user avatar
0 votes
0 answers
7 views

Is there a way to change the native visualization behavior of Magento 2 swatch function?

Apologies I am no developer, but I am trying to build a swatch UX for my ecomm site on Adobe commerce cloud platform Magento 2.4.2. I require a progressive swatch display where the sorted ...
user avatar
  • 1
0 votes
1 answer
93 views

How To Auto Select First Child Product for swatch with image in list Of Magento 2?

How To Auto Select First Child Product for swatch with image in list Of Magento 2? i have override module-swatches/view/frontend/web/js/SwatchRenderer.js And update the method _RenderControls. but ...
user avatar
0 votes
0 answers
18 views

How to disable deselecting of swatch on detail page?

I am trying to disable deselecting a swatch so user must choose another, because then I am getting 'undefined' image error. I have 2 swatches i.e. color and size. Firstly, if I can disable this ...
user avatar
  • 107
0 votes
0 answers
26 views

How to display all swatches in product list page, Need to remove show more button in list page

How to remove show more option in product list page swtches, now Magento gives the option if this number of swatches displayed after it's added show more button in list page swatches section. I need ...
user avatar
0 votes
0 answers
14 views

Magento 2 - Adding Attributes on Attributes?

Anyone know if its possible to add a column here like a dropdown for us to basically group these swatches (Attribute to be used for something else later on).
user avatar
  • 169
0 votes
0 answers
68 views

can we get quantity of simple product in configurable swatches

We have enabled Backorder for all simple products. And created configurable items with color swatches. Now I need to hide some swatches which has negative quantity. To do this we need to add quantity ...
user avatar
1 vote
2 answers
43 views

Best Way To Achieve Configurable Product? Is This A Configurable Product?

Maybe configurable product is not the appropriate term, but I'm looking to provide different product options that will dynamically update the URL/SKU/Price. I've included a perfect example below of ...
user avatar
0 votes
0 answers
42 views

How to enable swatches to display as crossed out when out of stock?

We sell T-shirts in sizes S, M, L. And for instance L is sold out. I want swatche with value L be crossed out.
user avatar
0 votes
1 answer
225 views

Configurable product with image swatch only on product page

Is it possible to show image swatches only on product page, and on category pages, related, upsell sliders to stay default color swatches. By default magento configuration its colors or image swatches ...
user avatar
0 votes
1 answer
388 views

Clicking on color swatch, images are not loading on product listing page in magento 2.3.3

I have added color swatches for my Configurable products. On product detail page when we click on color swatches the product images gets changed properly. But this does not work fine on category pages....
user avatar
  • 700
1 vote
1 answer
177 views

Execute mixin only when my custom module is enabled from configuration

I've implemented swatch-renderer-mixin through require-js. It's working fine but I need to only run it when my module is enabled. What's the best way to check it in my mixin.js file? This is my ...
user avatar
1 vote
0 answers
96 views

magento 2 sort child products according swatches in product view page

I wanna sort the child products of configurable according to display swatches. I wanna sort the child products in product page. Product page swatches display like this Green,White,Black When I use my ...
user avatar
0 votes
1 answer
166 views

Gallery image(thumbnails) not changing on visual swatch Magento 2.4.1

Is there any way to change the Gallery(thumbnail) image on visual swatch, currently only the base image get changed, I need to replace all the gallery image with selected product images
user avatar
  • 694
0 votes
0 answers
310 views

Magento 2.3.4 - Configurable products auto select first option

On my clothing store, when I enter on product page of a configurable item, I need to auto-select the first option for color (swatch attribute). I found this solution: How to make auto select first ...
user avatar
  • 119
1 vote
0 answers
9 views

Issue with Configurable Images

If i didn't put an image in a child product that is linked to a configurable that it would only show the image in the parent product, it is showing the placeholder. How do I stop this from happening?
user avatar
1 vote
1 answer
48 views

Tax and Excl. Tax is the same when using configurable swatches

I'm using Magento 2.3.5, and have noticed my incl/excl tax prices are the same, but only when clicking a swatch (I assume JS somewhere is at fault, but scratching my head) I've tested disabling all ...
user avatar
3 votes
1 answer
940 views

Magento2 swatch image change Ajax return 404

I recently upgraded my Magento version from 2.1.9 to 2.3.3, after upgrade everything is working fine else the changing of configurable swatches. On changing the configurable swatches product image is ...
user avatar
1 vote
0 answers
132 views

enable swatches not displayed as crossed out when out of stock?

I just want to remove crossed out lines and enable Swatches when the sample product is out of stock. This is already working on Magento 2.3.2 but after update to 2.3.4, its shows crossed outline. can ...
user avatar
0 votes
1 answer
318 views

Sort Magento 2 Text Swatches Options

I want to make swatches in sorting in natural sorting order. Like using below PHP function: "strnatcasecmp" I know it can be done through admin like drag and drop to size/color option. But I only ...
user avatar
0 votes
2 answers
784 views

how to refresh a part of the page when configurable variation is selected in magento 2.3

I want to reload a div section on the product detail page of the configurable product when the configurable variation is selected. How do I achieve that? require(['jquery','jquery/ui'],function($){ ...
user avatar
0 votes
0 answers
30 views

How to select an associated product of a configurable product to display in catalogsearch page?

Without any configuration, the green pant is shown by default when I search for 'yoga pant'. My question is How can I make, for example, blue pant size 34 and its price and stock status as well to ...
user avatar
1 vote
0 answers
488 views

Issue with Configurable Products Out of stock Products Price does not fluctuate in Magento 2.3.2

we are facing issue in Magento 2.3.2 version: Here we are using default Magento 2 Mutli-inventory Management. In Configurable Products I made some changes to show Out of Stock Products to display ...
user avatar
0 votes
0 answers
592 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>....
user avatar
  • 135
0 votes
1 answer
165 views

Dropdown swatch has to display the concerned text

This image has the dropdown swatch with the color like blue, red ,etc inside it. If its a text swatch then it displays as 16mp or 48mp based on the values clicked but here in drop down swatch I couldn'...
user avatar
  • 661
1 vote
1 answer
2k views

change product detail based on configurable product dropdown

In both the above images, the size (Twin XL,Twin, Full, etc) is selected and the above size of the product changes dynamically as (39x80x12),(54x75x12). I tried to make changes in the ...
user avatar
  • 661
1 vote
1 answer
182 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> <...
user avatar
  • 1,592
0 votes
1 answer
867 views

Magento 2: on swatch image hover upadate product image on category page

How to update the swatch image on hover rather than click ? I have created the custom module to show the color count,here is my code: <?php namespace Swatch\SwatchCount\Block\Product; class ...
user avatar
  • 1,592
0 votes
1 answer
496 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 ...
user avatar
  • 135
1 vote
0 answers
41 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 ...
user avatar
0 votes
1 answer
369 views

Add Configurable Product to Wish List

When a user clicks "Add to Wishlist" on a product that uses swatching, it saves the configurable product ID, not the simple product id. How can I get it to save the simple product id in the wish list ...
user avatar
3 votes
1 answer
1k views

Magento 1.9 - How to debug - Configurable product price changed to 0 if chooses colors attribute

I have configurable product if choose different color in products page price return 0, configuration : In my configurable productpage, Note : I am using this extension, https://pluginarchive.com/...
user avatar
  • 95
1 vote
0 answers
313 views

Magento 2 How can I get selected swatch options on wishlist page?

I am trying to get selected swatches color, the size on wishlist page in Magento 2.3 If I add a simple product in wishlist then attribute value is showing but when I am trying to get selected options ...
user avatar
0 votes
1 answer
806 views

Magento 2 configurable product price not update

Magento 2.2.8 .I have created Configurable product with Color + Size attribute. Product price is not update When select(Click) attribute on Product details page. I am using Luma theme.
user avatar
  • 1,450
5 votes
3 answers
4k views

How to change product name dynamically in configurable product when click swatches Magento 2.3

How to Change the Configurable products name dynamically when i click configurable swatches, currently price change when click swatches .I need to change name too. please suggest better way! Thank You,...
user avatar
  • 1,372
3 votes
1 answer
238 views

How can I show "Only X left" on configurable products on Magento 2.2.8?

I want to know how I can show the function "Only X left" on configurable products on magento 2. I've tried so many ways, but nothing works. I see how to do this to M1, but nothing to M2.
user avatar
0 votes
0 answers
173 views

Magento 1.9 Configurable Products Options and cart issue

I'm working on a magento 1.9 site, it have strange issue, we we go to a configurable product page it don't show the product options and ad to cart button. -The list pages show the other two option ...
user avatar
2 votes
0 answers
306 views

How to load simple product images on configurable product in magento 2?

How we can show the images on page when load of simple product of configurable product. By default configurable product image show but what i want when we click on color option then its associated ...
user avatar
  • 1,214
3 votes
0 answers
434 views

Magento 2 : How to get Swatches attribute options in popup?

Magento2 - popup open in ajax response. So all values come from the controller and set in the popup, but attributes options are not shown. \vendor\magento\module-checkout\view\frontend\templates\cart\...
user avatar
1 vote
0 answers
74 views

Add configurable swatches inside Related Product block in magento2 product view page

I have added below code inside the following path: /app/design/frontend/magento/theme/Magento_Catalog/layout/catalog_product_view.xml //code inside related product block <block class="...
user avatar
1 vote
1 answer
2k 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 "...
user avatar
  • 423
0 votes
1 answer
410 views

Show % discount in configurable products magento 2

I have added the following code in /public_html/vendor/magento/module-configurable-product/view/base/templates/product/price/final_price.phtml <?php if ( $block->hasSpecialPrice()): ?> &...
user avatar
1 vote
1 answer
31 views

When Configurable swatches enabled, thumbnails not loading picture to main [closed]

I have an issue with magento 1.9.4 When i enable configurable swatches the thumbnails not load picture in the main but on click it goes to top of page. Do anyone know what file or template is ...
user avatar
  • 109
0 votes
3 answers
505 views

Magento2 Display all associated simple products if all of sizes are out of stock?

sizes options not showing on configurable products if all sizes out of stock. Any way to show out of stock sizes?
user avatar
  • 1,175
2 votes
1 answer
245 views

Error when importing configurable product programmatically

I am programming a custom import system with Magento libraries, but when I import configurable products I get an SQL error. This is my configurable product function (only a part of my code): ...
user avatar