Questions tagged [swatches]
Alternative way of presenting the selection of options for configurable products
261
questions
1
vote
0
answers
115
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
87
views
Magento 2 Visual Swatch Image: Background of image is removed after upload
This is the image that I upload to display on a visual swatch:
However, it uploads and displays like this:
How do I get the image to upload with the background intact?
You can view the uploaded ...
0
votes
0
answers
339
views
swatches not working in Magento 2.3.3
I have installed Magento2.3.3 on my system and created one configurable product which has two swatch attribute colour and speed. Colour is image swatch and speed is dropdown. So upon loading product ...
0
votes
1
answer
2k
views
Magento 2.3: Show custom attribute value for configurable products
Is there a way to show the value of a custom attribute that changes for every child product?
I mean something like: user selects "blue" color for shirt and, under the swatches a text appears (like, ...
0
votes
1
answer
565
views
Magento 2 How to move product swatches container
I am trying to change product swatches container and putting it in detailed info tabs.But it move whole option block.How to move only swatches.Table is a watches image.
<move element="product.info....
0
votes
1
answer
831
views
Magento 2 Configurable product with multiple color swatches
I'm creating a configurable product, each simple product has multiple colors, how can I create multiple swatches for each simple product of its configurable one?
0
votes
1
answer
786
views
Magento 2 - Move swatch options after product name in product details page
I want to move my swatch option after product name. If anyone have idea how to do?
Please let me know.
1
vote
1
answer
2k
views
Magento 2 : Display dropdown attribute with its label in product listing page [duplicate]
How to display dropdown type product attribute in product listing page and I also want to display that label name?
How to display that drop-down attributes? I created in admin. But, it's not ...
1
vote
0
answers
70
views
Magento 2 : Show Out of Stock Swatch Options On Configurable Product Page
I want to show outofstock swatch options on the configurable product even if the options is outofstock and the main configurable product is also out of stock.
I want to show that swatch options with ...
0
votes
0
answers
3k
views
Magento 2.3.1 CE visual swatch images showing blank
We have upgraded Magento 2.2.3 CE to Magento 2.3.1 CE recently we have been facing an issue i.e the visual swatch images are not displaying for the configurable product options on the frontend details ...
2
votes
1
answer
1k
views
Magento2: How to add a text between swatch configure and swatch attribute name?
I am having trouble while creating a module that add a text between swatch configure and swatch attribute name load by default, I want to add it only on a specific swatch if I have more than one. And ...
4
votes
1
answer
726
views
Getting placeholder image instead of swatch image. Magento2.3
I have some issues with swatch images. Clicking swatches in catalog list pages loads placeholder images instead of real product images.
I noticed that request to get swatch images returns only small ...
1
vote
0
answers
134
views
In my custom theme swatch option not display in category page in magento 2
In my custom theme swatch option not display in category page in magento 2
configuration option is not display in the category page
refer image : https://prnt.sc/nvegd1
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 "...
1
vote
1
answer
966
views
How to get product manufacturer swatch image?
I have next string, where I get manufacturer attribute:
$brand = $currentProduct->getResource()->getAttribute('manufacturer');
I need to get attribute swatch image. How can I get it?
On ...
1
vote
1
answer
179
views
How can I get full-sized image on swatch attribute? Magento 2.3
I added swatch images for my brand.
I get swatch data in my template:
$swatchData = $block->getSwatchData();
Next step - I show image inside my template:
$swatchThumbPath = $block->...
4
votes
1
answer
288
views
How to add svg icons to Swatch attribute (disable admin panel file validation)?
Currently, I can load png/jpg files in swatch attribute, but when I tried to load save attribute with loaded svg file, it's not working. When I load svg from servers - it displays well, but when I ...
0
votes
0
answers
23
views
can't find my new attribute with dynamic options
when i access to stores product my new attribute i found this :
ok this is my code to install the new attribute
public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $...
0
votes
1
answer
363
views
How to set values to "Manage Swatch(Values of Your Attribute)" section of swatch text attribute programmatically?
I have created a swatch text attribute. But the values are not getting saved properly. How to set values to the section "Manage Swatch(Values of Your Attribute)".
3
votes
3
answers
4k
views
How to show out of stock product configuration in Magento 2.2.7?
The display of out of stock products is enabled in the store configuration. This means that out of stock simple products are displayed. But if one or more configuration of a configurable product is ...
3
votes
0
answers
110
views
Magento hierarchical attributes
Does anyone know how to make product attributes visible only when they exist?
Ex. you have a T-shirt, models are Spiderman and Thor (model attribute), and available on red, blue and green (color ...
2
votes
0
answers
22
views
Don't show swatches on product listing magento 1
Don't show swatches on product listing magento 1
In the settings everything turned on
Attributes are also all set up correctly.
0
votes
1
answer
842
views
Swatch Option Not showing in ASC order in Magento2
If size swatch not found with color swatch then it showing in last position, But I want to show in ascending order.
Any way for this?
0
votes
0
answers
558
views
How to get swatch image of multiple select attribute values in Magento 2?
I am using Magento 2.2.2
I have an attribute called "Brand" and input type for this attribute is multiple select. In this attribute, I have set "Small Image" in additional settings for one of the ...
2
votes
1
answer
402
views
New option value not inserting in eav_attribute_option_swatch
i have 700+ text swatch options..
whenever i add new one, it will insert in eav_attribute_option_value but the Admin value which is supposed to be inserted in eav_attribute_option_swatch is not being ...
0
votes
1
answer
51
views
How to show Size Swatch Option in Reverse Order in magento2
Swatch option coming in asc order but i want to show in reverse order!
Is any way for that?
1
vote
1
answer
2k
views
How to display attribute swatch image in listing page in Magento 2
I am using Magento 2.2.2
I have created one attribute "Manufacturer". Input type of this attribute is visual swatch. I have added values with swatch images in this attribute.
I have selected ...
2
votes
2
answers
1k
views
Swatches disappearing
In the table eav_attribute_option_swatch (the one that holds the swatch options for the attributes) I have about 6k records.
Some are color codes, others are paths to images and most of them are null (...
3
votes
0
answers
263
views
How to add Swatches options to Recently viewed UI component
How to add swatches options for product item to a Recently viewed UI component?
I use the following code to show recently viewed block on the page
<block class="Magento\Catalog\Block\Widget\...
2
votes
2
answers
1k
views
Magento swatch is not disabled when configurable product is not on stock
I have a little problem at my Magento 2.2.5 store. When a combination of a configurable product is not on stock, the swatch should be disabled with a red strike. But at my store no swatch is disabled, ...
0
votes
1
answer
478
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
1
answer
82
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
0
answers
424
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&...
1
vote
4
answers
1k
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
1
answer
1k
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 ...
2
votes
2
answers
6k
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
1
answer
1k
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!
1
vote
1
answer
2k
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 ...
1
vote
2
answers
1k
views
Configurable options (size and color) not load
Sometimes Configurable options are not loaded on product detail page and I get this error on the console
In firefox I get this error on console:
TypeError: settings.fotoramaApi is undefined
In ...
6
votes
1
answer
907
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 as ...
2
votes
0
answers
551
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
1
answer
872
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
1
answer
948
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 ...
2
votes
2
answers
1k
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
0
answers
83
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 ...
2
votes
1
answer
349
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
0
answers
271
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
1
answer
529
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 ...
2
votes
0
answers
851
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
1
answer
701
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 ...