Hi,
Please use this code for the purpose –
add_action('woocommerce_after_shop_loop_item_title', function() {
global $WCFM, $WCFMmp, $product;
if ( wcfm_is_store_page() ) return;
if( !$product ) return;
$product_id = $product->get_id();
$vendor_id = $WCFM->wcfm_vendor_support->wcfm_get_vendor_id_from_product( $product_id );
if( $vendor_id ) {
$vendor_data = get_user_meta( $vendor_id, 'wcfmmp_profile_settings', true );
$city = isset( $vendor_data['address']['city'] ) ? $vendor_data['address']['city'] : '';
echo '<div><span class="wcfm_dashboard_item_title">' . $city . '</span></div>';
}
}, 51 );
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