Woocommerce change prices for a certain country [closed]
You need to use the woocommerce_get_price filter: add_filter(‘woocommerce_get_price’, ‘return_custom_price’, $product, 2); function return_custom_price($price, $product) { global $post, $woocommerce; // Array containing country codes $county = array(‘CH’); // Amount to increase by $amount = 5; // If the custromers shipping country is in the array if ( in_array( $woocommerce->customer->get_shipping_country(), $county ) ){ // Return the price … Read more