Home Forums Theme Support Dokan Product Vendor Name under Product Title

This topic is: not resolved

Tagged: ,

This topic contains 3 replies, has 2 voices, and was last updated by  towhid 3 years, 11 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #52804

    Kireeti
    Member
    Post count: 80

    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

    #52806

    towhid
    Participant
    Post count: 4505

    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 ๐Ÿ™‚

    #52835

    Kireeti
    Member
    Post count: 80
    This reply has been marked as private.
    #52945

    towhid
    Participant
    Post count: 4505

    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 4 posts - 1 through 4 (of 4 total)

The topic ‘Product Vendor Name under Product Title’ is closed to new replies.