Custom Shipping Method - Retrieve Shipping address in collectRatesCustom Shipping Method - Execute some code when the admin submit a shipmentCreate default billing/shipping addressMagento 2: DHL API Hong Kong Address Issue Due to Quote SessionMagento 2 add custom data to shipping methodHow to set a default value for the city field in checkout shipping address - magento 2Add field under billing-addressHow can I remove few states from shipping address drop-down but keep all on billing address drop-down on checkout and address forms?How to translate shipping method titlesPayment method in Checkout page issue in Magento 2.2.6Magento 2.3 : Shipping Address Form Inline During Checkout

5 band resistor. Red, orange, black, gold and black. It doesn't fit in to normal rules

What do I need to do, tax-wise, for a sudden windfall?

Is it true that "only photographers care about noise"?

Is Dumbledore a human lie detector?

Who is "He that flies" in Lord of the Rings?

How to Convert an Object into Array in magento 2

Does it make sense to use a wavelet that is equal to a sine of one period?

Print "N NE E SE S SW W NW"

How to handle when PCs taste a potion that is actually poison?

What to bootstrap for hypothesis testing

Why do the TIE Fighter pilot helmets have similar ridges as the rebels?

How can I find out about the game world without meta-influencing it?

How can you estimate a spike story?

Should I list a completely different profession in my technical resume?

My mom's return ticket is 3 days after I-94 expires

What does the homotopy coherent nerve do to spaces of enriched functors?

one-hot-encoding categorical data gives error

What is the logic behind charging tax _in the form of money_ for owning property when the property does not produce money?

Mathematica 12 has gotten worse at solving simple equations?

Why do Bhargava-Skinner-Zhang consider the ordering by height?

How (un)safe is it to ride barefoot?

Why can't we do three-way comparison in C++?

Why are Payments from Apple to New Zealand and Australian bank accounts wire transfers?

How to show a "node near coord" even when it is out of bounds (with clip = true)?



Custom Shipping Method - Retrieve Shipping address in collectRates


Custom Shipping Method - Execute some code when the admin submit a shipmentCreate default billing/shipping addressMagento 2: DHL API Hong Kong Address Issue Due to Quote SessionMagento 2 add custom data to shipping methodHow to set a default value for the city field in checkout shipping address - magento 2Add field under billing-addressHow can I remove few states from shipping address drop-down but keep all on billing address drop-down on checkout and address forms?How to translate shipping method titlesPayment method in Checkout page issue in Magento 2.2.6Magento 2.3 : Shipping Address Form Inline During Checkout






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I'm currently working on a custom shipping method for Magento 2 and I'm facing a problem : I don't know how to retrieve the shipping address.



I tried first with something like this in the collectRates method :



$city = $request->getDestCity();
$street = $request->getDestStreet();


But it didn't worked ($city and $street are empty).



That's strange because I don't have any issue whit the getDestPostcode() method.



Is there a another way to retrieve the shipping address ?



Thanks.










share|improve this question
























  • I think it might be a bug.

    – cdauphin
    Feb 29 '16 at 9:46











  • facing same issue need shipping address in collectRates

    – Pradeep Singh
    Apr 7 '16 at 7:26

















1















I'm currently working on a custom shipping method for Magento 2 and I'm facing a problem : I don't know how to retrieve the shipping address.



I tried first with something like this in the collectRates method :



$city = $request->getDestCity();
$street = $request->getDestStreet();


But it didn't worked ($city and $street are empty).



That's strange because I don't have any issue whit the getDestPostcode() method.



Is there a another way to retrieve the shipping address ?



Thanks.










share|improve this question
























  • I think it might be a bug.

    – cdauphin
    Feb 29 '16 at 9:46











  • facing same issue need shipping address in collectRates

    – Pradeep Singh
    Apr 7 '16 at 7:26













1












1








1








I'm currently working on a custom shipping method for Magento 2 and I'm facing a problem : I don't know how to retrieve the shipping address.



I tried first with something like this in the collectRates method :



$city = $request->getDestCity();
$street = $request->getDestStreet();


But it didn't worked ($city and $street are empty).



That's strange because I don't have any issue whit the getDestPostcode() method.



Is there a another way to retrieve the shipping address ?



Thanks.










share|improve this question
















I'm currently working on a custom shipping method for Magento 2 and I'm facing a problem : I don't know how to retrieve the shipping address.



I tried first with something like this in the collectRates method :



$city = $request->getDestCity();
$street = $request->getDestStreet();


But it didn't worked ($city and $street are empty).



That's strange because I don't have any issue whit the getDestPostcode() method.



Is there a another way to retrieve the shipping address ?



Thanks.







magento2






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 24 '16 at 15:31









Raphael at Digital Pianism

55.3k22128291




55.3k22128291










asked Feb 24 '16 at 15:30









cdauphincdauphin

306




306












  • I think it might be a bug.

    – cdauphin
    Feb 29 '16 at 9:46











  • facing same issue need shipping address in collectRates

    – Pradeep Singh
    Apr 7 '16 at 7:26

















  • I think it might be a bug.

    – cdauphin
    Feb 29 '16 at 9:46











  • facing same issue need shipping address in collectRates

    – Pradeep Singh
    Apr 7 '16 at 7:26
















I think it might be a bug.

– cdauphin
Feb 29 '16 at 9:46





I think it might be a bug.

– cdauphin
Feb 29 '16 at 9:46













facing same issue need shipping address in collectRates

– Pradeep Singh
Apr 7 '16 at 7:26





facing same issue need shipping address in collectRates

– Pradeep Singh
Apr 7 '16 at 7:26










1 Answer
1






active

oldest

votes


















0














This is a bug, see the following link on github:
issue 3789



Basically the additional address fields need to be added to the payload within:



module-checkout/view/frontend/web/model/js/shipping-rate-processor/new-address.js


Also, you'll need to create another serviceUrl that will call a function that will hold the full address payload and adds the full address to the request.






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%2f103305%2fcustom-shipping-method-retrieve-shipping-address-in-collectrates%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














    This is a bug, see the following link on github:
    issue 3789



    Basically the additional address fields need to be added to the payload within:



    module-checkout/view/frontend/web/model/js/shipping-rate-processor/new-address.js


    Also, you'll need to create another serviceUrl that will call a function that will hold the full address payload and adds the full address to the request.






    share|improve this answer





























      0














      This is a bug, see the following link on github:
      issue 3789



      Basically the additional address fields need to be added to the payload within:



      module-checkout/view/frontend/web/model/js/shipping-rate-processor/new-address.js


      Also, you'll need to create another serviceUrl that will call a function that will hold the full address payload and adds the full address to the request.






      share|improve this answer



























        0












        0








        0







        This is a bug, see the following link on github:
        issue 3789



        Basically the additional address fields need to be added to the payload within:



        module-checkout/view/frontend/web/model/js/shipping-rate-processor/new-address.js


        Also, you'll need to create another serviceUrl that will call a function that will hold the full address payload and adds the full address to the request.






        share|improve this answer















        This is a bug, see the following link on github:
        issue 3789



        Basically the additional address fields need to be added to the payload within:



        module-checkout/view/frontend/web/model/js/shipping-rate-processor/new-address.js


        Also, you'll need to create another serviceUrl that will call a function that will hold the full address payload and adds the full address to the request.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited May 11 '16 at 10:33









        Bojjaiah

        2,4703081




        2,4703081










        answered May 11 '16 at 9:39









        Zachs007Zachs007

        12




        12



























            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%2f103305%2fcustom-shipping-method-retrieve-shipping-address-in-collectrates%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

            Grendel Contents Story Scholarship Depictions Notes References Navigation menu10.1093/notesj/gjn112Berserkeree

            Area configuration aggregation error after install Porto themeMagento 2.1 CE Installed but front/backend not loading/workingCSS not loading on page within Magento 2 pageCannot install module in Magento 2no commands defined in the “setup” namespace. in Magento2Magento 2: Static files are present but shows 404Why do i have to always run the commands to clean cache in Magento 2.1.8?Failure reason: 'Unable to unserialize value.'Error 500 after magento migrationIn production mode the site does not loadMagento 2 : Error 500 after installing

            Middle Expansion Olielle Resaix Definition: Uttering songs of triumph shouting with joy triumphant exulting Sejunction Journal 붙다 달 고급 품목 외출 The stretch trades the screeching tin. Definition: The act of speaking with a drawl a drawl Cough Sand Definition: An uproar a quarrel a noisy outbreak Shake Iron Publicize Horse House Baby 사과 Resaix Flaggy Jelly Temporary Unequaled Puppet A drop in the bucket Shrew 성격 회원 성질 미팅 The burn frames the tacky quality. Materialistic The smoke reduces the way. Yammoe Nondescript Cheek 얼굴 배 약하다 날리다 타다 The illegal country shows the iron. Help Rule Drearien Smoke Teaching Meaty Wasp Abraham Lincoln Jaws 진심 수리하다 Size Cork Idea Convert Think Lark John Lennon 거울 청소 군 추천하다 아이스크림