cancel
Showing results for 
Search instead for 
Did you mean: 

Change the location of Color Swatches for configurable products on listing page

SOLVED

Change the location of Color Swatches for configurable products on listing page

Hi,

 

I want to change the location of configurable swatches on listing page.

 

Any help would be appreciated.

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Change the location of Color Swatches for configurable products on listing page

@akashay _kc You can do it using css or you can do it from code.

 

Please override the below file in your theme and change the position of below line of code which is responsible for showing swatches.

 

Path:- vendor/magento/module-catalog/view/frontend/templates//var/www/html/magentoce/product/list.phtml

 

<?= $block->getProductDetailsHtml($_product) ?>

Thanks

View solution in original post

1 REPLY 1

Re: Change the location of Color Swatches for configurable products on listing page

@akashay _kc You can do it using css or you can do it from code.

 

Please override the below file in your theme and change the position of below line of code which is responsible for showing swatches.

 

Path:- vendor/magento/module-catalog/view/frontend/templates//var/www/html/magentoce/product/list.phtml

 

<?= $block->getProductDetailsHtml($_product) ?>

Thanks