Claim your freedom to choose the perfect partner for your multi-vendor journey.

FREEDOM25

Celebrate the festive season by giving your marketplace a powerful lift!

FESTIVE20

5.0.0
Something big is coming for marketplace admins… MultiVendorX 5.0 is almost here. Are you ready?
Be the first to explore all the game-changing features!
Power your marketplace dreams with unbeatable Black Friday deals!

MVXBLACK30

Supercharge your marketplace vision with unstoppable Cyber Monday deals!

MVXCYBER30

Holiday cheer, bigger savings
Take 25% off-because your marketplace deserves a gift too.

happyholiday

View Categories

Add vendor logo beside sold by vendor name and on vendor tab

To add the vendor logo beside sold by vendor name and on vendor tab –

add_filter( 'mvx_sold_by_text', 'vendor_logo_before_sold_by', 10, 2 );
function vendor_logo_before_sold_by($sold_by, $id) {
    $vendor = get_mvx_product_vendors($id);
    if($vendor)
        $image = '<a href="' . $vendor->permalink . '"><img src="' . $vendor->get_image() . '" style="width:30%!important;max-height:30px!important;object-fit:contain!important;"/></a>'.$sold_by;
    return $image;
}
add_filter( 'mvx_before_seller_info_tab', 'vendor_logo_before_product_vendor' );
function vendor_logo_before_product_vendor($logo) {
    global $product;
    $vendor = get_mvx_product_vendors($product->get_id());
    if($vendor)
        $logo = '<a href="' . $vendor->permalink . '"><img src="' . $vendor->get_image() . '" style="width:30%!important;max-height:30px!important;object-fit:contain!important;"/></a>';
    return $logo;
}

Leave a Reply

Shopping Cart
Scroll to Top