Viewing 1 replies (of 1 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    This isn’t possible at the moment. I’m planning to add it in a future update, but not sure which one.

    You can if you are comfortable with PHP add it yourself. Start with this template, use get_post_meta to get the address, city and country like this:

    $address = get_post_meta( $queried_object->ID, 'wpsl_address', true );
    $city    = get_post_meta( $queried_object->ID, 'wpsl_city', true );
    $country = get_post_meta( $queried_object->ID, 'wpsl_country', true );

    Then with that data create the directions link, the url pointing to Google maps needs to look like this.

    https://maps.google.com/maps?daddr=my street 1, my city, my country
Viewing 1 replies (of 1 total)

The topic ‘Add Directions link in store’ is closed to new replies.