need help for displaying vendor address on the single product page
-
Hello, sorry for my english im use google translate for this ??
need a code that will add the vendors address on the single product page,
I am already showing the vendor name on this page and it works great.this is the code i am using for this –
if (current_user_can(‘editor’)){
add_action( ‘woocommerce_single_product_summary’, ‘seller_name_on_single’, 11 );
function seller_name_on_single(){
global $product;
$seller = get_post_field( ‘post_author’, $product->get_id());
$author = get_user_by( ‘id’, $seller );$store_info = dokan_get_store_info( $author->ID );
if ( !empty( $store_info[‘store_name’] ) ) { ?>
<span class=”details”>
<?php printf( ‘GM: [ <a1 href=”%s”>%s‘, dokan_get_store_url( $author->ID ), $author->user_firstname ); ?>
<?php printf( ‘<a1 href=”%s”>%s‘, dokan_get_store_url( $author->ID ), $author->user_lastname ); ?></span>
<?php
}
}
}i just want to add address field to this, i already tried to add to this code billing adrress and it works,but I cannot figure out how to add “store adrress”
please, help ??
The page I need help with: [log in to see the link]
- The topic ‘need help for displaying vendor address on the single product page’ is closed to new replies.