Product Vendor Name under Product Title

This topic contains 3 reply and 2 voices, and was last updated by towhid 8 years, 10 months ago
Viewing 3 Posts - 1 through 3 (of 3 total)
Author Posts
June 23, 2015 at 1:38 pm 52804
towhid Hello Guys, I went through a support ticket https://wedevs.com/support/topic/display-product-vendors-name/ and see similar request from another user. I followed the path you said "plugins/woocommerce/templates/single-product/content-product.php" and i didn't find the file you mentioned. I found a file under my theme woocommerce folder path is given below public_html/wp-content/themes/nielsen/woocommerce/content-product.php When i paste the code there it is directly displaying the code under product title but not vendor name, Please find the link to attachment for more details https://www.dropbox.com/s/t8s5jyve13y61qh/ProductVendor.PNG?dl=0
June 23, 2015 at 1:52 pm 52806
towhid towhid

Please provide your login details by using this form: http://wedevs.com/provide-login-details/. I will have a look what is going wrong.

Thank you 🙂

June 23, 2015 at 3:21 pm 52835
Kireeti Kireeti This reply has been marked as private.
June 24, 2015 at 12:55 pm 52945
towhid towhid

Hello Kireeti,

I have uploaded the file in here /public_html/wp-content/themes/nielsen-child/woocommerce/content-product.php. But that did not work because it changes homepage product layout. The theme you are using has “options framework” which is already customized based on woocommerce. So when I am going to work my file through child theme it is not matching.

Here is my code snippet:

global $product;

		$author     = get_user_by( 'id', $product->post->post_author );
    	$store_info = dokan_get_store_info( $author->ID );
		if ( !empty( $store_info['store_name'] ) ) { ?>
                <span class="details">
                	<?php echo $store_info['price']; ?>
                    <?php printf( '<a href="%s">%s</a>', dokan_get_store_url( $author->ID ), $author->display_name ); ?>
                </span>
 		<?php } ?>

I tried my best to provide support you. But when it need huge customization I can not provide you support for that.

Hope you understand.

Thanks 🙂

Viewing 3 Posts - 1 through 3 (of 3 total)