Show Product Location not working

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM Show Product Location not working

Tagged: 

This topic contains 3 replies, has 3 voices, and was last updated by WCFM Forum WCFM Forum 2 weeks, 4 days ago.

  • Author
    Posts
  • #93494
    Avatar
    patrick
    Participant

    Hi,
    I have enabled to show product location on single product page, but this does not appear. Have entered the address in GEO my WP, updated WCFM to the latest version and we use the Woodmart theme.

  • #94016
    WCFM Forum
    WCFM Forum
    Keymaster

    HI,

    Well, this feature does not require GEO my WP plugin.

    It’s in built feature.

    Just be sure you have setup Map location for the product’s vendor.

    Thank You

  • #102990
    Avatar
    Sandeep Tiwari
    Participant

    Hi,

    I want to show product location in compare table of single product multiple vendor: just below vendor name for each vendor.

    Please help in getting me a response.

    Attachments:
    You must be logged in to view attached files.
  • #105835
    WCFM Forum
    WCFM Forum
    Keymaster

    Sure, please add this code to your site for the purpose –

    add_action('after_wcfmmp_sold_by_label_product_page', function( $vendor_id ) {
    	$store_user        = wcfmmp_get_store( $vendor_id );
    	$address  = $store_user->get_address_string();
    		
    	if( $address ) {
    		echo '<div class="wcfm-clearfix"></div>';
    		echo $address;
    		echo '<div class="wcfm-clearfix"></div>';
    	}
    });

    Add this code to your child theme’s functions.php
    In case you do not have child theme then add code using this plugin –¬†https://wordpress.org/plugins/code-snippets/

    Thank You

The topic ‘Show Product Location not working’ is closed to new replies.