Custom Tax Display Settings for Regular Prices by Specific Wholesale Roles

// Display regular price excluding tax for specific user role add_filter(‘woocommerce_get_price_html’, ‘custom_display_regular_price_ex_tax_for_role’, 100, 2); function custom_display_regular_price_ex_tax_for_role($price_html, $product) { // Only run on frontend and for logged-in users if (is_admin() || !is_user_logged_in()) return $price_html; // Get current user and their roles…Continue reading

MemberPress: Send Tax (e.g. VAT) to Stripe

add_action(‘mepr_stripe_create_customer_args’, function ($args, $usr) { $vat = sanitize_text_field($_REQUEST[‘mepr_vat_number’]); //Check one more time to make sure we have a vat number if (isset($vat) && !empty($vat)) { $tax_id = array( “type” => “eu_vat”, //Replace the “eu_vat” value with the predefined value of…Continue reading