Questions tagged [configurable-swatches]
The configurable-swatches tag has no usage guidance.
102
questions
0
votes
0
answers
12
views
How to show tier price catalog category view page in configurable product option select simple product in magento 2.4
To display tier prices for configurable products in Magento 2.4, you need to make sure that when a simple product (child product) is selected from the configurable product options, the tier prices for ...
0
votes
0
answers
67
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.
0
votes
0
answers
23
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 ...
1
vote
1
answer
251
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,...
0
votes
1
answer
71
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 = $...
0
votes
1
answer
377
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?
0
votes
1
answer
2k
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 ...
0
votes
1
answer
298
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)...
0
votes
1
answer
571
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 ...
1
vote
2
answers
57
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 ...
0
votes
1
answer
773
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 ...
0
votes
1
answer
819
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....
2
votes
2
answers
522
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 ...
1
vote
0
answers
219
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 ...
0
votes
1
answer
404
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
0
votes
0
answers
885
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 ...
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?
1
vote
1
answer
71
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 ...
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 ...
2
votes
0
answers
222
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 ...
0
votes
1
answer
535
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 ...
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($){
...
0
votes
0
answers
78
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 ...
1
vote
0
answers
605
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 ...
0
votes
0
answers
734
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>....
0
votes
1
answer
275
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'...
1
vote
1
answer
3k
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 ...
1
vote
1
answer
385
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>
<...
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 ...
0
votes
1
answer
674
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 ...
1
vote
0
answers
151
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 ...
0
votes
1
answer
616
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 ...
3
votes
1
answer
2k
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/...
1
vote
0
answers
427
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 ...
0
votes
1
answer
996
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.
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,...
4
votes
1
answer
319
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.
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 ...
2
votes
0
answers
376
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 ...
3
votes
0
answers
656
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\...
1
vote
0
answers
148
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="...
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 "...
0
votes
1
answer
644
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()): ?>
&...
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 ...
0
votes
3
answers
617
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?
2
votes
1
answer
320
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):
...
1
vote
1
answer
532
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 ...
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.
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 ...
0
votes
0
answers
751
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) ...