Questions tagged [configurable-swatches]

The tag has no usage guidance.

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

How to add a new field on Manage Swatch in Magento2.4.6

I want to add a new Multi-select checkbox field in Magento Swatch attribute.
SURENDER SINGH's user avatar
0 votes
0 answers
22 views

Product Config option works like Amazon

I have enabled the display out of stock products from the admin configuration. Now those config option are displaying on the front-end and it works fine also. If any product is out of stock then that ...
Sunny Rahevar's user avatar
0 votes
0 answers
13 views

How to define if product has swatches?

Magento 2.4.4. I am getting some configurable product model. $product = $block->getProduct(); I need to determine, whether this product has swatches or not. Thanks for any help.
Elf-12's user avatar
  • 11
1 vote
1 answer
159 views

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

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,...
ecommerce's user avatar
0 votes
1 answer
52 views

How to load product's swatch info through PHP script which is showing on listing page and product detail page?

Does anyone suggest how to load the product's swatch info through the PHP script which is showing on the product detail page and category pages? $config_product_id = 12; $configProductObject = $...
sandip's user avatar
  • 4,004
0 votes
1 answer
329 views

Magento 2 how to hide swatch on configurable product if it is out of stock?

I don't use MSI and i want so that swatches that are not available are hidden on the configurable product. How can this be done?
David Young's user avatar
0 votes
1 answer
1k 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 ...
sandip memariya's user avatar
0 votes
1 answer
244 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)...
mage_andy's user avatar
0 votes
1 answer
526 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 ...
srushti patel's user avatar
1 vote
2 answers
55 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 ...
Old Gregg's user avatar
0 votes
1 answer
717 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 ...
Alek Pangos's user avatar
0 votes
1 answer
785 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....
Nafsss's user avatar
  • 760
2 votes
1 answer
463 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 ...
Abdul Samad Abbasi's user avatar
1 vote
0 answers
210 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 ...
Niraj Patel's user avatar
0 votes
1 answer
402 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
amith lal's user avatar
  • 790
0 votes
0 answers
795 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 ...
Silver's user avatar
  • 119
1 vote
0 answers
11 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?
Pawan Singh Rakshel's user avatar
1 vote
1 answer
65 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 ...
Ricky Odin Matthews's user avatar
3 votes
1 answer
1k 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 ...
Narendra Vyas's user avatar
2 votes
0 answers
217 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 ...
Vishvajit Kumar's user avatar
0 votes
1 answer
503 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 ...
Dinesh Rajput's user avatar
0 votes
2 answers
2k 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($){ ...
nagaratna's user avatar
0 votes
0 answers
77 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 ...
Long Jackson's user avatar
1 vote
0 answers
599 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 ...
Oscprofessionals's user avatar
0 votes
0 answers
723 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>....
AjayKr's user avatar
  • 145
0 votes
1 answer
257 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'...
Haerriz's user avatar
  • 681
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 ...
Haerriz's user avatar
  • 681
1 vote
1 answer
335 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> <...
Rahul Singh's user avatar
  • 1,650
0 votes
1 answer
1k 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 ...
Rahul Singh's user avatar
  • 1,650
0 votes
1 answer
654 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 ...
AjayKr's user avatar
  • 145
1 vote
0 answers
139 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 ...
Sagar Parikh's user avatar
0 votes
1 answer
599 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 ...
cjochum's user avatar
  • 131
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/...
zus's user avatar
  • 165
1 vote
0 answers
418 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 ...
Vinod Kumar Clix's user avatar
0 votes
1 answer
967 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.
Shorabh's user avatar
  • 1,508
5 votes
4 answers
6k 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,...
Shafeel Sha's user avatar
  • 1,395
3 votes
1 answer
307 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.
Raphael Cordeiro's user avatar
0 votes
0 answers
203 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 ...
Suneth Kalhara's user avatar
2 votes
0 answers
370 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 ...
Magento Dev's user avatar
  • 1,264
3 votes
0 answers
647 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\...
Monark Bhawani's user avatar
1 vote
0 answers
133 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="...
Hemangi Patel's 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 "...
matin's user avatar
  • 463
0 votes
1 answer
616 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()): ?> &...
vellai durai's user avatar
1 vote
1 answer
32 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 ...
Pantelis's user avatar
  • 109
0 votes
3 answers
616 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?
Jugal Kishor's user avatar
  • 1,225
2 votes
1 answer
315 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): ...
Ángel Carlos del Pozo Muela's user avatar
1 vote
1 answer
529 views

Configurable Product Dropdown Image Switch

I upgraded my site from EE 1.14.1.0 to 1.14.3.10 and now when I navigate to a configurable product that uses a drop down (not swatches) to change the image, the image does not change. I have looked ...
cjochum's user avatar
  • 131
0 votes
0 answers
66 views

magento 2 "out of stock" not displaying in configurable swatch option product

In my magnto 2.2 "out of stock" option product was not dispalying in configurable swatch product. I like to list all option even if "out of stock". Please help to solve this solution.
Priya's user avatar
  • 589
3 votes
0 answers
493 views

Size option not showing on product view page for configurable product in Magento2

Color Options showing but size option not showing also all setting in admin is correct When i click on add to cart button it's show size required field but not size options are there I checked ...
Jugal Kishor's user avatar
  • 1,225
0 votes
0 answers
744 views

Option product quantity is zero, not displaying in configurable product in magento 2.2

I tried admin panel settings Products -> Catalog ->inventory Dispaly product if out of stock (yes). But still for configurable product of my swatch option quantity is (0) zero, that option(child) ...
Priya's user avatar
  • 589