Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
In the checkout, when the address is updated, the backend will request new carrier rates but will never display them when it receives them, opting to use cache instead.
Can this be fixed by updating the rates when new rates are received after requesting them? This is causing frustration when rates need to be updated due to new information being received; this is particularly useful for developers building in your new Checkout UI for extensibility as there is a myriad of cases in which merchants may want to update the rates based on address changes.
The optimum solution would be to add a function that allows a developer to update the rates or trigger a new rate request without the need to jury-rig the system. For example, discounts can play a big part in getting the value of shipping rates; the new checkout-ui has a nice way of knowing when discounts have been added but no way of ensuring the rates can get updated when a discount has been added, as some carriers use value-based shipping.
Cheers!
This experience is quite frustrating, to be honest. I am also in the process of developing a custom shipping rate extension. Invalidating the cache proves to be challenging without modifying properties or attributes in the address or line items. This results in a poor customer experience, as they notice these changes. Additionally, updating the data using 'use hooks' requires a significant amount of wait time.
Did you find a solution to this? This is a huge issue for us also. Shopify are locking us out of old checkout.liquid customizations, where we could 'hack' hidden address attributes to change to force carrier rate refreshes. Now, with the new UI, we can't do this, so the idea of checkout customizations thus affecting calculated carrier rates becomes impossible.
Seems like a massive regression for Shopify in favour of taking back control of their checkout UI. Hoping to avoid having to go back to a bespoke e-commerce setup given our shipping rates are linked to custom dynamically generated delivery dates and times which are intrinsic to our particular business model.
Unfortunately, no. We have had to implement a hack solution that updates address line 2 with an arbitrary symbol (in our case, a comma) to force Shopify to recognise that it needs to grab new rates. This is not ideal, as that comma also comes through on the address request.
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025