Magento2: Move In Stock and SKU above the add to cart button

by Magento   Last Updated September 11, 2019 10:09 AM

I want to move In stock and SKU above the Add to cart button how can I do that?



Answers 1


You can dot this by moving of the element product.info.stock.sku by overriding catalog_product_view.xml file in your theme.

<move element="product.info.stock.sku" destination="product.info.main" before="product.info.addtocart"/>

Also, run deployment commands after the changes.

Hope it helps!!!

Sumit
Sumit
September 11, 2019 09:35 AM

Related Questions