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;
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
add a comment |
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
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
add a comment |
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
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
magento2
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
edited May 11 '16 at 10:33
Bojjaiah
2,4703081
2,4703081
answered May 11 '16 at 9:39
Zachs007Zachs007
12
12
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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