Untitled
unknown
plain_text
a year ago
703 B
7
Indexable
Never
add_action( 'woocommerce_shop_loop_item_title','sold_by2' ); function sold_by2(){ global $product; $product_id = $product->get_id(); $vendor_id = marketking()->get_product_vendor($product_id); $store_name = marketking()->get_store_name_display($vendor_id); // vendor store name here $store_url = marketking()->get_store_link($vendor_id); // store url here if ( !empty( $store_name ) ) { ?> <span class="SellerDetailsProductThumbnail"> <?php echo '<i style="font-size: 11px;" class="fa-solid fa-chevron-right"><a class="" href="'.$store_url.'">'.$store_name.'</a>'; ?> </span> <?php } }