PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 4/7/2020 2:03 PM by  Will Strohl
use postcodes to determine shipping costs
 5 Replies
 1 Subscribed to this topic
 1 Subscribed to this forum
Sort:
You are not authorized to post a reply.
Page 1 of 212 > >>
Author Messages





Basic Member






--
3/23/2020 9:33 PM
    pretty much as it says in the subject
    our use case is a bricks and mortar store would like to deliver to their nearest neighbour hoods via van and then everything outside of this would be sent via courier.
    I have a list of postcodes that i would like to assign to a Shipping Zone.

    I know that the UPS API uses the post code field to determine shipping but I don't need that level of complexity.

    any idea how I can implement this?





    Veteran Member






    --
    3/24/2020 12:38 PM
    Hello Bryan:

    Thank you for the question. Could you please provide more details about the shipping scenario you're trying to support? For example, how many Zip Codes are you trying to support? How much of an area in a region does that cover?

    Ideally, a full description of the desired customer workflow would be really nice to read through. :)

    I think I already have a suggested approach. I just need to better understand the entire use case before I suggest something.
    Will Strohl, Upendo Ventures Hotcakes Cloud | Get Support | Code Support Official Cloud & Support provider for Hotcakes





    Basic Member






    --
    3/29/2020 6:02 PM
    [quote=Will Strohl;1300]Hello Bryan:

    Thank you for the question. Could you please provide more details about the shipping scenario you're trying to support? For example, how many Zip Codes are you trying to support? How much of an area in a region does that cover?

    Ideally, a full description of the desired customer workflow would be really nice to read through. :)

    I think I already have a suggested approach. I just need to better understand the entire use case before I suggest something. [/quote]

    Thank Will, appreciate the reply.

    what I'm looking at is a total of 17 post codes that would be grouped together in one shipping zone that would be charged a flat rate.

    Customer work flow is pretty simple, they enter their address including post code;
    [list][*]if post code is one of the 17 predefined their shipping cost will be shown as flat rate $10
    if post code is [b]not [/b]one of the predefined they are then shown options for other shipping methods.
    [/list]

    From there the order will proceed as normal.





    Veteran Member






    --
    4/2/2020 2:30 PM
    Thank you for the additional information. What I propose is two-steps. First, update your viewset to add the form field to ask for the zip code. You may also want to add some sort of "help" to identify to the end-user if their zip code is supported.

    Next, you'll want to add a custom action delegate to ask for and validate the zip code in the BeforeProceedToCheckout step. This will prevent people from being able to checkout. If you want to also prevent people from going to the checkout and checking out directly, you can implement the same logic in the BeforeCheckoutCompleted step.

    https://hotcakescommerce....-Integration-Project

    A thorough walk-through of this can be found in the link below.

    https://hotcakescommerce....kout-and-Place-Order
    Will Strohl, Upendo Ventures Hotcakes Cloud | Get Support | Code Support Official Cloud & Support provider for Hotcakes





    Basic Member






    --
    4/2/2020 8:09 PM
    Hi Will, thanks for the reply.

    Our checkout view set already contains the zip/postal code field and it is already a required field.

    What I'm not sure how to complete is how to assign a particular postal code with a shipping rate, do you have any advice for me in that regard?

    thanks
    You are not authorized to post a reply.
    Page 1 of 212 > >>


    Loading
    • Sign-up for the Hotcakes Community Newsletter: