set template for “product.info.main” in grouped product page with custom moduleHow can i rewrite...

VAT refund for a conference ticket in Sweden

Citing contemporaneous (interlaced?) preprints

Practical reasons to have both a large police force and bounty hunting network?

What am I? I am in theaters and computer programs

For the Kanji 校 is the fifth stroke connected to the sixth stroke?

Plagiarism of code by other PhD student

lead or lag function to get several values, not just the nth

Skis versus snow shoes - when to choose which for travelling the backcountry?

Are there any other Chaos-worshipping races?

Toast materialize

Six real numbers so that product of any five is the sixth one

At what level can a party fight a mimic?

What should the omniscient narrator call a character?

Is there a full canon version of Tyrion's jackass/honeycomb joke?

How to make a *empty* field behaves like a *null* field when it comes to standard values?

If a set is open, does that imply that it has no boundary points?

What happened to QGIS 2.x LTR?

Borrowing Characters

Did Amazon pay $0 in taxes last year?

Source for Cremation Specifically Not Jewish

Are paired adjectives bad style?

Rationale to prefer local variables over instance variables?

How do I deal with being jealous of my own players?

How to kill a localhost:8080



set template for “product.info.main” in grouped product page with custom module


How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento2 Override Block - Invalid template file problemOverriding a template from blockMagento 2.2.5: Overriding Admin Controller sales/orderInvalid template file in a custom moduleMagento 2.2.5: Add, Update and Delete existing products Custom OptionsInvalid template file issue in Magento 2.3













0















I am trying to set a custom template for block "product.info.main" using a module, but this doesn't work.



I have:



app/code/Luca/Module/view/frontend/layout/catalog_product_view_type_grouped.xml



<?xml version="1.0"?>
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceContainer name="content">
<referenceBlock name="product.info.main">
<action method="setTemplate">
<argument name="template" xsi:type="string">Luca_Module::grouped.phtml</argument>
</action>
</referenceBlock>
</referenceContainer>
</body>
</page>


And app/code/Luca/Module/view/frontend/templates/grouped.phtml



The module is working, if i try



<referenceBlock name="product.info.main" remove="true"/>









share|improve this question





























    0















    I am trying to set a custom template for block "product.info.main" using a module, but this doesn't work.



    I have:



    app/code/Luca/Module/view/frontend/layout/catalog_product_view_type_grouped.xml



    <?xml version="1.0"?>
    <page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
    <referenceContainer name="content">
    <referenceBlock name="product.info.main">
    <action method="setTemplate">
    <argument name="template" xsi:type="string">Luca_Module::grouped.phtml</argument>
    </action>
    </referenceBlock>
    </referenceContainer>
    </body>
    </page>


    And app/code/Luca/Module/view/frontend/templates/grouped.phtml



    The module is working, if i try



    <referenceBlock name="product.info.main" remove="true"/>









    share|improve this question



























      0












      0








      0








      I am trying to set a custom template for block "product.info.main" using a module, but this doesn't work.



      I have:



      app/code/Luca/Module/view/frontend/layout/catalog_product_view_type_grouped.xml



      <?xml version="1.0"?>
      <page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
      <body>
      <referenceContainer name="content">
      <referenceBlock name="product.info.main">
      <action method="setTemplate">
      <argument name="template" xsi:type="string">Luca_Module::grouped.phtml</argument>
      </action>
      </referenceBlock>
      </referenceContainer>
      </body>
      </page>


      And app/code/Luca/Module/view/frontend/templates/grouped.phtml



      The module is working, if i try



      <referenceBlock name="product.info.main" remove="true"/>









      share|improve this question
















      I am trying to set a custom template for block "product.info.main" using a module, but this doesn't work.



      I have:



      app/code/Luca/Module/view/frontend/layout/catalog_product_view_type_grouped.xml



      <?xml version="1.0"?>
      <page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
      <body>
      <referenceContainer name="content">
      <referenceBlock name="product.info.main">
      <action method="setTemplate">
      <argument name="template" xsi:type="string">Luca_Module::grouped.phtml</argument>
      </action>
      </referenceBlock>
      </referenceContainer>
      </body>
      </page>


      And app/code/Luca/Module/view/frontend/templates/grouped.phtml



      The module is working, if i try



      <referenceBlock name="product.info.main" remove="true"/>






      magento2






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 34 mins ago









      Teja Bhagavan Kollepara

      2,98641847




      2,98641847










      asked Nov 9 '18 at 9:44









      goplasticgoplastic

      537




      537






















          0






          active

          oldest

          votes











          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%2f249501%2fset-template-for-product-info-main-in-grouped-product-page-with-custom-module%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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%2f249501%2fset-template-for-product-info-main-in-grouped-product-page-with-custom-module%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

          “%fieldName is a required field.”, in Magento2 REST API Call for GET Method Type The Next...

          How to change City field to a dropdown in Checkout step Magento 2Magento 2 : How to change UI field(s)...

          變成蝙蝠會怎樣? 參考資料 外部連結 导航菜单Thomas Nagel, "What is it like to be a...