Move “Add to Wishlist” Button after “Add to Cart” in Product View

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
2
down vote

favorite
1












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="MagentoCatalogBlockProductView" 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.










share|improve this question





























    up vote
    2
    down vote

    favorite
    1












    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="MagentoCatalogBlockProductView" 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.










    share|improve this question

























      up vote
      2
      down vote

      favorite
      1









      up vote
      2
      down vote

      favorite
      1






      1





      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="MagentoCatalogBlockProductView" 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.










      share|improve this question















      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="MagentoCatalogBlockProductView" 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.







      magento2 layout xml






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 21 at 9:15









      Raül

      45913




      45913










      asked Aug 21 at 6:09









      Jackrose

      19311




      19311




















          2 Answers
          2






          active

          oldest

          votes

















          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="MagentoCatalogBlockProductView" name="product.info.addto" as="addto" template="Magento_Catalog::product/view/addto.phtml"/>
          </referenceBlock>
          ...





          share|improve this answer



























            up vote
            1
            down vote













            Can you try this



            <move element="product.addto.wishlist" destination="product.info.addtocart.additional" after="product.info.addtocart">





            share|improve this answer




















            • 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







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "479"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f239014%2fmove-add-to-wishlist-button-after-add-to-cart-in-product-view%23new-answer', 'question_page');

            );

            Post as a guest






























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            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="MagentoCatalogBlockProductView" name="product.info.addto" as="addto" template="Magento_Catalog::product/view/addto.phtml"/>
            </referenceBlock>
            ...





            share|improve this answer
























              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="MagentoCatalogBlockProductView" name="product.info.addto" as="addto" template="Magento_Catalog::product/view/addto.phtml"/>
              </referenceBlock>
              ...





              share|improve this answer






















                up vote
                2
                down vote



                accepted







                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="MagentoCatalogBlockProductView" name="product.info.addto" as="addto" template="Magento_Catalog::product/view/addto.phtml"/>
                </referenceBlock>
                ...





                share|improve this answer












                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="MagentoCatalogBlockProductView" name="product.info.addto" as="addto" template="Magento_Catalog::product/view/addto.phtml"/>
                </referenceBlock>
                ...






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Aug 21 at 6:58









                Jackrose

                19311




                19311






















                    up vote
                    1
                    down vote













                    Can you try this



                    <move element="product.addto.wishlist" destination="product.info.addtocart.additional" after="product.info.addtocart">





                    share|improve this answer




















                    • Thanks for your answer, but still not working. Add to Wishlist button not showing on simple products.
                      – Jackrose
                      Aug 21 at 6:20














                    up vote
                    1
                    down vote













                    Can you try this



                    <move element="product.addto.wishlist" destination="product.info.addtocart.additional" after="product.info.addtocart">





                    share|improve this answer




















                    • Thanks for your answer, but still not working. Add to Wishlist button not showing on simple products.
                      – Jackrose
                      Aug 21 at 6:20












                    up vote
                    1
                    down vote










                    up vote
                    1
                    down vote









                    Can you try this



                    <move element="product.addto.wishlist" destination="product.info.addtocart.additional" after="product.info.addtocart">





                    share|improve this answer












                    Can you try this



                    <move element="product.addto.wishlist" destination="product.info.addtocart.additional" after="product.info.addtocart">






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Aug 21 at 6:15









                    Shorabh

                    412214




                    412214











                    • Thanks for your answer, but still not working. Add to Wishlist button not showing on simple products.
                      – Jackrose
                      Aug 21 at 6:20
















                    • Thanks for your answer, but still not working. Add to Wishlist button not showing on simple products.
                      – Jackrose
                      Aug 21 at 6:20















                    Thanks for your answer, but still not working. Add to Wishlist button not showing on simple products.
                    – Jackrose
                    Aug 21 at 6:20




                    Thanks for your answer, but still not working. Add to Wishlist button not showing on simple products.
                    – Jackrose
                    Aug 21 at 6:20

















                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f239014%2fmove-add-to-wishlist-button-after-add-to-cart-in-product-view%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?