Skip to main content

All Questions

Filter by
Sorted by
Tagged with
5 votes
1 answer
2k views

Why shipping methods not updated on changing of checkout fields?

In the past when I fill one of the checkout fields then shipping method section under the checkout page refreshed and then updated like this: But now shipping method not updated by calling ajax (or ...
0 votes
2 answers
2k views

Shipping method is missing on checkout - Magento 2.4.4

We face a strange error in the checkout on the domain.com/checkout/#payment page, when clicking the place order button. For some reason in some cases, we still can't find when exactly, the customer on ...
0 votes
2 answers
2k views

Magento 2 : Set free shipping method programatically from an observer

I need to add free shipping method fro particular quote in an observer. I am calling an event sales_quote_collect_totals_before. And my observer code is - namespace Vendor\Module\Observer; use ...
3 votes
1 answer
2k views

Check if free shipping method is active programmatically in Magento 2

In my custom module I've created model/carrier.php to add custom shipping method, one of my custom shipping method will show up if magento free shipping method is not active, is there a way to do this?...
5 votes
2 answers
4k views

Retrieve all available shipping methods/carriers via REST

We're looking for a way to generate a list of all available shipping method codes and shipping carrier codes via REST API. I'm only seeing this available via the cart but I'd like to be able to ...
1 vote
2 answers
8k views

Magento 2 - The product that was requested doesn't exist

Magento2.3.0 I have the following error in var/log/exception.log any idea how to come this error main.CRITICAL: The product that was requested doesn't exist. Verify the product and try again. ...
2 votes
3 answers
2k views

FedEx Shipping that handles residential and commercial addresses

We have ported our site to Magento 2.1.2 and from my best understanding the Magento standard FedEx Shipping Method can not properly handle shipping to both residential and commercial addresses. In ...
1 vote
1 answer
2k views

In Magento 2, Why it is not refreshing shipping methods after State field select

In Magento 2, after Country filed select then shipping methods refreshing automatically. But why it is not refreshing shipping methods after State field select and how to apply refresh to state field ...
0 votes
2 answers
2k views

Magento 2 pass argument in class from ui component

I want to pass boolean argument to class method from uicomponent_form.xml My xml code is <field name="allow_shipping_method"> <argument name="data" xsi:type="array"> ...
1 vote
4 answers
2k views

M2: estimate shipping method error

I'm having a really weird trouble with my extension, as the shipping method section in checkout cannot be loaded, here's what it shows in inspect element: so the above POST request cannot be loaded ...
2 votes
2 answers
3k views

Show error message on shipping method if not applicable in Magento 2

I have developed custom shipping module. Now I want to show error message on shipping module if anything wrong like city, state, phone number etc. I follow this link to create shipping method: https:/...
5 votes
1 answer
2k views

Magento 2 : Issue with the custom field on checkout page

Installed Version of Magento is - 2.1.0 I have added a custom field "Bank Account Number" as you can see red square box in the below image. The problem I am facing is that it's not getting displayed ...
1 vote
1 answer
1k views

Magento 2 checkout Shipping Prices missing

I am trying to get the shipping price to display on my checkout. It's accessed via knockout.js in the template Magento_Checkout/web/template/shipping.html (this is the standard shipped with Magento) ...
1 vote
4 answers
2k views

Remove shipping in order summary

I want to remove or hide the shipping in order summary like in the picture below, because it will always free shipping. How can i remove it?
4 votes
1 answer
4k views

Magento 2 add custom data to shipping method

Hello I'm trying to add custom data to shipping method (image url, to be exact). Following this example I managed to add extension attribute to interface and show field named 'image' in extension ...
2 votes
1 answer
2k views

Magento 2 Get Shipping Rates of All active shipping methods

I have a special case where I want to show all active shipping methods with applied estimated shipping cost to login customer if customer has default shipping address set in address book. The ...
1 vote
1 answer
2k views

If drop down not selected show error message

How to show error message if dropdown option not picked. when click next and message should appear please see the below picture.
1 vote
1 answer
699 views

Free shipping code is not working for UPS in magento 2

If you create a cart price rule for free shipping, it works on all shipping methods (Flat rate, table rates, ...) except in the UPS method. I have tried several configurations but nothing. I have seen ...
12 votes
8 answers
15k views

Magento 2: Hide other shipping methods when free shipping is available

I charge my customers flat rate for shipping and I also offer free shipping for orders that are above certain amount. At the moment, customers who qualify for free shipping will also have paid ...
0 votes
2 answers
1k views

Magento 2: How to add additional custom rate in shipping method?

I am not getting here that how can we add additional rate in any shipping method. Do anyone have solution for it? I have tried to do it with below link's logic but it is not working. Referred link - ...
0 votes
2 answers
2k views

Magento 2 - Get Shipping Code in Sales Order view in Admin

I have a custom shipping module that passes some information into the Sales Order and the email. The problem is that it shows the data even when the shipping method isn't used. How can I get the ...
3 votes
1 answer
2k views

Shipping modules does not update rate on zip code changes in guest-checkout page Magento 2 production mode

Preconditions Magento 2.0.4 install Cart page and checkout page Steps to reproduce: 1. Put any product inside your cart 2. Open cart page or checkout page 3. input zipCode to calculate tax for ...
2 votes
1 answer
1k views

Magento 2: How to Show method if not applicable Country Wise?

I'm using DHL Shipping Method. I have set Show Method if Not Applicable to Yes. Displayed Error Message will be displayed, when it's applicable. I would like to show this Error Message by Specific ...
0 votes
1 answer
2k views

Magento2 : How to add city field to dropdown on checkout page?

I want add city drop-down in checkout page without any extension. I have tried some reference link for adding city dropdown but it is adding ony on cart page on estimate section. I want to add in ...
0 votes
3 answers
995 views

Magento 2: How to create multiple custom shipping methods in a single module?

I am referring this (https://www.mageplaza.com/devdocs/magento-2-create-shipping-method/#step-1-declare-a-shipping-module) to create a custom shipping method. But I need to create multiple shipping ...
0 votes
0 answers
211 views

Magento 2 custom shipping method set default shipping price as text which 0

is it possible to set default shipping price as text in my custom shipping method look like $method->setCarrierTitle($this->getConfigData('title')); $method->setMethod($this->...
0 votes
1 answer
68 views

Magento 2 ups is not working with REST SERVICE option

I am using the UPS shipping method and I am getting shipping rates with the below option. United Parcel Service XML But as I change it to United Parcel Service REST then it stopped working and ...
0 votes
0 answers
37 views

Magento 2 : Validate Shipping Methods According to Custom Checkbox Select

I have created a checkbox in shipping form for local pick-up option. If user checks it, shipping address get populated as the store address. Now I want to show, the custom created, shipping method ...
0 votes
0 answers
96 views

Magento 2.4.7 UPS shipping method not working

i have configured UPS shipping method in magento 2.4.7, my credentials are proper and still i am unable to view shipping method. verify below images. UPS configurations : 1 : https://i.sstatic.net/...
4 votes
1 answer
1k views

How to set up flat rate shipping

From what I've seen on the web Magento 2 should have an option for flat rate shipping in stores -> config -> sales -> shipping methods My install doesn't have anything to do with flat rate ...
9 votes
2 answers
3k views

Magento 2 : How to Merge Payment and Shipping Method steps in Checkout

Give me useful suggestion, How to merge payment and shipping method steps in checkout.
0 votes
1 answer
56 views

Add custom textbox after shipping method if freeshipping selected with validation

i've added textbox field if shipping method is freeshipping based on the shipping method textbox functionality working fine. but i want to make that field required which is not working here is my code ...
3 votes
3 answers
1k views

Magento 2 - Freight options for UPS possible?

Magento 2.2.4 Running a B2B store on M2 CE 2.2.4, we tend to have some larger orders in both price and weight. Looking through the default shipping method options, FedEx gives a minimal amount of ...
0 votes
0 answers
80 views

In Store Delivery sources show regardless of product stock status

I have come across an issue in Magento 2.4.6 p3 that appears to be a bug, https://github.com/magento/magento2/issues/37992 When using the In Store Delivery option if a product is out of stock you ...
0 votes
0 answers
44 views

Magento 2 Admin order's shipping method update event or plugin?

I want to do some functionality on update order's shipping method in admin so how it is possible. is there any event or plugin or other ?
-2 votes
1 answer
1k views

how to show shipping method selection for each item in cart

Can anyone give the solution for the below. I am using magento 2 CE. I want to show all shipping methods for each item in the cart on the shopping cart page and the customer can select the shipping ...
3 votes
0 answers
1k views

Magento2 - Creating Table Rate for Fedex Shipping Options

I'm new to Magento so please excuse my novice approach. I'm trying to offer Fedex express shipping method to my customers; Fedex Overnight; Fedex 1 Day; Fedex 2 Day I'm using a third party ...
5 votes
5 answers
6k views

Magento 2: Hide payment methods depends on shipping method

I have created custom shipping method "Pick up at the store" and payment method "Pay in store" and I would like to hide all other payment methods, when I choose "Pick up at the store" shipping method. ...
1 vote
3 answers
803 views

How to disable free shipping based on custom product attributes?

I want to disable free shipping...if I select a product with some custom attribute...is there any way to achieve this. Thanks in advance.
11 votes
1 answer
9k views

Magento 2 make product attribute available in QuoteItem

Working on a modification to shipping in Magento 2 and need to have a conditional based on a product attribute which is not currently exposed. How can this be done? In my Shipping class, I can get ...
1 vote
1 answer
290 views

Magento 2.3.2: Hide Flat rate shipping method in the basket when Free Shipping is applied

I have an issue where a customer has an order that qualifies for free shipping, but the Flat rate shipping option still appears in the basket. But the flat rate shipping price is also zero. I have a ...
2 votes
0 answers
602 views

Magento 2 checkout, I need to display or hide a shipping method depending on if a coupon code was entered and is valid. How can I do this?

I have a price rule attached to the flat rate shipping method as an option, and I want to intercept when the coupon is added, so that I can hide this flat rate method unless the coupon code matches ...
1 vote
1 answer
357 views

what is the use of shipping setprice and shipping setcost

What is the use of setprice and setcost in shipping carrier? public function collectRates(RateRequest $request) { if (!$this->getConfigFlag('active')) { return false; ...
1 vote
1 answer
466 views

Magento 2 : How to get Shipping Methods for Specific Customer Group

How can I get list of shipping methods for the different customer group.
0 votes
1 answer
220 views

Custom shipping method available only via API

I am trying to add a custom Shipping Method that is only available via API (no storefront checkout). My starting point is the MagePsycho custom shipping module, which works fine, but as expected it ...
0 votes
0 answers
46 views

Magento2 - How to move checkout page side bar Cart Items section below the shipping method on checkout page?

Kindly help me in this Magento2 - How to move checkout page side bar Cart Items section below the shipping method on checkout page? Thanks in advance.
1 vote
2 answers
3k views

magento2: How to get address' region while checkout selecting address

use Magento\Quote\Model\Quote\Address\RateRequest; $destCountryId = $request->getDestCountryId(); $destState = $request->getDestRegionCode(); $destCity = $request->getDestCity(); ...
1 vote
1 answer
741 views

Need to get additional data in custom shipping method Magento 2?

How can I get additional data in custom shipping method? public function collectRates(RateRequest $request) { if (!$this->getConfigFlag('active')) { return false; } ...
0 votes
0 answers
424 views

Magento2: error - rest/default/V1/carts/mine/estimate-shipping-methods 500

After upgrade from Magento 2.3.6 to 2.3.7-p4 in checkout shipping method not showing. I receive error: logged customer rest/default/V1/carts/mine/estimate-shipping-methods-by-address-id 500 as guest ...
0 votes
1 answer
343 views

Magento 2 - Error in overriding constructor of Magento\Ups\Model\Carrier

Exception #0 (Magento\Framework\Exception\RuntimeException): Type Error occurred when creating object: Namespace\Module\Model\Ups\Carrier Namespace\Module\Model\Ups\Carrier.php <?php namespace ...

1
2 3 4 5
9