• I’m currently working on a website for a client. One of the reasons they reached to us was that they needed to add a map on the Order Review step, in which the user would select their location, and based on that point in the map, assign them a shipping zone.

    I’ve created a Polygons table on the database with the coordinates (defining the shipping zone) and a zone id. There’s a field with a Google map on the admin page for editing or creating the polygon for each zone.

    So far I’ve come across two major problems:

    1. Modifying the checkout fields
      Whenever I try to insert content on the page using Woocomerce’s hooks or templates, the content gets rendered either on top or the bottom of the page.

      Inserted content re-renders
      On top of that, they’re using Order Delivery Date for creating delivery schedules, based on each method. I think this is making everything re-render, but my content gets added again every time it does.

    2. Setting the zone dynamically
      I’m also having trouble trying to set the shipping zone programmatically, to show only the shipping methods I need, so the rest of the checkout process can continue with the method the user chose.

    I don’t know if these are either issues concerning the plugin or my understanding of Woocomerce. Anyhow, any type of help would be extremely appreciated, since I’m stuck in this part of the project.

    Thanks!

    • This topic was modified 2 years, 12 months ago by facumidvetkin.

    The page I need help with: [log in to see the link]

  • The topic ‘Show shipping methods by map location’ is closed to new replies.