Dr. Advanced Shipping

(Shopify) I’m testing a shipping rule and after I made some changes to the shipping rate, when I refresh the cart, it is still showing me the old shipping rate value in the Cart Summary.

GENERAL

(Shopify) I’m testing a shipping rule and after I made some changes to the shipping rate, when I refresh the cart, it is still showing me the old shipping rate value in the Cart Summary.

This issue can occur when Shopify retrieves shipping rates from our app for the same configuration of origin, destination, and cart items in a short period of time. In such cases, Shopify may use cached shipping rates instead of requesting new ones.

When does Shopify use cached shipping rates?

Shopify will retrieve the shipping rate from its cache if the request exactly matches the following fields:
  • Variant IDs: The unique identifiers for the product variants in the cart.
  • Default shipping box weight and dimensions: The predefined weight and size of the shipping box.
  • Variant quantities: The number of each variant in the cart.
  • Origin address: The address from which the shipment is sent.
  • Destination address: The delivery address provided by the customer.
  • Item weights and signatures: The weight of each item and any associated attributes or signatures.

When are new shipping rates requested?

New shipping rates are requested in the following scenarios:

  • If any of the fields mentioned above are different from the previous request.
  • If the cache has expired since the initial shipping rate request.

How long does Shopify cache shipping rates?

New shipping rates are requested in the following scenarios:
  • Successful Rate Retrieval: If Shopify successfully retrieves shipping rates, the cache expires after 15 minutes.
  • Error in Rate Retrieval: If there is an error in retrieving the shipping rate, the cache expires after 30 seconds.

How can I force Shopify to refresh the shipping rate?

To force Shopify to refresh the shipping rate, you can simply change the delivery address slightly. A small change, such as modifying the street number, is usually sufficient to trigger a new shipping rate request and bypass the cached rates.

By following these steps, you can ensure that the updated shipping rates are reflected in your cart during testing