Zen Cart Logo
Forums / Currencies & Sales Taxes, VAT, GST, etc. / Cannot Change to Another Currency

Cannot Change to Another Currency

Locked

Views: 2,189

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
22 Jan 2009, 2:23 PM
#1
leman avatar

leman

New Zenner

Join Date:
Jan 2009
Posts:
7
Plugin Contributions:
0

Cannot Change to Another Currency

I have been working on my downloaded template and found that
whenever I changed to another currency (on the main page or other pages) , it would still revert back and display the US Dollar (default).

I have inserted about 4 other currencies through the "Admin/Localization" folder and also set the "Switch to the Default Language Currency" to true.

This template has change the position to the header and has a tpl_currencies_header.php included.

Am I missing any other currency setting?
Or could it be the code

Here's the code for the currency header:

<div id="currency_header" class="topBox"> <form method="get" action="http://superbagshop.com/index.php?main_page=index" name="currencies_form_header"> Currencies: <br/> <select class="header" onchange="this.form.submit();" name="currency_header"> <option selected="selected" value="USD">US Dollar</option> <option value="EUR">Euro</option> <option value="SGD">Singapre Dollar</option> <option value="MYR">Malaysian Ringgit</option> <option value="IDR">Indonesian Rupiah</option> </select> <input type="hidden" value="SGD" name="currency_header"/> <input type="hidden" value="index" name="main_page"/> </form> </div>

Please assist. Thanks.

23 Jan 2009, 9:43 AM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Cannot Change to Another Currency

That "code" you are showing, is not the "code". It's the OUTPUT, from the code.
If you are using a customised template, one way to check if it's a template fault is to revert your site to the CLASSIC template and see if the problem persists. If it does not occur when in CLASSIC template, then you can surmise that the fault lies in some PHP code (not the HTML output) in the template you were using.

23 Jan 2009, 10:57 AM
#3
leman avatar

leman

New Zenner

Join Date:
Jan 2009
Posts:
7
Plugin Contributions:
0

Re: Cannot Change to Another Currency

Hi schoolboy,

Sorry for the mistake.

I put here for comparison both the codes from my downloaded template and the default template.

  1. tpl_currencies_header.php from /sideboxes folder of
    my downloaded template:
<?php /** * Top Box Template * * @package templateSystem * @copyright Copyright 2007 iChoze Internet Solutions <http://ichoze.com> * @copyright Portions Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 */ $content = ""; $content .= '<div id="currency_header" class="topBox">'; $content .= zen_draw_form('currencies_form_header', zen_href_link(basename(ereg_replace('.php','', $PHP_SELF)), '', $request_type, false), 'get'); $content .= 'Currencies:<br />' . zen_draw_pull_down_menu('currency_header', $currencies_array, $_SESSION['currency'], 'onchange="this.form.submit();" class="header"') . $hidden_get_variables . zen_hide_session_id(); $content .= '</form>'; $content .= '</div>'; ?>
  1. tpl_currencies_php from /sideboxes folder of the default
    template:
<?php /** * Side Box Template * * @package templateSystem * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: tpl_currencies.php 4566 2006-09-20 01:47:25Z birdbrain $ */ $content = ""; $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">'; $content .= zen_draw_form('currencies_form', zen_href_link(basename(ereg_replace('.php','', $PHP_SELF)), '', $request_type, false), 'get'); $content .= zen_draw_pull_down_menu('currency', $currencies_array, $_SESSION['currency'], 'onchange="this.form.submit();"') . $hidden_get_variables . zen_hide_session_id(); $content .= '</form>'; $content .= '</div>'; ?>

Thanks.

24 Jan 2009, 4:24 AM
#4
leman avatar

leman

New Zenner

Join Date:
Jan 2009
Posts:
7
Plugin Contributions:
0

Re: Cannot Change to Another Currency

I HAVE FOUND THE ANSWER!
I have to installed the new version Acadame V1.2 which
takes care of the currency selector.

Thanks so much.