Add Sold By : Seller Name Below Product Title

This topic contains 12 reply and 4 voices, and was last updated by NDR INVESTMENTS 8 years, 8 months ago
Viewing 12 Posts - 1 through 12 (of 12 total)
Author Posts
July 7, 2015 at 11:12 am 54527
NDR INVESTMENTS Hi Team, How to show Sold By : Seller Name or Seller : Store Name below each product title. Thanks,
July 7, 2015 at 12:21 pm 54544
towhid towhid

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 🙂

July 7, 2015 at 12:42 pm 54549
meer irfan meer irfan

Hi,

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

Thanks,

July 8, 2015 at 1:52 am 54667
Sir Kels Sir Kels

+1 on this too

July 8, 2015 at 11:07 am 54699
meer irfan meer irfan

Hi towhid,

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

Thanks,

July 8, 2015 at 2:27 pm 54748
towhid towhid This reply has been marked as private.
July 8, 2015 at 3:55 pm 54783
NDR INVESTMENTS NDR INVESTMENTS

Hi

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

July 8, 2015 at 4:01 pm 54786
towhid towhid

Hello,

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

Thanks

July 8, 2015 at 4:11 pm 54788
NDR INVESTMENTS NDR INVESTMENTS This reply has been marked as private.
July 9, 2015 at 8:53 am 54856
towhid towhid This reply has been marked as private.
July 9, 2015 at 2:21 pm 54909
NDR INVESTMENTS NDR INVESTMENTS This reply has been marked as private.
July 9, 2015 at 3:11 pm 54918
towhid towhid

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

July 9, 2015 at 3:17 pm 54922
NDR INVESTMENTS NDR INVESTMENTS

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

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