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" Mar 8, 2017 at 16:06
  • Is it correct in leaving before="-" on the first one? Mar 8, 2017 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 Mar 8, 2017 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? Mar 8, 2017 at 16:47

1 Answer 1

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 and acknowledge you have read our privacy policy.

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