How to apply shipping charge for guest user in magento 2?Remove applied shipping methods and apply free shipping methodShipping Table Rates on Weight for local area and for States. How do I set up using Shipping TableCharge shipping based on discount codeShow shipping charge in shopping cartFedex: want to use shipment creation without using in frontendMagento 2: How to hide the price for guest user only wholesale group user can see pricemagento 2 cart page rules for free shipping not workingMagento 2.2.1 - Remove Free Shipping for a Specific ProductHow to add customer details for guest user using Magento rest API - create orderShipping fees not get updated when quantity get increased in magento 2
Why don't commercial aircraft adopt a slightly more seaplane-like design to allow safer ditching in case of emergency?
Is it legal for a supermarket to refuse to sell an adult beer if an adult with them doesn’t have their ID?
How Can I Process Untrusted Data Sources Securely?
Can you perfectly wrap a cube with this blocky shape?
Cover a cube with four-legged walky-squares!
What details should I consider before agreeing for part of my salary to be 'retained' by employer?
What happens if there is no space for entry stamp in the passport for US visa?
What is the meaning of [[:space:]] in bash?
How to honestly answer questions from a girlfriend like "How did you find this place" without giving the impression I'm always talking about my exes?
Why does FFmpeg choose 10+20+20 ms instead of an even 16 ms for 60 fps GIF images?
Can a Resident Assistant be told to ignore a lawful order?'
What "fuel more powerful than anything the West (had) in stock" put Laika in orbit aboard Sputnik 2?
Where do the electrons come from to make the carbon stable during bombardment of alpha particles on beryllium
What is the difference between a Hosaka, Ono-Sendai, and a "deck"?
How possible is a successful landing just with 1 wing?
Where are the rest of the Dwarves of Nidavellir?
Why did Steve Rogers choose this character in Endgame?
Generating a PIN from cryptographic bytes
Is it rude to refer to janitors as 'floor people'?
How many bits in the resultant hash will change, if the x bits are changed in its the original input?
Was Jacobi the first to notice the ambiguity in the partial derivatives notation? And did anyone object to his fix?
What would be the safest way to drop thousands of small, hard objects from a typical, high wing, GA airplane?
Why is Katakana not pronounced Katagana?
Get node ID or URL in Twig on field level
How to apply shipping charge for guest user in magento 2?
Remove applied shipping methods and apply free shipping methodShipping Table Rates on Weight for local area and for States. How do I set up using Shipping TableCharge shipping based on discount codeShow shipping charge in shopping cartFedex: want to use shipment creation without using in frontendMagento 2: How to hide the price for guest user only wholesale group user can see pricemagento 2 cart page rules for free shipping not workingMagento 2.2.1 - Remove Free Shipping for a Specific ProductHow to add customer details for guest user using Magento rest API - create orderShipping fees not get updated when quantity get increased in magento 2
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
In Magento 2 I have configured shipping charge of 50 INR for below 500 INR purchase and for above 500 INR purchase shipping is free. But I need to customize there is no free shipping for guest user. How can I achieve this?
magento2 php shipping guest-checkout shipping-charges
add a comment |
In Magento 2 I have configured shipping charge of 50 INR for below 500 INR purchase and for above 500 INR purchase shipping is free. But I need to customize there is no free shipping for guest user. How can I achieve this?
magento2 php shipping guest-checkout shipping-charges
Are you using Magento default shipping module or Custom shipping module ?
– Venugopal Chikkegowda
Jul 9 at 6:10
I am using the default shipping module.
– Arul
Jul 9 at 6:17
which default shipping method are you using ?
– Venugopal Chikkegowda
Jul 9 at 6:46
add a comment |
In Magento 2 I have configured shipping charge of 50 INR for below 500 INR purchase and for above 500 INR purchase shipping is free. But I need to customize there is no free shipping for guest user. How can I achieve this?
magento2 php shipping guest-checkout shipping-charges
In Magento 2 I have configured shipping charge of 50 INR for below 500 INR purchase and for above 500 INR purchase shipping is free. But I need to customize there is no free shipping for guest user. How can I achieve this?
magento2 php shipping guest-checkout shipping-charges
magento2 php shipping guest-checkout shipping-charges
asked Jul 9 at 5:56
ArulArul
571 silver badge7 bronze badges
571 silver badge7 bronze badges
Are you using Magento default shipping module or Custom shipping module ?
– Venugopal Chikkegowda
Jul 9 at 6:10
I am using the default shipping module.
– Arul
Jul 9 at 6:17
which default shipping method are you using ?
– Venugopal Chikkegowda
Jul 9 at 6:46
add a comment |
Are you using Magento default shipping module or Custom shipping module ?
– Venugopal Chikkegowda
Jul 9 at 6:10
I am using the default shipping module.
– Arul
Jul 9 at 6:17
which default shipping method are you using ?
– Venugopal Chikkegowda
Jul 9 at 6:46
Are you using Magento default shipping module or Custom shipping module ?
– Venugopal Chikkegowda
Jul 9 at 6:10
Are you using Magento default shipping module or Custom shipping module ?
– Venugopal Chikkegowda
Jul 9 at 6:10
I am using the default shipping module.
– Arul
Jul 9 at 6:17
I am using the default shipping module.
– Arul
Jul 9 at 6:17
which default shipping method are you using ?
– Venugopal Chikkegowda
Jul 9 at 6:46
which default shipping method are you using ?
– Venugopal Chikkegowda
Jul 9 at 6:46
add a comment |
1 Answer
1
active
oldest
votes
Inside this class vendor/magento/module-offline-shipping/Model/Carrier/Tablerate.php
there is a method for price calculation with the name **collectRates**
.
In this method, Magento will calculate the price based on the conditions that you provided. Override the function and change the calculation according to you.
I am using Flat shipping rate method
– Arul
Jul 9 at 7:16
1
override this class for price modification "vendor/magento/module-offline-shipping/Model/Carrier/Flatrate.php"
– Venugopal Chikkegowda
Jul 9 at 7:18
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%2f281286%2fhow-to-apply-shipping-charge-for-guest-user-in-magento-2%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
Inside this class vendor/magento/module-offline-shipping/Model/Carrier/Tablerate.php
there is a method for price calculation with the name **collectRates**
.
In this method, Magento will calculate the price based on the conditions that you provided. Override the function and change the calculation according to you.
I am using Flat shipping rate method
– Arul
Jul 9 at 7:16
1
override this class for price modification "vendor/magento/module-offline-shipping/Model/Carrier/Flatrate.php"
– Venugopal Chikkegowda
Jul 9 at 7:18
add a comment |
Inside this class vendor/magento/module-offline-shipping/Model/Carrier/Tablerate.php
there is a method for price calculation with the name **collectRates**
.
In this method, Magento will calculate the price based on the conditions that you provided. Override the function and change the calculation according to you.
I am using Flat shipping rate method
– Arul
Jul 9 at 7:16
1
override this class for price modification "vendor/magento/module-offline-shipping/Model/Carrier/Flatrate.php"
– Venugopal Chikkegowda
Jul 9 at 7:18
add a comment |
Inside this class vendor/magento/module-offline-shipping/Model/Carrier/Tablerate.php
there is a method for price calculation with the name **collectRates**
.
In this method, Magento will calculate the price based on the conditions that you provided. Override the function and change the calculation according to you.
Inside this class vendor/magento/module-offline-shipping/Model/Carrier/Tablerate.php
there is a method for price calculation with the name **collectRates**
.
In this method, Magento will calculate the price based on the conditions that you provided. Override the function and change the calculation according to you.
edited Jul 9 at 7:20
Raj Mohan R
1,6113 silver badges13 bronze badges
1,6113 silver badges13 bronze badges
answered Jul 9 at 7:11
Venugopal ChikkegowdaVenugopal Chikkegowda
1739 bronze badges
1739 bronze badges
I am using Flat shipping rate method
– Arul
Jul 9 at 7:16
1
override this class for price modification "vendor/magento/module-offline-shipping/Model/Carrier/Flatrate.php"
– Venugopal Chikkegowda
Jul 9 at 7:18
add a comment |
I am using Flat shipping rate method
– Arul
Jul 9 at 7:16
1
override this class for price modification "vendor/magento/module-offline-shipping/Model/Carrier/Flatrate.php"
– Venugopal Chikkegowda
Jul 9 at 7:18
I am using Flat shipping rate method
– Arul
Jul 9 at 7:16
I am using Flat shipping rate method
– Arul
Jul 9 at 7:16
1
1
override this class for price modification "vendor/magento/module-offline-shipping/Model/Carrier/Flatrate.php"
– Venugopal Chikkegowda
Jul 9 at 7:18
override this class for price modification "vendor/magento/module-offline-shipping/Model/Carrier/Flatrate.php"
– Venugopal Chikkegowda
Jul 9 at 7:18
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%2f281286%2fhow-to-apply-shipping-charge-for-guest-user-in-magento-2%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
Are you using Magento default shipping module or Custom shipping module ?
– Venugopal Chikkegowda
Jul 9 at 6:10
I am using the default shipping module.
– Arul
Jul 9 at 6:17
which default shipping method are you using ?
– Venugopal Chikkegowda
Jul 9 at 6:46