0

I'm trying to layout my product page. My XML is below. However, They are not showing up in that order. Is there a way to force that?

<move element="page.main.title" destination="product.info.main" before="-"/>
<move element="product.price.final" destination="product.info.main" after="-" />
<move element="product.info.simple" destination="product.info.main" after="-" />
<move element="product.info.social" destination="product.info.main" after="-" />
<move element="product.price.tier" destination="product.info.main" after="-" />
<move element="product.info.sku" destination="product.info.main" after="-" />
<move element="product.info.review" destination="product.info.main" after="-" />
<move element="product.info.overview" destination="product.info.main" after="-" />
<move element="product.info.addtocart" destination="product.info.main" after="-" />
4
  • you should define after attribute to make it work. for example, <move element="product.price.final" destination="product.info.main" after="page.main.title" />. so it shows price after title within "product.info.main" – Abhishek Panchal Mar 8 '17 at 16:06
  • Is it correct in leaving before="-" on the first one? – Matthew McLennan Mar 8 '17 at 16:31
  • if it's on proper place then no need to use "move" tag.. Because by default title is the first one to display on that page. everything should be after title – Abhishek Panchal Mar 8 '17 at 16:37
  • Im using the move tag to put it into the product.info.main container. Your comment fixed my issue. Will you enter your information as the answer so I can mark it as the solution? – Matthew McLennan Mar 8 '17 at 16:47
2

you should define after attribute to make it work. for example,

<move element="product.price.final" destination="product.info.main" after="page.main.title" />

so it shows price after title within "product.info.main"

if Title is on proper place then no need to use "move" tag.. Because by default it's the first one to display on product page. everything should be after title.

Thanks. Hope this helps you

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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