magento 2 what is quote_shipping_rate table












0














What is quote_shipping_rate table and how we can add item?





I know by getShippingRatesCollection i can get the collection of saved rate into the table but I can not find how Magento or another Module add an item into this table










share|improve this question





























    0














    What is quote_shipping_rate table and how we can add item?





    I know by getShippingRatesCollection i can get the collection of saved rate into the table but I can not find how Magento or another Module add an item into this table










    share|improve this question



























      0












      0








      0







      What is quote_shipping_rate table and how we can add item?





      I know by getShippingRatesCollection i can get the collection of saved rate into the table but I can not find how Magento or another Module add an item into this table










      share|improve this question















      What is quote_shipping_rate table and how we can add item?





      I know by getShippingRatesCollection i can get the collection of saved rate into the table but I can not find how Magento or another Module add an item into this table







      magento2






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited yesterday







      gh darvishani

















      asked yesterday









      gh darvishanigh darvishani

      288215




      288215






















          2 Answers
          2






          active

          oldest

          votes


















          1














          quote_shipping_rate table stores the shipping information that has been associated with the quote and address.

          Entries in this table are added/updated when you add/update shipping method during the checkout process.
          UPDATE
          Though, I am not 100% sure but it is method saveAddressInformation in file/class vendor/magento/module-checkout/Model/ShippingInformationManagement.php which is responsible for updating the table.






          share|improve this answer























          • yeah i know but which class set item into this table ?
            – gh darvishani
            yesterday










          • Updated the answer.
            – Anshu Mishra
            yesterday










          • thanks...i will check it
            – gh darvishani
            yesterday



















          1














          Magento stores the selected shipping method details in quote_shipping_rate with the foreign key of address_id from the quote.



          Magento adding/updating the entry in a table from the importShippingRate() method MagentoQuoteModelQuoteAddressRate class and generally it update/add entry while calling collectShippingRates() method from the MagentoQuoteModelQuoteAddress



          EDIT



          You can see new entry if your quote is fresh otherwise you will see only changes in rate_id. If you want to see new entry then please check with fresh quote/new customer/or placed order with current quote and check



          If you want to watch the entry in the quote_shipping_rate please open your database (Ex. phpMyAdmin) and your Magento 2 frontend. On the Magento 2 frontend add the product into the cart and go to the checkout page and select the shipping method and check quote_shipping_rate method you will see the new entry with your selected shipping method.






          share|improve this answer























          • i change my cart to use magento api and i check as you tell me . i see result on database is fixed just rate id has been changed . so i do not know how is help me to find where magento add items
            – gh darvishani
            yesterday










          • Yes, because your current quote is already active that's why it update the entry. If you want to see new entry then please check with new customer or with fresh quote you will see new entry. @ghdarvishani
            – Keyur Shah
            yesterday










          • Check my edit :) @ghdarvishani
            – Keyur Shah
            yesterday










          • you are right Mr Shah . i found if some rate are available then magento put it on database . this is part of my code that i think saved the rates paste.ubuntu.ir/psqv . in my code rate are get before they saved . how it can impossible ?
            – gh darvishani
            yesterday












          • I think it is a different question than this one I gave the answer for your current question so If you have a new question please shoot new question.
            – Keyur Shah
            yesterday











          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%2f257119%2fmagento-2-what-is-quote-shipping-rate-table%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









          1














          quote_shipping_rate table stores the shipping information that has been associated with the quote and address.

          Entries in this table are added/updated when you add/update shipping method during the checkout process.
          UPDATE
          Though, I am not 100% sure but it is method saveAddressInformation in file/class vendor/magento/module-checkout/Model/ShippingInformationManagement.php which is responsible for updating the table.






          share|improve this answer























          • yeah i know but which class set item into this table ?
            – gh darvishani
            yesterday










          • Updated the answer.
            – Anshu Mishra
            yesterday










          • thanks...i will check it
            – gh darvishani
            yesterday
















          1














          quote_shipping_rate table stores the shipping information that has been associated with the quote and address.

          Entries in this table are added/updated when you add/update shipping method during the checkout process.
          UPDATE
          Though, I am not 100% sure but it is method saveAddressInformation in file/class vendor/magento/module-checkout/Model/ShippingInformationManagement.php which is responsible for updating the table.






          share|improve this answer























          • yeah i know but which class set item into this table ?
            – gh darvishani
            yesterday










          • Updated the answer.
            – Anshu Mishra
            yesterday










          • thanks...i will check it
            – gh darvishani
            yesterday














          1












          1








          1






          quote_shipping_rate table stores the shipping information that has been associated with the quote and address.

          Entries in this table are added/updated when you add/update shipping method during the checkout process.
          UPDATE
          Though, I am not 100% sure but it is method saveAddressInformation in file/class vendor/magento/module-checkout/Model/ShippingInformationManagement.php which is responsible for updating the table.






          share|improve this answer














          quote_shipping_rate table stores the shipping information that has been associated with the quote and address.

          Entries in this table are added/updated when you add/update shipping method during the checkout process.
          UPDATE
          Though, I am not 100% sure but it is method saveAddressInformation in file/class vendor/magento/module-checkout/Model/ShippingInformationManagement.php which is responsible for updating the table.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited yesterday

























          answered yesterday









          Anshu MishraAnshu Mishra

          5,12542657




          5,12542657












          • yeah i know but which class set item into this table ?
            – gh darvishani
            yesterday










          • Updated the answer.
            – Anshu Mishra
            yesterday










          • thanks...i will check it
            – gh darvishani
            yesterday


















          • yeah i know but which class set item into this table ?
            – gh darvishani
            yesterday










          • Updated the answer.
            – Anshu Mishra
            yesterday










          • thanks...i will check it
            – gh darvishani
            yesterday
















          yeah i know but which class set item into this table ?
          – gh darvishani
          yesterday




          yeah i know but which class set item into this table ?
          – gh darvishani
          yesterday












          Updated the answer.
          – Anshu Mishra
          yesterday




          Updated the answer.
          – Anshu Mishra
          yesterday












          thanks...i will check it
          – gh darvishani
          yesterday




          thanks...i will check it
          – gh darvishani
          yesterday













          1














          Magento stores the selected shipping method details in quote_shipping_rate with the foreign key of address_id from the quote.



          Magento adding/updating the entry in a table from the importShippingRate() method MagentoQuoteModelQuoteAddressRate class and generally it update/add entry while calling collectShippingRates() method from the MagentoQuoteModelQuoteAddress



          EDIT



          You can see new entry if your quote is fresh otherwise you will see only changes in rate_id. If you want to see new entry then please check with fresh quote/new customer/or placed order with current quote and check



          If you want to watch the entry in the quote_shipping_rate please open your database (Ex. phpMyAdmin) and your Magento 2 frontend. On the Magento 2 frontend add the product into the cart and go to the checkout page and select the shipping method and check quote_shipping_rate method you will see the new entry with your selected shipping method.






          share|improve this answer























          • i change my cart to use magento api and i check as you tell me . i see result on database is fixed just rate id has been changed . so i do not know how is help me to find where magento add items
            – gh darvishani
            yesterday










          • Yes, because your current quote is already active that's why it update the entry. If you want to see new entry then please check with new customer or with fresh quote you will see new entry. @ghdarvishani
            – Keyur Shah
            yesterday










          • Check my edit :) @ghdarvishani
            – Keyur Shah
            yesterday










          • you are right Mr Shah . i found if some rate are available then magento put it on database . this is part of my code that i think saved the rates paste.ubuntu.ir/psqv . in my code rate are get before they saved . how it can impossible ?
            – gh darvishani
            yesterday












          • I think it is a different question than this one I gave the answer for your current question so If you have a new question please shoot new question.
            – Keyur Shah
            yesterday
















          1














          Magento stores the selected shipping method details in quote_shipping_rate with the foreign key of address_id from the quote.



          Magento adding/updating the entry in a table from the importShippingRate() method MagentoQuoteModelQuoteAddressRate class and generally it update/add entry while calling collectShippingRates() method from the MagentoQuoteModelQuoteAddress



          EDIT



          You can see new entry if your quote is fresh otherwise you will see only changes in rate_id. If you want to see new entry then please check with fresh quote/new customer/or placed order with current quote and check



          If you want to watch the entry in the quote_shipping_rate please open your database (Ex. phpMyAdmin) and your Magento 2 frontend. On the Magento 2 frontend add the product into the cart and go to the checkout page and select the shipping method and check quote_shipping_rate method you will see the new entry with your selected shipping method.






          share|improve this answer























          • i change my cart to use magento api and i check as you tell me . i see result on database is fixed just rate id has been changed . so i do not know how is help me to find where magento add items
            – gh darvishani
            yesterday










          • Yes, because your current quote is already active that's why it update the entry. If you want to see new entry then please check with new customer or with fresh quote you will see new entry. @ghdarvishani
            – Keyur Shah
            yesterday










          • Check my edit :) @ghdarvishani
            – Keyur Shah
            yesterday










          • you are right Mr Shah . i found if some rate are available then magento put it on database . this is part of my code that i think saved the rates paste.ubuntu.ir/psqv . in my code rate are get before they saved . how it can impossible ?
            – gh darvishani
            yesterday












          • I think it is a different question than this one I gave the answer for your current question so If you have a new question please shoot new question.
            – Keyur Shah
            yesterday














          1












          1








          1






          Magento stores the selected shipping method details in quote_shipping_rate with the foreign key of address_id from the quote.



          Magento adding/updating the entry in a table from the importShippingRate() method MagentoQuoteModelQuoteAddressRate class and generally it update/add entry while calling collectShippingRates() method from the MagentoQuoteModelQuoteAddress



          EDIT



          You can see new entry if your quote is fresh otherwise you will see only changes in rate_id. If you want to see new entry then please check with fresh quote/new customer/or placed order with current quote and check



          If you want to watch the entry in the quote_shipping_rate please open your database (Ex. phpMyAdmin) and your Magento 2 frontend. On the Magento 2 frontend add the product into the cart and go to the checkout page and select the shipping method and check quote_shipping_rate method you will see the new entry with your selected shipping method.






          share|improve this answer














          Magento stores the selected shipping method details in quote_shipping_rate with the foreign key of address_id from the quote.



          Magento adding/updating the entry in a table from the importShippingRate() method MagentoQuoteModelQuoteAddressRate class and generally it update/add entry while calling collectShippingRates() method from the MagentoQuoteModelQuoteAddress



          EDIT



          You can see new entry if your quote is fresh otherwise you will see only changes in rate_id. If you want to see new entry then please check with fresh quote/new customer/or placed order with current quote and check



          If you want to watch the entry in the quote_shipping_rate please open your database (Ex. phpMyAdmin) and your Magento 2 frontend. On the Magento 2 frontend add the product into the cart and go to the checkout page and select the shipping method and check quote_shipping_rate method you will see the new entry with your selected shipping method.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited yesterday

























          answered yesterday









          Keyur ShahKeyur Shah

          12.9k23764




          12.9k23764












          • i change my cart to use magento api and i check as you tell me . i see result on database is fixed just rate id has been changed . so i do not know how is help me to find where magento add items
            – gh darvishani
            yesterday










          • Yes, because your current quote is already active that's why it update the entry. If you want to see new entry then please check with new customer or with fresh quote you will see new entry. @ghdarvishani
            – Keyur Shah
            yesterday










          • Check my edit :) @ghdarvishani
            – Keyur Shah
            yesterday










          • you are right Mr Shah . i found if some rate are available then magento put it on database . this is part of my code that i think saved the rates paste.ubuntu.ir/psqv . in my code rate are get before they saved . how it can impossible ?
            – gh darvishani
            yesterday












          • I think it is a different question than this one I gave the answer for your current question so If you have a new question please shoot new question.
            – Keyur Shah
            yesterday


















          • i change my cart to use magento api and i check as you tell me . i see result on database is fixed just rate id has been changed . so i do not know how is help me to find where magento add items
            – gh darvishani
            yesterday










          • Yes, because your current quote is already active that's why it update the entry. If you want to see new entry then please check with new customer or with fresh quote you will see new entry. @ghdarvishani
            – Keyur Shah
            yesterday










          • Check my edit :) @ghdarvishani
            – Keyur Shah
            yesterday










          • you are right Mr Shah . i found if some rate are available then magento put it on database . this is part of my code that i think saved the rates paste.ubuntu.ir/psqv . in my code rate are get before they saved . how it can impossible ?
            – gh darvishani
            yesterday












          • I think it is a different question than this one I gave the answer for your current question so If you have a new question please shoot new question.
            – Keyur Shah
            yesterday
















          i change my cart to use magento api and i check as you tell me . i see result on database is fixed just rate id has been changed . so i do not know how is help me to find where magento add items
          – gh darvishani
          yesterday




          i change my cart to use magento api and i check as you tell me . i see result on database is fixed just rate id has been changed . so i do not know how is help me to find where magento add items
          – gh darvishani
          yesterday












          Yes, because your current quote is already active that's why it update the entry. If you want to see new entry then please check with new customer or with fresh quote you will see new entry. @ghdarvishani
          – Keyur Shah
          yesterday




          Yes, because your current quote is already active that's why it update the entry. If you want to see new entry then please check with new customer or with fresh quote you will see new entry. @ghdarvishani
          – Keyur Shah
          yesterday












          Check my edit :) @ghdarvishani
          – Keyur Shah
          yesterday




          Check my edit :) @ghdarvishani
          – Keyur Shah
          yesterday












          you are right Mr Shah . i found if some rate are available then magento put it on database . this is part of my code that i think saved the rates paste.ubuntu.ir/psqv . in my code rate are get before they saved . how it can impossible ?
          – gh darvishani
          yesterday






          you are right Mr Shah . i found if some rate are available then magento put it on database . this is part of my code that i think saved the rates paste.ubuntu.ir/psqv . in my code rate are get before they saved . how it can impossible ?
          – gh darvishani
          yesterday














          I think it is a different question than this one I gave the answer for your current question so If you have a new question please shoot new question.
          – Keyur Shah
          yesterday




          I think it is a different question than this one I gave the answer for your current question so If you have a new question please shoot new question.
          – Keyur Shah
          yesterday


















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2f257119%2fmagento-2-what-is-quote-shipping-rate-table%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

          1300-talet

          1300-talet

          Display a custom attribute below product name in the front-end Magento 1.9.3.8