• Resolved a4eita

    (@a4eita)


    Greetings!

    Please tell me how to display and show in custom field the distance between the vendor and the buyer, using Google maps or OpenStreetMap.
    That is, it is necessary to calculate carbon dioxide for the delivery of products between vendors and the buyer.

    Suppose a customer adds products from 3 vendors to cart, after which he will go to the cart / checkout page and enter his index / address. I need a distance to be indicated near each vendor in order to multiply by an n-value for an approximate calculation of carbon dioxide.

    I will be glad to receive answers and any help, thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WC Lovers

    (@wclovers)

    You may use “Distance rate shipping” option for the purpose- https://docs.wclovers.com/store-shipping/

    Thread Starter a4eita

    (@a4eita)

    Thanks for the answer.
    This works, but if vendors want a different delivery method, not just distance, then this distance will be as an option for choosing a delivery.
    And I would need this information to be on the checkout page anyway, and maybe not only in the order field.

    As I understand it, I can find the function and requests from “Distance rate shipping” in the plugin code, and later use them to display always and in the desired field.
    By the way, maybe you tell me which part of the wcfm plugin to look for?

    The problem was the request for google maps and the search for variables for this request: the buyer’s address and the address of each vendor whose products the buyer added to the basket (opposite each vendor need to display the distance and then the total delivery distance).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘The distance between the vendor and the buyer’ is closed to new replies.