New Landing How can we help? Atelier Selecting a Shipping Method automatically based on Javascript dats

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Atelier
  • #191097
    aerosum
    Member
    Post count: 35

    Hi,

    I am trying to add location sensing to my wordpress site I have created using this theme. I have altered it to some extent so that it functions the way I want.

    I am trying to add another functionality to it to sense the zip code of the visitor and using it to automatically select a shipping method and hide others. Using Geocoding API of Google I have been able to fetch the zip code.
    All of this javascript code in custom JS area of the theme options and it works well.

    Now I have a set of zip codes which apply to one of the shipping methods I have created and appear in a drop down as per woocommerce setting.

    I want that when the checkout page loads the shipping method based on the zip codes should be selected automatically. Then the Ajax call to update the cart should be made.

    How can I get this done? Any help?

    I am now trying to get into woocommerce code but I think I should be able to do it by editing the theme since it is over riding methods by showing overlays and all. Just need to figure it out. As this will be good as I wouldn’t need to modify the woocommerce core.

    Regards
    Sumit

    #191113
    David Martin – Support
    Moderator
    Post count: 20834

    Hi Sumit,

    Unfortunately this customisation is beyond our scope of support. While we’d love to be able to support every customisation request, we simply don’t have the time.

    We recommend that you seek a freelance developer if you need that functionality, potentially from one of the below resources:

    https://codeable.io

    http://werkpress.com

    http://www.microlancer.com

    Thanks,
    David.

    #191120
    aerosum
    Member
    Post count: 35

    Well thanks for taking time to revert at least. If I find the solution I would post it here so some people could benefit.

    If you can help me locate from where you send the ajax request to update cart when I select a shipping method? That’s somewhere in your theme I am just not able to locate it so I could modify it.

    #191227
    David Martin – Support
    Moderator
    Post count: 20834

    Hey,

    Sure – the cart output would be handled by the file cart.php located in atelier/woocommerce/cart folder.

    Check that out and let us know if we can give you any pointers.

    – If you have done most of the leg work, you may get a lot of dev help on Stackoverflow.com if you can show what you have done.

    Thanks.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register