• rudrapuja

    (@rudrapuja)


    checkout currency change according to country of shipping

    in this image third option is checkout in your plugin. pro version.
    is that checkout button will do my work i explained below,

    I want the feature currency should change according to shipping currency auto change,

    when customer change shipping country currency should change according to that “without using geolocation”..

    I dont want to use geolocation it creates problem in google merchant products..price crawl error comes.

    if i buy pro version will my work get done ? can we get refund. if yes howmany days refund policy.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter rudrapuja

    (@rudrapuja)

    our default currency would be INR, and if customer is outside india, and he use shipping country United states, will currency change to USD $ so paypal payment gateway accepts payment. paypal dont accept payment in INR.

    alyabee

    (@alyabee)

    Just needed a similar thing. I used this, after changing the country it sets correct currency but the page needs to be refreshed… At least it works. If you can improve it please share here.

    
    add_action( 'woocommerce_cart_calculate_fees', 'change_currency_on_country_update' );
    function change_currency_on_country_update() {
        if ( is_admin() && ! defined( 'DOING_AJAX' ) )
            return;
        $country = WC()->customer->get_shipping_country();
    	
        if ( class_exists( 'WOOMULTI_CURRENCY_F_Data' ) ) {
    		$wmc = WOOMULTI_CURRENCY_F_Data::get_ins();
    		switch ( $country ) {
    			case 'IN':
    				$wmc->set_current_currency( 'INR' );
    				break;
    			default:
    				$wmc->set_current_currency( 'USD' );
    		}
    	}
    }
    
    Plugin Support angelagrey

    (@angelagrey)

    Hi,

    There’s an option “Change currency follow” in the Checkout tab (premium version only). This option will make the currency changes based on the customer’s billing/shipping countries, it’ll change to currencies you assign to that country in the Location tab.

    Please regard our documentation of this part for more info.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘checkout currency change according to shipping country without using geolocation’ is closed to new replies.