How to move "Add to wishlist" button after "Add to cart"?

I try using move but it's just working on the configurable products. I want it to work too on the simple products.

Check my catalog_product_view.xml :

...
  <move element="product.addto.wishlist" destination="product.info.addtocart.additional" />
...
  <container name="product.addto.wishlist" as="product_addto_wishlist" htmlClass="product wishlist" htmlTag="div">
      <block class="Magento\Catalog\Block\Product\View" name="product.info.addto" as="addto" template="Magento_Catalog::product/view/addto.phtml"/>
  </container>
...

Add to Wishlist button is not showing on simple products.

Simple Products

Configurable Products :

Configurable Products

Thanks.

up vote 2 down vote accepted

I got solutions for my problem.

Just create catalog_product_view_type_simple.xml and use this code below:

...
   <referenceBlock name="product.info.addtocart">
        <block class="Magento\Catalog\Block\Product\View" name="product.info.addto" as="addto" template="Magento_Catalog::product/view/addto.phtml"/>
   </referenceBlock>
...

Can you try this

<move element="product.addto.wishlist" destination="product.info.addtocart.additional" after="product.info.addtocart">
  • Thanks for your answer, but still not working. Add to Wishlist button not showing on simple products. – Jackrose Aug 21 at 6:20

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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