Questions tagged [shipping-methods]

Denotes questions about shipping methods configuration and implementation.

2
votes
0answers
172 views

Magento2 plugin does not working on class Magento\OfflineShipping\Model\Carrier\Freeshipping

Create a plugin using for class Magento\OfflineShipping\Model\Carrier\Freeshipping. Use after method (afterCollectRates) for CollectRates function. But this does not work here list of files: app/...
2
votes
0answers
381 views

Magento 2 : How do I hide a Customized Checkout Step

I have added a custom step in checkout. I would like to use some JS to hide or disable the step based on if the associated shipping option is selected or not. I tried to wrap it in if statement but ...
2
votes
1answer
637 views

Can't set shipping method on order created programmatically

I have been searching for an answer on the web, but have tried all the solutions I have found and nothing seems to work. The order adds fine, but in the admin panel is shows "No shipping information ...
2
votes
1answer
776 views

Magento 2: How to change Weight field for DHL Shipping Method [SOLVED]

For Product apart from Magento Field Weight, we have another Attribute Called Total Weight. Every product has this attribute. So when user will select DHL Shipping Method, instead of Product's ...
2
votes
1answer
635 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 ...
2
votes
0answers
403 views

magento2 checkout shipping methods render

Please, help me. Magento 2 checkout page rerender shipping methods when i change country in "Shipping address". I've added one more select field with shippment type ( courier, pickup or both of it) ...
2
votes
0answers
169 views

Products Weight not calculated at shipping

Single products weight calculated perfectly, when i add three products, three products of weight not calculated. Am using WEBSHOPS MATRIX RATES
2
votes
1answer
351 views

Overriding Magento 1.9 interface

I've just started writing Magento 1.9 plugins and I started with a basic example of writing a basic Shipping Method plugin that will return static rates. Here is what the structure of the model file ...
2
votes
1answer
948 views

Importing table rates “Invalid Region/State” [Magento]

in configuration system in payment method, i want to add shipment cost for a product based on destination, and then i added my country ID , Region/state ,... etc when i import this file and click ...
2
votes
1answer
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 ...
2
votes
0answers
88 views

Magento 1.7.1 shipping method [closed]

I am not sure what is wrong with my shipping method, Every order above 500 getting shipping price 0.Even it blocking other shipping method and make the shipping price to 0. Before I add a price rule ...
2
votes
0answers
30 views

how can i apply two shipping types?

i have this requirement of applying two kind of shipping method. I have obtained the required shipping rates calculation via flat rate and table rate, now i have to let users choose two of the ...
2
votes
1answer
141 views

Is there a way to choose the lower priced shipping method of two carriers under a generic name?

So I will try to explain this as good as possible. We will ship with FedEx and UPS, and some items also with USPS. As we all know FedEx has the Express Saver which is comparable to UPS 3 Day Select. ...
2
votes
0answers
62 views

How to compare value in the Table rate and display the equivalent Price from Table Rate

I have a table rate imported and it's rule is Weight vs. Destination. On my onepage checkout I want to check the weight of the total Items ordered over the Table Rates weight and Display the ...
2
votes
0answers
50 views

Table rates don't appear in other stores

I am having a weird trouble whith Magento 1.9.1.1 I have imported local table rates to MAIN config and it works great on www.domain.com but when I use a different language store, the paid shipping ...
2
votes
1answer
4k views

Fedex Shipping method is not showing up on frontend [closed]

I obtained the key, password, account id and meter number from FedEx and then enabled FedEx shipping method from Magento backend using that information. But After Adding the product into cart, FedEx ...
2
votes
0answers
198 views

Discrepancies with $_item->getFreeShipping() - can't find whether order item had free shipping

I have a script which runs through order items. I also set up a Shopping Cart Promotional Rule for Free Shipping on certain items 'For matching items only' which I've matched by SKU in the Actions ...
2
votes
1answer
731 views

Magento 2: Flatrate shipping price is not updating

In the first checkout step, where we are providing shipping address I'm updating flatrate price according to the zip code given. The updated price is saving to core_config_data table as usual.But when ...
2
votes
2answers
2k views

Magento 2.1 :- Update Display Error Message in Checkout Cart Page

See the below image, I want to update display error message in estimate checkout cart page with custom module. I know that we change display error using admin-panel but i want to need custom module. ...
2
votes
2answers
827 views

Add data to Mage_Shipping_Model_Rate_Request

I need to add a value to Mage_Shipping_Model_Rate_Request depending on user selection. To be more detailed: the frontend shows a checkbox depending on the selection (or not) of the checkbox my ...
1
vote
1answer
7k views

Magento2: How to get shipping method in order using observer `sales_order_save_after`?

I want to get shipping method in my observer after placing an order. I am using sales_order_save_after event, so after place an order I want to get shipping method. I am getting shipping description ...
1
vote
3answers
2k views

Hide Shipping method from cart page in magento

I want to hide or remove the Shipping Method from cart page. The reason to hide is we are giving free delivery on order above 15 pound. but since magento save the users shipping method in session it ...
1
vote
2answers
306 views

How to know the correct path to extend in Magento?

I am new in Magento. I am having a lot of problems to achieve each step in the learning curve. I needed to add a custom shipping method. I was fallowging this tutorial: https://www.mageplaza.com/...
1
vote
2answers
2k views

Extend checkout order summary section in Magento 2

I am trying to add custom text in beside shipping method section in Order Summary from Magento 2. But my data is not affecting. For this, I have added custom text in root\vendor\magento\module-...
1
vote
1answer
532 views

Restrict Cash on delivery based on Country under shipping method

I want to restrict COD based on country we select under billing address in checkout page
1
vote
1answer
2k views

Get the available (and Working) Shipping Methods for a quote

I'm working on a mobile application, that is creating an order on Magento programmatically through a custom REST implementation, and everything is working fine, except one thing that i can't find any ...
1
vote
2answers
839 views

magento Plugin is not working on CollectRates method shipping method class

Target: Using plugin before method, want to changes some behavior of method collectRates(RateRequest $request) of Magento\OfflineShipping\Model\Carrier\Freeshipping Issue: Getting 500 Internal ...
1
vote
2answers
396 views

how to get order shipment comments in MG2 using DI ( dependecency injection)

I can obtain shipment object from Observer object as follows. $shipment = $observer->getEvent()->getShipment(); But from here how can I get shipment comments? I mean the comment added in ...
1
vote
1answer
971 views

Magento 2 : Hide shipping method if customer not logged in

I want to hide shipping method when user is not logged in in checkout page. After selecting the city shipping methods to be shown in checkout page. So, Is there any solution for this I have try this ...
1
vote
1answer
841 views

Hiding Shipping Method for current Logged in/Guest user if a condition method

I'm using Magento 2.1. Currently, I'm having two shipping methods. One is UPS and another is Flatrate. If my product's attribute returns true, I want to hide Flatrate shipping method from frontend ...
1
vote
2answers
2k views

Magento 2 - Shipping fee using table rates always zero when adding more items in cart

I'm using "weight vs destination" and I have imported the csv successfully. I have checked the "shipping_tablerate" table and the data is correct. When I added an item with weight = 1.00 to the cart, ...
1
vote
1answer
716 views

allow only some zip codes to place an order

we are using customized shipping method something like "flat rate" shipping method. we have to restrict the customers from buying products for some zip codes. app/code/local/extension/module/Model/...
1
vote
1answer
533 views

UPS verse UPS XML

We switched to using UPS XML recently in Magento EE 1.13. How ever we noticed that UPS "Next Day Air Saver" is no longer available? Is there an update for this or is this a setting we have to get ...
1
vote
1answer
36 views

Shipping by Product

Does anyone know if there is a way to determine the cost of shipping as a product vs. destination? Basically I need the price of shipping various depending on the destination and by product or should ...
1
vote
2answers
1k views

When and where is used the getAllowedMethods method?

I'm implementing a custom carrier and did notice the getAllowedMethods method defined at Mage_Shipping_Model_Carrier_Interface. I know that it returns an array with the allowed methods but I can't yet ...
1
vote
1answer
2k views

How to apply shipping rules promotions

I have setup different shipping methods in my store and I want to offer 3 promotions with 3 different coupon codes wherein: Promo 1: ORDERS over $25 get free Priority Mail shipping upgrade Promo 2: ...
1
vote
4answers
4k views

Remove shipping method from quote?

Is there any way to remove shipping method from quote, programmatically. I have try this code Mage::getSingleton('checkout/session')->getQuote()->unsShippingAddress(); but not working. And ...
1
vote
1answer
35 views

Magento checkout page

I attached a new option to the delivery method, which the customer can choose. The question is, which is the best solution to store the value of that custom field in the form of the transport method.
1
vote
2answers
53 views

Dealing with magento templates

I want to insert my custom .phtml code in one of the magento core page. To be more specific i want to put my code in order to be displayed in <my-server-name>/index.php/admin/sales_order/view/...
1
vote
3answers
459 views

how to get shipping method using order id in magento 2

I am trying to get the shipping method using Object Manager $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $order = $objectManager->create('Magento\Sales\Api\Data\...
1
vote
1answer
179 views

How to enable a shipping method for a specific SKU?

I'd like to create a module to enable the Table Rate Shipping Method if a product with a specific SKU is the customer cart. How could I do that?
1
vote
1answer
123 views

Can't see the custom shipping method just added

I need to add a custom shipping method. I was fallowging this tutorial: https://www.mageplaza.com/devdocs/magento-2-create-shipping-method/ I was able to configure my custom shipping method. I set ...
1
vote
2answers
1k views

Add shipping method programmaticaly

I'm creating quote / order programmaticaly. But when I do this, I have an exception : (in english, "select shipping method") Magento\Framework\Exception\LocalizedException: Sélectionnez un mode ...
1
vote
1answer
475 views

Can't upload and save table rates in magento 2

this my csv sample file. I upload csv file and press save config then show this is my setting.How can i fix this.
1
vote
2answers
2k views

How to get State Code from Region Id in Magento 2.1.9

I am trying to get state code form Region ID. e.g. If my region id = 12 state code should be CA. This is what I am doing right now. $regionObject = $objectManager->get('Magento\Directory\Model\...
1
vote
1answer
547 views

Magento2: Carrier.php file

I want to create custom shipping module in Magento2. For that I need to create carrier.php. Which steps should I follow while creating Carrier.php? Help would be appreciated.:)
1
vote
1answer
449 views

500 internal server error on plugin creation - Magento 2

I'm using Magento 2.1 I'm trying to hide the shipping method based on product attribute. I followed the solution found here Hiding Shipping Method for current Logged in/Guest user if a condition ...
1
vote
1answer
395 views

FedEx India Shipping Method in Magento 2 is not working

I am setting up FedEx shipping method in Magento 2 for FedEx India but it does not work. How to setup for FedEx India? Will it work for India?
1
vote
1answer
38 views

Magento 2 : Files responsible for magento checkout process

I'm using a german translation pack but it doesn't translate everything in the Shipping Method Section (in Checkout Process). Which files are responsible for rendering out this section ? I want to ...
1
vote
1answer
4k views

Magento2 Checkout Customization

I need help with checkout customization. Can someone give me some links to resourses with information about Magento 2 checkout customization? I am all ready readed developer guide and docs, but i ...