Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › Show Product Location not working
Tagged: multivendor
- This topic has 3 replies, 3 voices, and was last updated 4 years, 9 months ago by WCFM Forum.
- AuthorPosts
- November 23, 2019 at 3:57 am #93494patrickParticipant
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. - November 26, 2019 at 2:25 pm #94016WCFM ForumMember
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
- January 21, 2020 at 2:48 pm #102990Sandeep TiwariParticipant
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. - February 6, 2020 at 4:20 pm #105835WCFM ForumMember
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
- AuthorPosts
- The topic ‘Show Product Location not working’ is closed to new replies.