• Resolved luissamfire

    (@luissamfire)


    Hello Wc Lovers,

    I was wondering if it was possible to customize the store list icon on the map for each store. Would it be possible to show maybe the icon of the category where they list products or to show their profile picture?

    Image of icons

    Thank you for your help

    Luís Samouco

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

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

    (@wclovers)

    Yeah, it’s possible to change this icon.

    Would it be possible to show maybe the icon of the category where they list products

    – But they may add products in many categories, which icon you want to show here?

    Thread Starter luissamfire

    (@luissamfire)

    Yeah, that’s true they might have a few products in different categories. Would it be possible for the map icon to inherent their profile picture instead?

    Thank you for your help!

    Plugin Author WC Lovers

    (@wclovers)

    Sure, add this snippet to your site –

    add_filter( 'wcfmmp_map_store_icon', function( $icon, $store_id, $store_user ) {
    	$store_user      = wcfmmp_get_store( $store_id );
    	$gravatar = $store_user->get_avatar();
    	return $gravatar;	
    }, 50, 3 );
    add_filter( 'wcfmmp_map_icon_width', function( $width ) {
    	return 50;
    });
    add_filter( 'wcfmmp_map_icon_height', function( $width ) {
    	return 50;
    });

    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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Map Icon Customised’ is closed to new replies.