Forcing your checkout process to default currency in Zen Cart
Sometimes, the owners of ecommerce system would like to force the customers to choose store's default/chosen currency and why is that? Because, the instability of worldwide economy may cause the storeowners to loss profits during currency converting. Therefore, the storeowners have to ensure that it doesn't affect them by forcing their customers to select default currency (normally, it's the currency where the storeowner resides) during checkout process.
The easy way is to hide the currency converter pulldown menu once the customer entered the checkout process and set the current currency to your chosen/default currency. The steps explained here assume that currency converter is placed on the header instead of sidebar menu as it's way neater and you have to use the override system to have your own theme:
1. Put the code below on your /includes/templates/your_own_theme/common/tpl.header.php
$checkout_shipping = '/index.php?main_page=checkout_shipping'; $checkout_payment= '/index.php?main_page=checkout_payment'; $checkout_confirm= '/index.php?main_page=checkout_confirmation'; $request_url=$_SERVER['REQUEST_URI']; if ($request_url == $checkout_shipping || $request_url == $checkout_payment || $request_url == $checkout_confirm) { $_SESSION['currency'] = 'AUD'; }
This will get the current url address of your browser, so whenever the customer entered checkout process such as shipping, payment and confirmation then the current currency automatically converted to AUD (you may suit this currency as you please)
2. Place the code below just before your currency converter pulldown menu in the header
$checkout_shipping = '/index.php?main_page=checkout_shipping'; $checkout_payment= '/index.php?main_page=checkout_payment'; $checkout_confirm= '/index.php?main_page=checkout_confirmation'; $request_url=$_SERVER['REQUEST_URI']; if ($request_url != $checkout_shipping && $request_url != $checkout_payment && $request_url != $checkout_confirm) {
This ensures the currency converter pulldown menu will not be displayed during checkout process.
Of course, there is another way to force currency during checkout process, which's to hack into zencart order_total module. However, it is prone to error as you have to hardcode it manually. Furthermore, there is no point of having a currency converter menu during checkout process while you have to essentially force your customers to use your default/chosen currency.

Comments
It is my great pleasure to
It is my great pleasure to visit your website and to enjoy your excellent post here. I like that very much. leather riding jackets / camel leather jacket / fashion leather jackets / cute leather jackets / classic leather jacket / big and tall leather jackets / long leather jacket / suede leather jacket
I really loved reading your
I really loved reading your blog. It was very well authored and easy to understand. Unlike additional blogs I have read which are really not tht good. I also found your posts very interesting. In fact after reading, I had to go show it to my friend and he enjoyed it as well!Thanks so much for this! I have not been this thrilled by a blog post for quite some time! You’ve got it, whatever that means in blogging. Anyway, You’re definitely someone that has something to say that people should hear. Keep up the wonderful job. Keep on inspiring the people!312-50 dumps 70-649 dumps A00-201 dumps 70-272 dumps 350-001 dumps 220-301 dumps 1z0-147 dumps 310-065 dumps
I just can’t stop reading
I just can’t stop reading this. Its so fresh, so filled with updates that I just didn’t know.I am delighted to see that people are in fact writing about this subject in such a elegant way, presenting us all diverse parts to it. You’re a fine blogger. Please carry on with it. I can’t wait to read what’s after that.Thanks so much fo Testking N10-004 Testking 1Y0-A18 Testking 640-864 Testking VCP-511 Testking 70-515 Testking 650-987 Testking 642-437 Testking E20-001