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

    (@wclovers)

    Thanks for pointing out this, we will fix this in next update.

    Plugin Author WC Lovers

    (@wclovers)

    Between, are you using ” Openstreet map”?

    If so, then I can give you a snippet to fix this for now.

    Thank you

    Thread Starter teejay01

    (@teejay01)

    Hi,
    Thank you. Great support.
    I have used Openstreetmap(because its free) but until the update is done i am using google. Its not a problem.

    Thread Starter teejay01

    (@teejay01)

    Hi,
    I was reminded of another error that appears on the vendor store page.The selection “tabs” appear continuously and cover items.

    https://drive.google.com/file/d/1sTpYl5NGCCMBx0KMuhSET0DEEmLwXc61/view?usp=sharing

    https://drive.google.com/file/d/1S6iv3pzE6zBxNLD0NKLvxtMCQ0_-8Zp6/view?usp=sharing

    Thread Starter teejay01

    (@teejay01)

    The bug in store listing page in left widget area. The selectors: choose county and choose category.

    Shipping by distance is working in Google Maps but it is not working in Open Street Maps as we have to enter the name of the city in the location box and it recognises the whole city and not the exact user location to filter the radius.

    If one searches from the radius, it will calculate from the centre of the city where the location point has been set default by open street maps.

    If it is possible to locate the user’s exact location via open street maps then please post the procedure.

    Thank You.

    If so, then I can give you a snippet to fix this for now.

    @wclovers Yes, please provide the codesnippet. I’m using OpenStreetMap and facing exactly this issue.

    open street map is not even locating the city. If it could locate the city only then also it would be helpful. One has to enter the name of the city in the box in order to find his location & the Locate me button is not working. Is there any error in my site due to which the locate button is not working?

    Plugin Author WC Lovers

    (@wclovers)

    NO.

    I have already described your this.

    If you search big cities like kolkata, delhi, mumbai, new york then open street map will give you result.

    But if you will search for small or sub-cities like navy-mumbabai, saltlake etc .. then it will not able locate those properly.

    Plugin Author WC Lovers

    (@wclovers)

    @sebastianfloka , add this snippet to your site –

    function wcfm_fix_load_scripts( $end_point ) {
    	global $WCFM, $WCFMmp;
        
    	switch( $end_point ) {
    	  case 'wcfm-settings':
    			$default_geolocation = isset( $WCFMmp->wcfmmp_marketplace_options['default_geolocation'] ) ? $WCFMmp->wcfmmp_marketplace_options['default_geolocation'] : array();
    			$default_lat         = isset( $default_geolocation['lat'] ) ? esc_attr( $default_geolocation['lat'] ) : apply_filters( 'wcfmmp_map_default_lat', 30.0599153 );
    			$default_lng         = isset( $default_geolocation['lng'] ) ? esc_attr( $default_geolocation['lng'] ) : apply_filters( 'wcfmmp_map_default_lng', 31.2620199 );
    			$default_zoom        =  apply_filters( 'wcfmmp_map_default_zoom_level', 15 );
    			
    			$store_icon = apply_filters( 'wcfmmp_map_store_icon', $WCFMmp->plugin_url . 'assets/images/wcfmmp_map_icon.png', 0, '' );
    			
    			wp_localize_script( 'wcfm_marketplace_settings_js', 'wcfm_marketplace_setting_map_options', array( 'search_location' => __( 'Insert your address ..', 'wc-multivendor-marketplace' ), 'is_geolocate' => apply_filters( 'wcfmmp_is_allow_store_list_by_user_location', true ), 'default_lat' => $default_lat, 'default_lng' => $default_lng, 'default_zoom' => absint( $default_zoom ), 'store_icon' => $store_icon, 'icon_width' => apply_filters( 'wcfmmp_map_icon_width', 40 ), 'icon_height' => apply_filters( 'wcfmmp_map_icon_height', 57 ), 'is_rtl' => is_rtl() ) );
    	  break;
    	}
    }
    add_action( 'wcfm_load_scripts', 'wcfm_fix_load_scripts' );
    add_action( 'after_wcfm_load_scripts', 'wcfm_fix_load_scripts' );

    Add custom code(s) to your child theme’s functions.php
    In case you do not have child theme then add those using this plugin –?https://www.ads-software.com/plugins/code-snippets/

    Thank You

    The code snippet works excellent! Thank you very much for taking my request serious and for your time to create this intermediate fix of the issue.

    Plugin Author WC Lovers

    (@wclovers)

    You are always welcome ??

    Hi @wclovers
    Just to be sure: Did you fix this issue with last updates (Mid June 2020) because I couldn’t find such info in the changelog. Or do I need to keep the code snippet in functions.php for the future?
    It looks solved but want to be sure.
    Thank you.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘WCWF Geo Location (openstreet map bug)’ is closed to new replies.