Jump to content
Sign in to follow this  
goyan

Restrict logged user to use only currency which correspond to his/her location

Recommended Posts

How can I disable in "Site settings" change of currency for logged user?

I want to restrict logged user to use only currency which correspond to his/her billing address.

 

 

 

Share this post


Link to post
Share on other sites

In checkout_shipping.php I have put this:

		if($customer_address['countries_id'] == 236)
		{
		  $currency = 'RSD';		
		}
		else 
		{
		  $currency = 'EUR';		
		}

but $customer_address['countries_id'] is not right variable for this. Which variable should I use instead, for customer billing address?

Edited by goyan

Share this post


Link to post
Share on other sites

Solved:

		if ($order->delivery['country_id'] == STORE_COUNTRY)
		{
		  $currency = 'RSD';		
		}
		else 
		{
		  $currency = 'EUR';		
		}

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×