Questions tagged [shipping-rates]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
49 views

GraphQL placeOrder gives Integrity constraint violation in `quote_shipping_rate`

I am trying to place order with the below mutation, but getting Integrity constraint violation error for address_id in saving quote_shipping_rate. I assume the old shipping rate is not getting ...
Milind Singh's user avatar
  • 1,554
0 votes
1 answer
35 views

Get Order Details in \Magento\Quote\Model\Quote\Address\Rate

We are trying to implement a custom rate shop into our Magento store, using a custom API we developed. This API allows use to determine shipping rates in real time based on the order items and address....
Daniel Black's user avatar
0 votes
1 answer
53 views

Shipping Rates vs shipping methods

I have a Magento 2.4.5 shop with 3 shipping methods. I want to give same price to all, but this price will depend on customer shipping zip code. One price for a set of zip code (SET A), and other ...
mvistas's user avatar
  • 501
0 votes
1 answer
204 views

How can i get Shipping Rates On Button Click in Magento to instead of Postcode change function

I want to calculate Shipping Rates on button click instead of postal code change.
MUhammad javid's user avatar
1 vote
0 answers
364 views

Magento 2: Apply shipping rate to quote

I want to apply the matrix rate shipping method which has multiple rates based on quantity in the cart. I tried the following code but it is not working $shippingAddress->setCollectShippingRates(...
GenZ Dev's user avatar
  • 590
0 votes
1 answer
39 views

Delivery methods title (date)

my issue is that a part of my shipping method label isn't properly traducted, so I would like to find where the label is generated. This comes from native : src/vendor/magento/module-checkout/view/...
Claims's user avatar
  • 1,049
5 votes
3 answers
2k views

How to properly get current quote in Carrier Collect Rates function?

I'm using Magento 2.4.1 and I want to retrieve the current quote in collectRates function in my Carrier model, but sometimes it will prompt an infinite loop error like this: this is how i retrieve ...
blue's user avatar
  • 118
0 votes
1 answer
32 views

Magento 2 add shipping cost in product collection

I need to calculate shipping cost for each products so I used this code: <?php namespace Vebdor\Module\Model; class ShippingCost { protected $converter; protected $totalsCollector; ...
krybbio's user avatar
  • 1,258
2 votes
2 answers
1k views

Magento 2 how to display shipping methods sort order by price?

Hi we would like to sort and display the shipping methods by price Low to High on checkout page. For example: $31.72 Express Saver Federal Express $37.50 2 DayFederal Express $80.47 Standard ...
Nagaraju Kasa's user avatar
1 vote
0 answers
928 views

Magento 2 add Estimate Shipping Form on Product Page

Following this post Magento 2 : How to display Shipping Rates on a Product Page i can get shipping rates for current product, tested with curl: curl -ik -X POST -H "Content-Type: application/json&...
krybbio's user avatar
  • 1,258