goyan Posted May 10, 2017 Share Posted May 10, 2017 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. Link to comment Share on other sites More sharing options...
goyan Posted May 10, 2017 Author Share Posted May 10, 2017 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? Link to comment Share on other sites More sharing options...
goyan Posted May 10, 2017 Author Share Posted May 10, 2017 Solved: if ($order->delivery['country_id'] == STORE_COUNTRY) { $currency = 'RSD'; } else { $currency = 'EUR'; } Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.