Magento Add to Cart Button Change to Add to Quote on some productsWhen to add custom data to quote?Add out of stock product to quoteRetrieve Quote Item ID after added to the cartMagento: Quote vs CartMagento 2 add multiple products to quoteMagento : Add Info Buy Request Option to Quote ItemHow to add custom option in quote or order itemCancelling a MagentoQuoteModelQuote instance: Magento 2Apply different shipping methods to each item in cart and get total shipping amount in magento 2Magento 2.3 - Add product to cart issue with store view

Why does Async/Await work properly when the loop is inside the async function and not the other way around?

If a character with the Alert feat rolls a crit fail on their Perception check, are they surprised?

Freedom of speech and where it applies

Should spaces be used when writing foreign names in katakana?

Python script not running correctly when launched with crontab

How much character growth crosses the line into breaking the character

Why has "pence" been used in this sentence, not "pences"?

Varistor? Purpose and principle

We have a love-hate relationship

Did US corporations pay demonstrators in the German demonstrations against article 13?

Should I install hardwood flooring or cabinets first?

Can the Supreme Court overturn an impeachment?

Journal losing indexing services

What major Native American tribes were around Santa Fe during the late 1850s?

Should I stop contributing to retirement accounts?

Gibbs free energy in standard state vs. equilibrium

What is the gram­mat­i­cal term for “‑ed” words like these?

Do Legal Documents Require Signing In Standard Pen Colors?

Extending the spectral theorem for bounded self adjoint operators to bounded normal operators

Is Asuka Langley-Soryu disgusted by Shinji?

Fuse symbol on toroidal transformer

Do the concepts of IP address and network interface not belong to the same layer?

Can we have a perfect cadence in a minor key?

How should I respond when I lied about my education and the company finds out through background check?



Magento Add to Cart Button Change to Add to Quote on some products


When to add custom data to quote?Add out of stock product to quoteRetrieve Quote Item ID after added to the cartMagento: Quote vs CartMagento 2 add multiple products to quoteMagento : Add Info Buy Request Option to Quote ItemHow to add custom option in quote or order itemCancelling a MagentoQuoteModelQuote instance: Magento 2Apply different shipping methods to each item in cart and get total shipping amount in magento 2Magento 2.3 - Add product to cart issue with store view













0















Any information on adding "Add to Quote" option in Magento2 website .. for bulk order is highly appreciated.










share|improve this question
























  • Can you please add some more details about your question.Do you just want to change the label of the button or any other functionality?

    – Knight017
    yesterday











  • yes only label on specefic products. and on which quote is written there will be inquery box not purchase..

    – Aadii Mughal
    yesterday















0















Any information on adding "Add to Quote" option in Magento2 website .. for bulk order is highly appreciated.










share|improve this question
























  • Can you please add some more details about your question.Do you just want to change the label of the button or any other functionality?

    – Knight017
    yesterday











  • yes only label on specefic products. and on which quote is written there will be inquery box not purchase..

    – Aadii Mughal
    yesterday













0












0








0








Any information on adding "Add to Quote" option in Magento2 website .. for bulk order is highly appreciated.










share|improve this question
















Any information on adding "Add to Quote" option in Magento2 website .. for bulk order is highly appreciated.







magento2 quote






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited yesterday









ABHISHEK TRIPATHI

1,9741726




1,9741726










asked yesterday









Aadii MughalAadii Mughal

457




457












  • Can you please add some more details about your question.Do you just want to change the label of the button or any other functionality?

    – Knight017
    yesterday











  • yes only label on specefic products. and on which quote is written there will be inquery box not purchase..

    – Aadii Mughal
    yesterday

















  • Can you please add some more details about your question.Do you just want to change the label of the button or any other functionality?

    – Knight017
    yesterday











  • yes only label on specefic products. and on which quote is written there will be inquery box not purchase..

    – Aadii Mughal
    yesterday
















Can you please add some more details about your question.Do you just want to change the label of the button or any other functionality?

– Knight017
yesterday





Can you please add some more details about your question.Do you just want to change the label of the button or any other functionality?

– Knight017
yesterday













yes only label on specefic products. and on which quote is written there will be inquery box not purchase..

– Aadii Mughal
yesterday





yes only label on specefic products. and on which quote is written there will be inquery box not purchase..

– Aadii Mughal
yesterday










2 Answers
2






active

oldest

votes


















0














Usually that's a B2B functionality (wont be easily). You will need to add a button beside add to cart, or add a check in attribute level that product is for add to cart or add to quote.



Then after add to quote send ajax to custom controller, and this will add it in customer session. And at the end create a form to send all products added in quote.



You can also use some pre-developed modules like:



https://marketplace.magento.com/cart2quote-module-not2order.html



https://marketplace.magento.com/cart2quote-module-propoza.html






share|improve this answer






























    0














    If you're only trying to change the label for the button the below will work just fine. If you need to change the actual functionality of the button then that'll take a bit more effort.



    So you're best bet is to probably create a custom attribute, let's call it quote_item, and set it to true on the products you want to display "Add to Quote" for.



    Then create a new file at app/design/frontend/<Theme Vendor>/<Theme Name>/Magento_Catalog/templates/product/view/addtocart.phtml



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

    // @codingStandardsIgnoreFile

    /** @var $block MagentoCatalogBlockProductView */
    ?>
    <?php $_product = $block->getProduct(); ?>
    <?php if($_product->getData('quote_item')):?>
    <?php $buttonTitle = __('Add to Quote');?>
    <?php else:?>
    <?php $buttonTitle = __('Add to Cart'); ?>
    <?php endif;?>
    <?php if ($_product->isSaleable()): ?>
    <div class="box-tocart">
    <div class="fieldset">
    <?php if ($block->shouldRenderQuantity()): ?>
    <div class="field qty">
    <label class="label" for="qty"><span><?= /* @escapeNotVerified */ __('Qty') ?></span></label>
    <div class="control">
    <input type="number"
    name="qty"
    id="qty"
    value="<?= /* @escapeNotVerified */ $block->getProductDefaultQty() * 1 ?>"
    title="<?= /* @escapeNotVerified */ __('Qty') ?>"
    class="input-text qty"
    data-validate="<?= $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"
    />
    </div>
    </div>
    <?php endif; ?>
    <div class="actions">
    <button type="submit"
    title="<?= /* @escapeNotVerified */ $buttonTitle ?>"
    class="action primary tocart"
    id="product-addtocart-button">
    <span><?= /* @escapeNotVerified */ $buttonTitle ?></span>
    </button>
    <?= $block->getChildHtml('', true) ?>
    </div>
    </div>
    </div>
    <?php endif; ?>
    <script type="text/x-magento-init">

    "#product_addtocart_form":
    "Magento_Catalog/js/validate-product":


    </script>





    share|improve this answer








    New contributor




    NSwanson7 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.



















      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%2f267089%2fmagento-add-to-cart-button-change-to-add-to-quote-on-some-products%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      Usually that's a B2B functionality (wont be easily). You will need to add a button beside add to cart, or add a check in attribute level that product is for add to cart or add to quote.



      Then after add to quote send ajax to custom controller, and this will add it in customer session. And at the end create a form to send all products added in quote.



      You can also use some pre-developed modules like:



      https://marketplace.magento.com/cart2quote-module-not2order.html



      https://marketplace.magento.com/cart2quote-module-propoza.html






      share|improve this answer



























        0














        Usually that's a B2B functionality (wont be easily). You will need to add a button beside add to cart, or add a check in attribute level that product is for add to cart or add to quote.



        Then after add to quote send ajax to custom controller, and this will add it in customer session. And at the end create a form to send all products added in quote.



        You can also use some pre-developed modules like:



        https://marketplace.magento.com/cart2quote-module-not2order.html



        https://marketplace.magento.com/cart2quote-module-propoza.html






        share|improve this answer

























          0












          0








          0







          Usually that's a B2B functionality (wont be easily). You will need to add a button beside add to cart, or add a check in attribute level that product is for add to cart or add to quote.



          Then after add to quote send ajax to custom controller, and this will add it in customer session. And at the end create a form to send all products added in quote.



          You can also use some pre-developed modules like:



          https://marketplace.magento.com/cart2quote-module-not2order.html



          https://marketplace.magento.com/cart2quote-module-propoza.html






          share|improve this answer













          Usually that's a B2B functionality (wont be easily). You will need to add a button beside add to cart, or add a check in attribute level that product is for add to cart or add to quote.



          Then after add to quote send ajax to custom controller, and this will add it in customer session. And at the end create a form to send all products added in quote.



          You can also use some pre-developed modules like:



          https://marketplace.magento.com/cart2quote-module-not2order.html



          https://marketplace.magento.com/cart2quote-module-propoza.html







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 17 hours ago









          Shoaib MunirShoaib Munir

          2,2231828




          2,2231828























              0














              If you're only trying to change the label for the button the below will work just fine. If you need to change the actual functionality of the button then that'll take a bit more effort.



              So you're best bet is to probably create a custom attribute, let's call it quote_item, and set it to true on the products you want to display "Add to Quote" for.



              Then create a new file at app/design/frontend/<Theme Vendor>/<Theme Name>/Magento_Catalog/templates/product/view/addtocart.phtml



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

              // @codingStandardsIgnoreFile

              /** @var $block MagentoCatalogBlockProductView */
              ?>
              <?php $_product = $block->getProduct(); ?>
              <?php if($_product->getData('quote_item')):?>
              <?php $buttonTitle = __('Add to Quote');?>
              <?php else:?>
              <?php $buttonTitle = __('Add to Cart'); ?>
              <?php endif;?>
              <?php if ($_product->isSaleable()): ?>
              <div class="box-tocart">
              <div class="fieldset">
              <?php if ($block->shouldRenderQuantity()): ?>
              <div class="field qty">
              <label class="label" for="qty"><span><?= /* @escapeNotVerified */ __('Qty') ?></span></label>
              <div class="control">
              <input type="number"
              name="qty"
              id="qty"
              value="<?= /* @escapeNotVerified */ $block->getProductDefaultQty() * 1 ?>"
              title="<?= /* @escapeNotVerified */ __('Qty') ?>"
              class="input-text qty"
              data-validate="<?= $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"
              />
              </div>
              </div>
              <?php endif; ?>
              <div class="actions">
              <button type="submit"
              title="<?= /* @escapeNotVerified */ $buttonTitle ?>"
              class="action primary tocart"
              id="product-addtocart-button">
              <span><?= /* @escapeNotVerified */ $buttonTitle ?></span>
              </button>
              <?= $block->getChildHtml('', true) ?>
              </div>
              </div>
              </div>
              <?php endif; ?>
              <script type="text/x-magento-init">

              "#product_addtocart_form":
              "Magento_Catalog/js/validate-product":


              </script>





              share|improve this answer








              New contributor




              NSwanson7 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.
























                0














                If you're only trying to change the label for the button the below will work just fine. If you need to change the actual functionality of the button then that'll take a bit more effort.



                So you're best bet is to probably create a custom attribute, let's call it quote_item, and set it to true on the products you want to display "Add to Quote" for.



                Then create a new file at app/design/frontend/<Theme Vendor>/<Theme Name>/Magento_Catalog/templates/product/view/addtocart.phtml



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

                // @codingStandardsIgnoreFile

                /** @var $block MagentoCatalogBlockProductView */
                ?>
                <?php $_product = $block->getProduct(); ?>
                <?php if($_product->getData('quote_item')):?>
                <?php $buttonTitle = __('Add to Quote');?>
                <?php else:?>
                <?php $buttonTitle = __('Add to Cart'); ?>
                <?php endif;?>
                <?php if ($_product->isSaleable()): ?>
                <div class="box-tocart">
                <div class="fieldset">
                <?php if ($block->shouldRenderQuantity()): ?>
                <div class="field qty">
                <label class="label" for="qty"><span><?= /* @escapeNotVerified */ __('Qty') ?></span></label>
                <div class="control">
                <input type="number"
                name="qty"
                id="qty"
                value="<?= /* @escapeNotVerified */ $block->getProductDefaultQty() * 1 ?>"
                title="<?= /* @escapeNotVerified */ __('Qty') ?>"
                class="input-text qty"
                data-validate="<?= $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"
                />
                </div>
                </div>
                <?php endif; ?>
                <div class="actions">
                <button type="submit"
                title="<?= /* @escapeNotVerified */ $buttonTitle ?>"
                class="action primary tocart"
                id="product-addtocart-button">
                <span><?= /* @escapeNotVerified */ $buttonTitle ?></span>
                </button>
                <?= $block->getChildHtml('', true) ?>
                </div>
                </div>
                </div>
                <?php endif; ?>
                <script type="text/x-magento-init">

                "#product_addtocart_form":
                "Magento_Catalog/js/validate-product":


                </script>





                share|improve this answer








                New contributor




                NSwanson7 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






















                  0












                  0








                  0







                  If you're only trying to change the label for the button the below will work just fine. If you need to change the actual functionality of the button then that'll take a bit more effort.



                  So you're best bet is to probably create a custom attribute, let's call it quote_item, and set it to true on the products you want to display "Add to Quote" for.



                  Then create a new file at app/design/frontend/<Theme Vendor>/<Theme Name>/Magento_Catalog/templates/product/view/addtocart.phtml



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

                  // @codingStandardsIgnoreFile

                  /** @var $block MagentoCatalogBlockProductView */
                  ?>
                  <?php $_product = $block->getProduct(); ?>
                  <?php if($_product->getData('quote_item')):?>
                  <?php $buttonTitle = __('Add to Quote');?>
                  <?php else:?>
                  <?php $buttonTitle = __('Add to Cart'); ?>
                  <?php endif;?>
                  <?php if ($_product->isSaleable()): ?>
                  <div class="box-tocart">
                  <div class="fieldset">
                  <?php if ($block->shouldRenderQuantity()): ?>
                  <div class="field qty">
                  <label class="label" for="qty"><span><?= /* @escapeNotVerified */ __('Qty') ?></span></label>
                  <div class="control">
                  <input type="number"
                  name="qty"
                  id="qty"
                  value="<?= /* @escapeNotVerified */ $block->getProductDefaultQty() * 1 ?>"
                  title="<?= /* @escapeNotVerified */ __('Qty') ?>"
                  class="input-text qty"
                  data-validate="<?= $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"
                  />
                  </div>
                  </div>
                  <?php endif; ?>
                  <div class="actions">
                  <button type="submit"
                  title="<?= /* @escapeNotVerified */ $buttonTitle ?>"
                  class="action primary tocart"
                  id="product-addtocart-button">
                  <span><?= /* @escapeNotVerified */ $buttonTitle ?></span>
                  </button>
                  <?= $block->getChildHtml('', true) ?>
                  </div>
                  </div>
                  </div>
                  <?php endif; ?>
                  <script type="text/x-magento-init">

                  "#product_addtocart_form":
                  "Magento_Catalog/js/validate-product":


                  </script>





                  share|improve this answer








                  New contributor




                  NSwanson7 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.










                  If you're only trying to change the label for the button the below will work just fine. If you need to change the actual functionality of the button then that'll take a bit more effort.



                  So you're best bet is to probably create a custom attribute, let's call it quote_item, and set it to true on the products you want to display "Add to Quote" for.



                  Then create a new file at app/design/frontend/<Theme Vendor>/<Theme Name>/Magento_Catalog/templates/product/view/addtocart.phtml



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

                  // @codingStandardsIgnoreFile

                  /** @var $block MagentoCatalogBlockProductView */
                  ?>
                  <?php $_product = $block->getProduct(); ?>
                  <?php if($_product->getData('quote_item')):?>
                  <?php $buttonTitle = __('Add to Quote');?>
                  <?php else:?>
                  <?php $buttonTitle = __('Add to Cart'); ?>
                  <?php endif;?>
                  <?php if ($_product->isSaleable()): ?>
                  <div class="box-tocart">
                  <div class="fieldset">
                  <?php if ($block->shouldRenderQuantity()): ?>
                  <div class="field qty">
                  <label class="label" for="qty"><span><?= /* @escapeNotVerified */ __('Qty') ?></span></label>
                  <div class="control">
                  <input type="number"
                  name="qty"
                  id="qty"
                  value="<?= /* @escapeNotVerified */ $block->getProductDefaultQty() * 1 ?>"
                  title="<?= /* @escapeNotVerified */ __('Qty') ?>"
                  class="input-text qty"
                  data-validate="<?= $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"
                  />
                  </div>
                  </div>
                  <?php endif; ?>
                  <div class="actions">
                  <button type="submit"
                  title="<?= /* @escapeNotVerified */ $buttonTitle ?>"
                  class="action primary tocart"
                  id="product-addtocart-button">
                  <span><?= /* @escapeNotVerified */ $buttonTitle ?></span>
                  </button>
                  <?= $block->getChildHtml('', true) ?>
                  </div>
                  </div>
                  </div>
                  <?php endif; ?>
                  <script type="text/x-magento-init">

                  "#product_addtocart_form":
                  "Magento_Catalog/js/validate-product":


                  </script>






                  share|improve this answer








                  New contributor




                  NSwanson7 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  share|improve this answer



                  share|improve this answer






                  New contributor




                  NSwanson7 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  answered 17 hours ago









                  NSwanson7NSwanson7

                  112




                  112




                  New contributor




                  NSwanson7 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.





                  New contributor





                  NSwanson7 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






                  NSwanson7 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.



























                      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%2f267089%2fmagento-add-to-cart-button-change-to-add-to-quote-on-some-products%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

                      Bulk add to cart function issuecart vs. mini cart issue … rwd themeRedirect Add to cart button to cart pageAdd to cart issue - Magento 2.1The requested Payment Method is not available When creating an orderM2: reason add-to-cart might not function in production modeAdd to cart issue in some android devicesMagento 2 - custom price can not add to subtotal and grand total after add to cartAdd to cart codeIssue with my cart module on pdp and cart pages, just keeps spinningBulk price and quantity update using rest api

                      БиармияSxpst500bh2ntaf! 3h2r