almanet Posted November 24, 2007 Posted November 24, 2007 Hello, Would someone know how I can get at the currently selected currency in the checkout_payment.php page? Or in the checkout_confirmation.php page? I have one payment module which only accepts EUR, so I would like to hide it when it doesn't apply. Thanks, Mi Quote
Guest Posted November 24, 2007 Posted November 24, 2007 Hello, Would someone know how I can get at the currently selected currency in the checkout_payment.php page? Or in the checkout_confirmation.php page? I have one payment module which only accepts EUR, so I would like to hide it when it doesn't apply. Thanks, Mi If you only have one payment module which only accepts EUR, why would you want to hide the EUR. I would have thought that you would only want the EUR in your shop. Quote
almanet Posted November 25, 2007 Author Posted November 25, 2007 Obviously, the shop does accept other currencies, and the other payment methods do accept different currencies. It's only clickandpay which only accepts Euros, so it needs to be treated specially. I found the currency info in the meantime, so I have a temporary workaround: if ( ($selection[$i]['id'] == 'clickandbuy') && ($order->info['currency'] != 'EUR') ) { echo "<!-- Skipping ClickandBuy because not EUR: currency=" . $order->info['currency'] . " -->"; continue; } A better solution would be to change the currency in the checkout_confirmation.php page if the payemnt module selected was ClickandBuy, and reload the page with EUR. But I'm not sure how to do that. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.