Move theme layout elements on a product view from within a Module Magento 2Is it possible to remove elements in a page layout in Magento2?Magento 2 - Can't access to products with direct urlMagento 2 Custom Page Layout Not Workingforce product view layout to 1columnMagento 2 : Display Related Products Block in Product ViewMagento 2 : How Edit Product Detail Page Layout - Luma Theme as ParentHow to load a layout XML file from a different pageUnable to create/visualize productsMagento 2.2 Theme LayoutHow do I display a custom grouped product page layout?

Pre-Employment Background Check With Consent For Future Checks

Friend wants my recommendation but I don't want to give it to him

Nested Dynamic SOQL Query

Hackerrank All Women's Codesprint 2019: Name the Product

PTIJ: Which Dr. Seuss books should one obtain?

Why does Surtur say that Thor is Asgard's doom?

Determine voltage drop over 10G resistors with cheap multimeter

Is xar preinstalled on macOS?

Homology of the fiber

Jem'Hadar, something strange about their life expectancy

What will the Frenchman say?

How to find the largest number(s) in a list of elements, possibly non-unique?

Would mining huge amounts of resources on the Moon change its orbit?

Do I need to convey a moral for each of my blog post?

Asserting that Atheism and Theism are both faith based positions

Recursively updating the MLE as new observations stream in

Why is "la Gestapo" feminine?

Is VPN a layer 3 concept?

How can an organ that provides biological immortality be unable to regenerate?

Turning a hard to access nut?

Does the Shadow Magic sorcerer's Eyes of the Dark feature work on all Darkness spells or just his/her own?

Error in master's thesis, I do not know what to do

Symbolism of 18 Journeyers

How to determine the greatest d orbital splitting?



Move theme layout elements on a product view from within a Module Magento 2


Is it possible to remove elements in a page layout in Magento2?Magento 2 - Can't access to products with direct urlMagento 2 Custom Page Layout Not Workingforce product view layout to 1columnMagento 2 : Display Related Products Block in Product ViewMagento 2 : How Edit Product Detail Page Layout - Luma Theme as ParentHow to load a layout XML file from a different pageUnable to create/visualize productsMagento 2.2 Theme LayoutHow do I display a custom grouped product page layout?













1















I am having trouble moving the short description on the product page. I tried with the move command within the layout file without any luck. I can move any new created block where I want but I can't modify theme declared layout blocks.



Location of my layout xml file




Vendor/Module/view/frontend/layout/catalog_product_view.xml




Layout file code



<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>

<referenceContainer name="content">
<block class="TestCatalogBlockRewriteProductView" name="product.seller.list" template="test.phtml" />
</referenceContainer>

<!--This works as created above-->
<move element="product.seller.list" destination="product.info.main" after="product.info.review"/>

<!--This does not work-->
<move element="product.info.overview" destination="product.info.main" after="-"/>

</body>
</page>


If I modify the theme layout file the move works. Any help will be great










share|improve this question




























    1















    I am having trouble moving the short description on the product page. I tried with the move command within the layout file without any luck. I can move any new created block where I want but I can't modify theme declared layout blocks.



    Location of my layout xml file




    Vendor/Module/view/frontend/layout/catalog_product_view.xml




    Layout file code



    <?xml version="1.0"?>
    <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>

    <referenceContainer name="content">
    <block class="TestCatalogBlockRewriteProductView" name="product.seller.list" template="test.phtml" />
    </referenceContainer>

    <!--This works as created above-->
    <move element="product.seller.list" destination="product.info.main" after="product.info.review"/>

    <!--This does not work-->
    <move element="product.info.overview" destination="product.info.main" after="-"/>

    </body>
    </page>


    If I modify the theme layout file the move works. Any help will be great










    share|improve this question


























      1












      1








      1








      I am having trouble moving the short description on the product page. I tried with the move command within the layout file without any luck. I can move any new created block where I want but I can't modify theme declared layout blocks.



      Location of my layout xml file




      Vendor/Module/view/frontend/layout/catalog_product_view.xml




      Layout file code



      <?xml version="1.0"?>
      <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
      <body>

      <referenceContainer name="content">
      <block class="TestCatalogBlockRewriteProductView" name="product.seller.list" template="test.phtml" />
      </referenceContainer>

      <!--This works as created above-->
      <move element="product.seller.list" destination="product.info.main" after="product.info.review"/>

      <!--This does not work-->
      <move element="product.info.overview" destination="product.info.main" after="-"/>

      </body>
      </page>


      If I modify the theme layout file the move works. Any help will be great










      share|improve this question
















      I am having trouble moving the short description on the product page. I tried with the move command within the layout file without any luck. I can move any new created block where I want but I can't modify theme declared layout blocks.



      Location of my layout xml file




      Vendor/Module/view/frontend/layout/catalog_product_view.xml




      Layout file code



      <?xml version="1.0"?>
      <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
      <body>

      <referenceContainer name="content">
      <block class="TestCatalogBlockRewriteProductView" name="product.seller.list" template="test.phtml" />
      </referenceContainer>

      <!--This works as created above-->
      <move element="product.seller.list" destination="product.info.main" after="product.info.review"/>

      <!--This does not work-->
      <move element="product.info.overview" destination="product.info.main" after="-"/>

      </body>
      </page>


      If I modify the theme layout file the move works. Any help will be great







      product magento2.2 page-layouts






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 13 hours ago









      Gee Emm

      1299




      1299










      asked 15 hours ago









      mastermaster

      163




      163




















          1 Answer
          1






          active

          oldest

          votes


















          0














          product.info.overview is generally the last element of the product.info.main component. When you use after="-" you're making if the last element of the product.info.main component. I would try using before="-" so that it becomes the first element in that component or so you can at least see it move. Then you can specify where you want it based on the M2 dev docs for layout updates (https://devdocs.magento.com/guides/v2.0/frontend-dev-guide/layouts/xml-instructions.html#fedg_layout_xml-instruc_ex_mv).



          Also, if you're not seeing changes you may need to clear your layout cache or recompile php bin/magento cache:flush layout or php bin/magento setup:di:compile.






          share|improve this answer






















            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',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            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%2f266385%2fmove-theme-layout-elements-on-a-product-view-from-within-a-module-magento-2%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            product.info.overview is generally the last element of the product.info.main component. When you use after="-" you're making if the last element of the product.info.main component. I would try using before="-" so that it becomes the first element in that component or so you can at least see it move. Then you can specify where you want it based on the M2 dev docs for layout updates (https://devdocs.magento.com/guides/v2.0/frontend-dev-guide/layouts/xml-instructions.html#fedg_layout_xml-instruc_ex_mv).



            Also, if you're not seeing changes you may need to clear your layout cache or recompile php bin/magento cache:flush layout or php bin/magento setup:di:compile.






            share|improve this answer



























              0














              product.info.overview is generally the last element of the product.info.main component. When you use after="-" you're making if the last element of the product.info.main component. I would try using before="-" so that it becomes the first element in that component or so you can at least see it move. Then you can specify where you want it based on the M2 dev docs for layout updates (https://devdocs.magento.com/guides/v2.0/frontend-dev-guide/layouts/xml-instructions.html#fedg_layout_xml-instruc_ex_mv).



              Also, if you're not seeing changes you may need to clear your layout cache or recompile php bin/magento cache:flush layout or php bin/magento setup:di:compile.






              share|improve this answer

























                0












                0








                0







                product.info.overview is generally the last element of the product.info.main component. When you use after="-" you're making if the last element of the product.info.main component. I would try using before="-" so that it becomes the first element in that component or so you can at least see it move. Then you can specify where you want it based on the M2 dev docs for layout updates (https://devdocs.magento.com/guides/v2.0/frontend-dev-guide/layouts/xml-instructions.html#fedg_layout_xml-instruc_ex_mv).



                Also, if you're not seeing changes you may need to clear your layout cache or recompile php bin/magento cache:flush layout or php bin/magento setup:di:compile.






                share|improve this answer













                product.info.overview is generally the last element of the product.info.main component. When you use after="-" you're making if the last element of the product.info.main component. I would try using before="-" so that it becomes the first element in that component or so you can at least see it move. Then you can specify where you want it based on the M2 dev docs for layout updates (https://devdocs.magento.com/guides/v2.0/frontend-dev-guide/layouts/xml-instructions.html#fedg_layout_xml-instruc_ex_mv).



                Also, if you're not seeing changes you may need to clear your layout cache or recompile php bin/magento cache:flush layout or php bin/magento setup:di:compile.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 12 hours ago









                mluntmlunt

                769




                769



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Magento Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f266385%2fmove-theme-layout-elements-on-a-product-view-from-within-a-module-magento-2%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Sum ergo cogito? 1 nng

                    419 nièngy_Soadمي 19bal1.5o_g

                    Queiggey Chernihivv 9NnOo i Zw X QqKk LpB