Feature Request: Combine functionality for shipping options #300
meandillar
started this conversation in
API Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Feature Request
Allow modification of Shipping Option UI targets from within a Delivery Customization function.
Our use case
We are transitioning from checkout.liquid and Scripts to functions and UI extensions as mentioned in #299
We need to:
To achieve this we'll currently need to use:
Problem we've encountered
We have delivery zones that are associated with groups of zipcodes. The titles of our Shipping Options set in
Settings -> Shipping and delivery
include zone info (for example 'Zone 1’, ‘Zone 2’) that is used to do 3 things at checkout:The problem is that we can't access the original Shipping Option titles in the Checkout UI extension because they've already been modified by the Delivery Customization function, so we're no longer able to determine which zone we're dealing with in that particular shipping option and therefore unable to display the relevant shipping time estimate.
If there is another way to access the original Shipping Option title I'd love to hear :D
Other reasons why we'd like this combined functionality:
We can make it work currently but it involves adding extra logic to figure out which zone correlates with the current shipping option and executing 2 lots of similar code (once in the Customization function and once in the UI extension) which feels inefficient.
Beta Was this translation helpful? Give feedback.
All reactions