Home Forums Theme Support Dokan Add Sold By : Seller Name Below Product Title

This topic is: not resolved

This topic contains 12 replies, has 4 voices, and was last updated by  NDR INVESTMENTS 3 years, 10 months ago.

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #54527

    meer irfan
    Member
    Post count: 10

    Hi Team,

    How to show Sold By : Seller Name or Seller : Store Name below each product title.

    Thanks,

    #54544

    towhid
    Participant
    Post count: 4505

    Hello Meer,

    Please navigate to plugins/woocommerce/templates/single-product/content-product.php and find this line

    do_action( 'woocommerce_after_shop_loop_item_title' );
    		?>
    
    	</a>

    Paste following code after that line:

    <?php 
    		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 } ?>

    Thanks ๐Ÿ™‚

    #54549

    meer irfan
    Member
    Post count: 10

    Hi,

    I did added but it's not working. Nothing i can see changes

    Thanks,

    #54667

    Sir Kels
    Member
    Post count: 8

    +1 on this too

    #54699

    meer irfan
    Member
    Post count: 10

    Hi towhid,

    Got a fix nd resolved now, it's working.

    Thanks,

    #54748

    towhid
    Participant
    Post count: 4505
    This reply has been marked as private.
    #54783

    NDR INVESTMENTS
    Member
    Post count: 43

    Hi

    What was the solution to this? I tried the above as well, but wasn't successful. Thanks for your help.

    #54786

    towhid
    Participant
    Post count: 4505

    Hello,

    Make sure you have put the code in correct file in right directory.

    Thanks

    #54788

    NDR INVESTMENTS
    Member
    Post count: 43
    This reply has been marked as private.
    #54856

    towhid
    Participant
    Post count: 4505
    This reply has been marked as private.
    #54909

    NDR INVESTMENTS
    Member
    Post count: 43
    This reply has been marked as private.
    #54918

    towhid
    Participant
    Post count: 4505

    Hello,

    I have tried with the theme to adjust my code. The theme you are using is different then another theme. Please hire a developer and paste the code I have provided in this topic.

    Or you can contact with theme support.

    Thanks

    #54922

    NDR INVESTMENTS
    Member
    Post count: 43

    ok, thank you for looking into this. I'll contact the theme support.

Viewing 13 posts - 1 through 13 (of 13 total)

The topic ‘Add Sold By : Seller Name Below Product Title’ is closed to new replies.