Zen Cart Logo
Forums / Basic Configuration / currency drop down list error

currency drop down list error

Locked

Views: 1,553

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
29 Mar 2010, 10:24 AM
#1
jc0807 avatar

jc0807

New Zenner

Join Date:
Mar 2010
Posts:
2
Plugin Contributions:
0

currency drop down list error

I downloaded and installed a theme but an error shows up where the currency drop down list suppose to be.

I'm having trouble figuring out why it shows the error where i have not touched any of the codes.

Here is the error message i get

$ currencies); $currencies_array = array(); while (list($key, $value) = each($currencies->currencies)) { $currencies_array[] = array('id' => $key, 'text' => $value['title']); } $hidden_get_variables = ''; reset($_GET); while (list($key, $value) = each($_GET)) { if ( ($key != 'currency') && ($key != zen_session_name()) && ($key != 'x') && ($key != 'y') ) { $hidden_get_variables .= zen_draw_hidden_field($key, $value); } } } ?>

Can someone please lead me in the right direction on how this can be solved?

Where i can correct the code?

Or what this error means

You can view my store at https://www.oohweesupplements.co.nz/shop/

Thanks in advance

7 Apr 2010, 6:33 AM
#2
jc0807 avatar

jc0807

New Zenner

Join Date:
Mar 2010
Posts:
2
Plugin Contributions:
0

Re: currency drop down list error

bump anyone

7 Apr 2010, 6:54 AM
#3
twaddle avatar

twaddle

Banned

Join Date:
Jul 2009
Location:
Prague, Czech Republic
Posts:
478
Plugin Contributions:
0

Re: currency drop down list error

If you haven't touched any of the code, I would suggest uploading the template files again if you haven't already. There's nothing wrong with the template itself as I have it in action here and as you can see works fine - I also used Firebug to drop in the currency drop down code from mine into yours and the drop down on your site worked just fine, no errors at all

10 Apr 2010, 5:31 PM
#4
eurotrash avatar

eurotrash

New Zenner

Join Date:
Apr 2010
Location:
Austin, TX, USA
Posts:
1
Plugin Contributions:
0

Re: currency drop down list error

I ran into the same issue. Look for the following code in /includes/templates/template_name/common/tpl_header.php:

<?
		if (isset($currencies) && is_object($currencies)) {
							

Add 'php' (without the quotes) after the question mark, so that it looks like this:

<?php
		if (isset($currencies) && is_object($currencies)) {
							

This fixed the issue for me.