MemberPress: Set UK Transactions VAT to 0

function mepr_cust_uk_vat( $vat_countries ) { if( isset( $vat_countries ) ) { $gb = $vat_countries[‘GB’]; if ( isset( $gb ) ) { $gb[‘rate’] = 0; $vat_countries[‘GB’] = $gb; } } return $vat_countries; } add_filter( ‘mepr-vat-countries’, ‘mepr_cust_uk_vat’ );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