0

We already have table rate shipping wherein US shipping will be $13, Alaska and outside of the US will be $38. On top of it, we want to have rush shipping addition of $25. I was able to add custom shipping by following https://devdocs.magento.com/guides/v2.3/howdoi/checkout/checkout-add-custom-carrier.html. But the issue is within rush shipping. For the view/edit cart and step 1 of proceeding to checkout, I was able to calculate rush shipping $13+$25 = $38. But on the last step it keeps show $25 rush shipping. How can I display same $38 rush shipping on last step? I was able to debug to CartTotalRepository. I put in this line hoping I can fetch all the shipping methods

enter image description here

$rates = $address->collectShippingRates()->getGroupedAllShippingRates();

My aim is to fetch the current table rate and do the math to add on top of custom shipping. But at this step, it only yields 1 shipping method custom shipping.

Please help

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.