1

How to move SKU in price block in product detail page in Magento 2

screenshot

enter image description here

i was tried with below code

 <move element="product.info.sku" destination="product.price.tier" after="-"/>

and
How to move title in product detail page alone enter image description here

1 Answer 1

3

Keep below code inside xml file body tag in your xml file,

app/design/frontend/{Vendor}/{themename}/Magento_Catalog/layout/catalog_product_view.xml

<move element="product.info.stock.sku" destination="product.info.price" after="-"/>

for title

<move element="page.main.title" destination="product.info.main" before="product.info.review"/>
14
  • Its working @rakesh Commented Jan 30, 2019 at 11:10
  • Please change before to after or accept my edited code Commented Jan 30, 2019 at 11:12
  • how to move a product title @rakesh plz refer a edited question Commented Jan 30, 2019 at 11:51
  • check my answer @divyasekar Commented Jan 30, 2019 at 11:58
  • 1
    above code working ?@divyasekar Commented Jan 30, 2019 at 12:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.