Magento2 : Issues in default Enterprise Edition RMA extension

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
4
down vote

favorite












I am facing some issues in Magento2 EE default RMA extension.



In create new return under "Return item information".



1) Form is not getting validated: reason to order, item condition, resolution are required yet form gets submitted and request is created.



2) On "Add item to return": I do not found any option to delete that added item.



3) On successful submitting RMA form getting error : "We can't create a return right now. Please try again later.".



Has anyone else have faced same issue.



Any help.



[edit]:



Figured out the 3 rd point, this error is occurring as sendNewRmaEmail() function is called on creating rma. So as emails were not been send so it was throwing error. But yet first two problems still persists.










share|improve this question





























    up vote
    4
    down vote

    favorite












    I am facing some issues in Magento2 EE default RMA extension.



    In create new return under "Return item information".



    1) Form is not getting validated: reason to order, item condition, resolution are required yet form gets submitted and request is created.



    2) On "Add item to return": I do not found any option to delete that added item.



    3) On successful submitting RMA form getting error : "We can't create a return right now. Please try again later.".



    Has anyone else have faced same issue.



    Any help.



    [edit]:



    Figured out the 3 rd point, this error is occurring as sendNewRmaEmail() function is called on creating rma. So as emails were not been send so it was throwing error. But yet first two problems still persists.










    share|improve this question

























      up vote
      4
      down vote

      favorite









      up vote
      4
      down vote

      favorite











      I am facing some issues in Magento2 EE default RMA extension.



      In create new return under "Return item information".



      1) Form is not getting validated: reason to order, item condition, resolution are required yet form gets submitted and request is created.



      2) On "Add item to return": I do not found any option to delete that added item.



      3) On successful submitting RMA form getting error : "We can't create a return right now. Please try again later.".



      Has anyone else have faced same issue.



      Any help.



      [edit]:



      Figured out the 3 rd point, this error is occurring as sendNewRmaEmail() function is called on creating rma. So as emails were not been send so it was throwing error. But yet first two problems still persists.










      share|improve this question















      I am facing some issues in Magento2 EE default RMA extension.



      In create new return under "Return item information".



      1) Form is not getting validated: reason to order, item condition, resolution are required yet form gets submitted and request is created.



      2) On "Add item to return": I do not found any option to delete that added item.



      3) On successful submitting RMA form getting error : "We can't create a return right now. Please try again later.".



      Has anyone else have faced same issue.



      Any help.



      [edit]:



      Figured out the 3 rd point, this error is occurring as sendNewRmaEmail() function is called on creating rma. So as emails were not been send so it was throwing error. But yet first two problems still persists.







      magento2 knockoutjs magento2-enterprise rma






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 1 hour ago









      Sourabh Kumar Sharma

      427214




      427214










      asked 2 hours ago









      Narendra

      327




      327




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          You can try this way if it works for you. Its just a fixed.



          1) Override module-rma/view/frontend/templates/form/renderer/select.phtml in your theme or module. add data-validate="required:true" for required attributes.



          select.phtml.



          <?php
          /**
          * Copyright © Magento, Inc. All rights reserved.
          * See COPYING.txt for license details.
          */

          // @codingStandardsIgnoreFile

          ?>
          <?php
          /**
          * Create account form template
          /* @var $block MagentoRmaBlockFormRendererSelect */
          $validate = ($block->isRequired()) ? 'data-validate="required:true"' : '';
          ?>
          <div class="field <?= $block->getHtmlId() ?><%- data._index_ %><?php if ($block->isRequired())
          echo ' required' ?>">
          <label for="items:<?= $block->getHtmlId() ?><%- data._index_ %>" class="label"><span><?= /* @escapeNotVerified */ $block->getLabel() ?></span></label>
          <div class="control">
          <select id="items:<?= $block->getHtmlId() ?><%- data._index_ %>" name="items[<%- data._index_ %>][<?= /* @escapeNotVerified */ $block->getFieldName() ?>]"<?php if ($block->getFieldName() == 'reason'): ?> data-args='"index":<%- data._index_ %>' <?php endif;
          ?> <?=$validate?> >
          <?php foreach ($block->getOptions() as $option):?>
          <option value="<?= /* @escapeNotVerified */ $option['value'] ?>"<?php if ($option['value'] == $block->getValue()):?> selected="selected"<?php endif;?>><?= $block->escapeHtml($option['label']) ?></option>
          <?php endforeach;?>
          <?php if ($block->getFieldName() == 'reason'): ?>
          <?php $attribute = $block->getAttribute('reason_other'); ?>
          <?php if ($attribute): ?>
          <option value="other"<?php if ($option['value'] == 'other'):?> selected="selected"<?php endif;?>><?= $block->escapeHtml($attribute->getStoreLabel()) ?></option>
          <?php endif; ?>
          <?php endif; ?>
          </select>
          </div>
          </div>


          2) For second issue please add below html before fieldset ends in create.phtml.



          <div class="actions-toolbar text-right">
          <div class="secondary" id="delete<%- data._index_ %>">
          <button type="button" class="action remove delete"><span><?= /* @escapeNotVerified */ __('Remove') ?></span></button>
          </div>
          </div>


          3) For third issue I think if point 1 resolved from this fix then you won't face this issue anymore.



          I hope it will work for you, Let me know if you face any further issue from these fixes.






          share|improve this answer






















          • Thanks a lot Ramkishan.
            – Narendra
            1 hour ago










          • Your most welcome @Narendra
            – Ramkishan
            1 hour ago











          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%2f245185%2fmagento2-issues-in-default-enterprise-edition-rma-extension%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote



          accepted










          You can try this way if it works for you. Its just a fixed.



          1) Override module-rma/view/frontend/templates/form/renderer/select.phtml in your theme or module. add data-validate="required:true" for required attributes.



          select.phtml.



          <?php
          /**
          * Copyright © Magento, Inc. All rights reserved.
          * See COPYING.txt for license details.
          */

          // @codingStandardsIgnoreFile

          ?>
          <?php
          /**
          * Create account form template
          /* @var $block MagentoRmaBlockFormRendererSelect */
          $validate = ($block->isRequired()) ? 'data-validate="required:true"' : '';
          ?>
          <div class="field <?= $block->getHtmlId() ?><%- data._index_ %><?php if ($block->isRequired())
          echo ' required' ?>">
          <label for="items:<?= $block->getHtmlId() ?><%- data._index_ %>" class="label"><span><?= /* @escapeNotVerified */ $block->getLabel() ?></span></label>
          <div class="control">
          <select id="items:<?= $block->getHtmlId() ?><%- data._index_ %>" name="items[<%- data._index_ %>][<?= /* @escapeNotVerified */ $block->getFieldName() ?>]"<?php if ($block->getFieldName() == 'reason'): ?> data-args='"index":<%- data._index_ %>' <?php endif;
          ?> <?=$validate?> >
          <?php foreach ($block->getOptions() as $option):?>
          <option value="<?= /* @escapeNotVerified */ $option['value'] ?>"<?php if ($option['value'] == $block->getValue()):?> selected="selected"<?php endif;?>><?= $block->escapeHtml($option['label']) ?></option>
          <?php endforeach;?>
          <?php if ($block->getFieldName() == 'reason'): ?>
          <?php $attribute = $block->getAttribute('reason_other'); ?>
          <?php if ($attribute): ?>
          <option value="other"<?php if ($option['value'] == 'other'):?> selected="selected"<?php endif;?>><?= $block->escapeHtml($attribute->getStoreLabel()) ?></option>
          <?php endif; ?>
          <?php endif; ?>
          </select>
          </div>
          </div>


          2) For second issue please add below html before fieldset ends in create.phtml.



          <div class="actions-toolbar text-right">
          <div class="secondary" id="delete<%- data._index_ %>">
          <button type="button" class="action remove delete"><span><?= /* @escapeNotVerified */ __('Remove') ?></span></button>
          </div>
          </div>


          3) For third issue I think if point 1 resolved from this fix then you won't face this issue anymore.



          I hope it will work for you, Let me know if you face any further issue from these fixes.






          share|improve this answer






















          • Thanks a lot Ramkishan.
            – Narendra
            1 hour ago










          • Your most welcome @Narendra
            – Ramkishan
            1 hour ago















          up vote
          2
          down vote



          accepted










          You can try this way if it works for you. Its just a fixed.



          1) Override module-rma/view/frontend/templates/form/renderer/select.phtml in your theme or module. add data-validate="required:true" for required attributes.



          select.phtml.



          <?php
          /**
          * Copyright © Magento, Inc. All rights reserved.
          * See COPYING.txt for license details.
          */

          // @codingStandardsIgnoreFile

          ?>
          <?php
          /**
          * Create account form template
          /* @var $block MagentoRmaBlockFormRendererSelect */
          $validate = ($block->isRequired()) ? 'data-validate="required:true"' : '';
          ?>
          <div class="field <?= $block->getHtmlId() ?><%- data._index_ %><?php if ($block->isRequired())
          echo ' required' ?>">
          <label for="items:<?= $block->getHtmlId() ?><%- data._index_ %>" class="label"><span><?= /* @escapeNotVerified */ $block->getLabel() ?></span></label>
          <div class="control">
          <select id="items:<?= $block->getHtmlId() ?><%- data._index_ %>" name="items[<%- data._index_ %>][<?= /* @escapeNotVerified */ $block->getFieldName() ?>]"<?php if ($block->getFieldName() == 'reason'): ?> data-args='"index":<%- data._index_ %>' <?php endif;
          ?> <?=$validate?> >
          <?php foreach ($block->getOptions() as $option):?>
          <option value="<?= /* @escapeNotVerified */ $option['value'] ?>"<?php if ($option['value'] == $block->getValue()):?> selected="selected"<?php endif;?>><?= $block->escapeHtml($option['label']) ?></option>
          <?php endforeach;?>
          <?php if ($block->getFieldName() == 'reason'): ?>
          <?php $attribute = $block->getAttribute('reason_other'); ?>
          <?php if ($attribute): ?>
          <option value="other"<?php if ($option['value'] == 'other'):?> selected="selected"<?php endif;?>><?= $block->escapeHtml($attribute->getStoreLabel()) ?></option>
          <?php endif; ?>
          <?php endif; ?>
          </select>
          </div>
          </div>


          2) For second issue please add below html before fieldset ends in create.phtml.



          <div class="actions-toolbar text-right">
          <div class="secondary" id="delete<%- data._index_ %>">
          <button type="button" class="action remove delete"><span><?= /* @escapeNotVerified */ __('Remove') ?></span></button>
          </div>
          </div>


          3) For third issue I think if point 1 resolved from this fix then you won't face this issue anymore.



          I hope it will work for you, Let me know if you face any further issue from these fixes.






          share|improve this answer






















          • Thanks a lot Ramkishan.
            – Narendra
            1 hour ago










          • Your most welcome @Narendra
            – Ramkishan
            1 hour ago













          up vote
          2
          down vote



          accepted







          up vote
          2
          down vote



          accepted






          You can try this way if it works for you. Its just a fixed.



          1) Override module-rma/view/frontend/templates/form/renderer/select.phtml in your theme or module. add data-validate="required:true" for required attributes.



          select.phtml.



          <?php
          /**
          * Copyright © Magento, Inc. All rights reserved.
          * See COPYING.txt for license details.
          */

          // @codingStandardsIgnoreFile

          ?>
          <?php
          /**
          * Create account form template
          /* @var $block MagentoRmaBlockFormRendererSelect */
          $validate = ($block->isRequired()) ? 'data-validate="required:true"' : '';
          ?>
          <div class="field <?= $block->getHtmlId() ?><%- data._index_ %><?php if ($block->isRequired())
          echo ' required' ?>">
          <label for="items:<?= $block->getHtmlId() ?><%- data._index_ %>" class="label"><span><?= /* @escapeNotVerified */ $block->getLabel() ?></span></label>
          <div class="control">
          <select id="items:<?= $block->getHtmlId() ?><%- data._index_ %>" name="items[<%- data._index_ %>][<?= /* @escapeNotVerified */ $block->getFieldName() ?>]"<?php if ($block->getFieldName() == 'reason'): ?> data-args='"index":<%- data._index_ %>' <?php endif;
          ?> <?=$validate?> >
          <?php foreach ($block->getOptions() as $option):?>
          <option value="<?= /* @escapeNotVerified */ $option['value'] ?>"<?php if ($option['value'] == $block->getValue()):?> selected="selected"<?php endif;?>><?= $block->escapeHtml($option['label']) ?></option>
          <?php endforeach;?>
          <?php if ($block->getFieldName() == 'reason'): ?>
          <?php $attribute = $block->getAttribute('reason_other'); ?>
          <?php if ($attribute): ?>
          <option value="other"<?php if ($option['value'] == 'other'):?> selected="selected"<?php endif;?>><?= $block->escapeHtml($attribute->getStoreLabel()) ?></option>
          <?php endif; ?>
          <?php endif; ?>
          </select>
          </div>
          </div>


          2) For second issue please add below html before fieldset ends in create.phtml.



          <div class="actions-toolbar text-right">
          <div class="secondary" id="delete<%- data._index_ %>">
          <button type="button" class="action remove delete"><span><?= /* @escapeNotVerified */ __('Remove') ?></span></button>
          </div>
          </div>


          3) For third issue I think if point 1 resolved from this fix then you won't face this issue anymore.



          I hope it will work for you, Let me know if you face any further issue from these fixes.






          share|improve this answer














          You can try this way if it works for you. Its just a fixed.



          1) Override module-rma/view/frontend/templates/form/renderer/select.phtml in your theme or module. add data-validate="required:true" for required attributes.



          select.phtml.



          <?php
          /**
          * Copyright © Magento, Inc. All rights reserved.
          * See COPYING.txt for license details.
          */

          // @codingStandardsIgnoreFile

          ?>
          <?php
          /**
          * Create account form template
          /* @var $block MagentoRmaBlockFormRendererSelect */
          $validate = ($block->isRequired()) ? 'data-validate="required:true"' : '';
          ?>
          <div class="field <?= $block->getHtmlId() ?><%- data._index_ %><?php if ($block->isRequired())
          echo ' required' ?>">
          <label for="items:<?= $block->getHtmlId() ?><%- data._index_ %>" class="label"><span><?= /* @escapeNotVerified */ $block->getLabel() ?></span></label>
          <div class="control">
          <select id="items:<?= $block->getHtmlId() ?><%- data._index_ %>" name="items[<%- data._index_ %>][<?= /* @escapeNotVerified */ $block->getFieldName() ?>]"<?php if ($block->getFieldName() == 'reason'): ?> data-args='"index":<%- data._index_ %>' <?php endif;
          ?> <?=$validate?> >
          <?php foreach ($block->getOptions() as $option):?>
          <option value="<?= /* @escapeNotVerified */ $option['value'] ?>"<?php if ($option['value'] == $block->getValue()):?> selected="selected"<?php endif;?>><?= $block->escapeHtml($option['label']) ?></option>
          <?php endforeach;?>
          <?php if ($block->getFieldName() == 'reason'): ?>
          <?php $attribute = $block->getAttribute('reason_other'); ?>
          <?php if ($attribute): ?>
          <option value="other"<?php if ($option['value'] == 'other'):?> selected="selected"<?php endif;?>><?= $block->escapeHtml($attribute->getStoreLabel()) ?></option>
          <?php endif; ?>
          <?php endif; ?>
          </select>
          </div>
          </div>


          2) For second issue please add below html before fieldset ends in create.phtml.



          <div class="actions-toolbar text-right">
          <div class="secondary" id="delete<%- data._index_ %>">
          <button type="button" class="action remove delete"><span><?= /* @escapeNotVerified */ __('Remove') ?></span></button>
          </div>
          </div>


          3) For third issue I think if point 1 resolved from this fix then you won't face this issue anymore.



          I hope it will work for you, Let me know if you face any further issue from these fixes.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 6 mins ago

























          answered 2 hours ago









          Ramkishan

          7861628




          7861628











          • Thanks a lot Ramkishan.
            – Narendra
            1 hour ago










          • Your most welcome @Narendra
            – Ramkishan
            1 hour ago

















          • Thanks a lot Ramkishan.
            – Narendra
            1 hour ago










          • Your most welcome @Narendra
            – Ramkishan
            1 hour ago
















          Thanks a lot Ramkishan.
          – Narendra
          1 hour ago




          Thanks a lot Ramkishan.
          – Narendra
          1 hour ago












          Your most welcome @Narendra
          – Ramkishan
          1 hour ago





          Your most welcome @Narendra
          – Ramkishan
          1 hour ago


















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f245185%2fmagento2-issues-in-default-enterprise-edition-rma-extension%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          What does second last employer means? [closed]

          List of Gilmore Girls characters

          Confectionery