Change the sold by link label to vendor’s name

if ( ! function_exists( ‘display_solby_as_first_name’ ) ) { /** * Display sold by as vendor first name. * * @param string $soldby the link with name. * @param int $vendor_id the Vendor ID. */ function display_solby_as_first_name( $soldby, $vendor_id ) {…Continue reading

Add vat over the commission

// Add 16% VAT to vendor commission add_filter( ‘wcv_process_commission’, ‘my_wcv_commission_rate’, 10, 5 ); add_filter( ‘wcv_commission_rate’, ‘my_wcv_commission_rate’, 10, 5 ); function my_wcv_commission_rate( $commission, $product_id, $product_price, $order, $qty ) { $vat_fee = 0.16; $marketplace_split = $product_price – $commission; $vat = $marketplace_split *…Continue reading