Forums / Currencies & Sales Taxes, VAT, GST, etc. / Country flags instead of drop-down currency selector

Country flags instead of drop-down currency selector

Locked
Results 1 to 14 of 14
This thread is locked. New replies are disabled.
13 Nov 2006, 08:39
#1
needhelp123 avatar

needhelp123

New Zenner

Join Date:
Oct 2006
Posts:
5
Plugin Contributions:
0

Country flags instead of drop-down currency selector

I have been searching the forums for a long time but haven't been able to find the solution (or a good/easy one anyway), so I would love some help!

I would like the user to be able to select a currency based on their country flag icon (similar to language selection) rather than the default drop-down currency text selector.

Any help is very much appreciated!

(By the way, I use version 1.3.5)
13 Nov 2006, 09:16
#2
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Posts:
1,156
Plugin Contributions:
0

Re: Country flags instead of drop-down currency selector

You can refer to the code of Language Sidebox and the Currencies Sidebox, and adapt it for your use. The display of flags, signs and names both share similar concept.

And there is a mod which modfied the above sideboxes and display Currencies Signs and Language Flags in the header.
Language/Currency Links in Header.
And a related topic.
Lang selector

And also there are topics and some questions I had answered which related to the above subjects and you can search for it for more reference.
16 Nov 2006, 04:24
#4
needhelp123 avatar

needhelp123

New Zenner

Join Date:
Oct 2006
Posts:
5
Plugin Contributions:
0

Re: Country flags instead of drop-down currency selector

aspudden, thanks for posting the link. I have tried the mod but it doesn't work with version 1.3.5, and I don't know what to alter to make it work either.
14 Mar 2007, 14:13
#5
buddingm avatar

buddingm

New Zenner

Join Date:
Mar 2007
Posts:
13
Plugin Contributions:
0

Re: Country flags instead of drop-down currency selector

has anyone yet the answer

Marco
23 Mar 2007, 01:00
#6
etoytokyo avatar

etoytokyo

New Zenner

Join Date:
Mar 2007
Posts:
6
Plugin Contributions:
0

Re: Country flags instead of drop-down currency selector

buddingm:

has anyone yet the answer

Marco



in your Admin page;
Configuration > mystore > Switch To Default Language Currency

hope that help
11 Sep 2008, 10:02
#7
hindley08 avatar

hindley08

New Zenner

Join Date:
Jul 2008
Posts:
35
Plugin Contributions:
0

Re: Country flags instead of drop-down currency selector

I'm also looking for a solution to this. I'd like to change from drop-down menu to country flags. Please help!
27 Apr 2010, 13:46
#8
fergusmacdonald avatar

fergusmacdonald

Zen Follower

Join Date:
Oct 2007
Posts:
243
Plugin Contributions:
0

Re: Country flags instead of drop-down currency selector

Has anyone implemented a solution to displaying country flags in stead of a dropdown for the currency selector?
27 Apr 2010, 17:38
#9
royal avatar

royal

Zen Follower

Join Date:
Jun 2008
Posts:
261
Plugin Contributions:
0

Re: Country flags instead of drop-down currency selector

Hello fergusmacdonald,

Check my website in my signature. Is that something you are looking for?
28 Apr 2010, 07:59
#10
fergusmacdonald avatar

fergusmacdonald

Zen Follower

Join Date:
Oct 2007
Posts:
243
Plugin Contributions:
0

Re: Country flags instead of drop-down currency selector

Hi Royal,

Yes indeed! Did you do that yourself, or have you downloaded an add-on from somewhere?
28 Apr 2010, 10:31
#11
royal avatar

royal

Zen Follower

Join Date:
Jun 2008
Posts:
261
Plugin Contributions:
0

Re: Country flags instead of drop-down currency selector

Hello fergusmacdonald,

Yes! I did it myself.

I add these codes below.

Go to: includes/templates/YOUR_TEMPLATE/common/tpl_header.php

I make sure that the codes are in between the <ul> and </ul>. And after checkout.

<li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
<?php }?>
<li><a href="index.php?currency=CAD&main_page=index"><img src="images/YOUR_IMAGE.gif" alt="Canada Currency"/> CAD</a></li>
<li><a href="index.php?currency=USD&main_page=index"><img src="images/YOUR_IMAGE.gif" alt="United States Currency"/> USD</a></li>
<li><a href="index.php?currency=AUD&main_page=index"><img src="images/YOUR_IMAGE.gif" alt="Australian Currency"/> AUD</a></li>
</ul>


Note: If you add too much currency. You will run out of room in your header.
28 Apr 2010, 14:53
#12
fergusmacdonald avatar

fergusmacdonald

Zen Follower

Join Date:
Oct 2007
Posts:
243
Plugin Contributions:
0

Re: Country flags instead of drop-down currency selector

Great, thanks for that. Will get my developer to look into this as will probably introduce it in a sidebar rather than the header.
01 Jun 2010, 09:26
#13
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Posts:
795
Plugin Contributions:
0

Re: Country flags instead of drop-down currency selector

Royal:

Hello fergusmacdonald,

Yes! I did it myself.

I add these codes below.

Go to: includes/templates/YOUR_TEMPLATE/common/tpl_header.php

I make sure that the codes are in between the <ul> and </ul>. And after checkout.

<li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
<?php }?>
<li><a href="index.php?currency=CAD&main_page=index"><img src="images/YOUR_IMAGE.gif" alt="Canada Currency"/> CAD</a></li>
<li><a href="index.php?currency=USD&main_page=index"><img src="images/YOUR_IMAGE.gif" alt="United States Currency"/> USD</a></li>
<li><a href="index.php?currency=AUD&main_page=index"><img src="images/YOUR_IMAGE.gif" alt="Australian Currency"/> AUD</a></li>
</ul>


Note: If you add too much currency. You will run out of room in your header.


Can you tell my why it has to be after the checkout line of code?

The way my site is modified, I have to put this code in tpl_main_page, since it's above the 'header.' Will this cause problems?
01 Jun 2010, 10:28
#14
royal avatar

royal

Zen Follower

Join Date:
Jun 2008
Posts:
261
Plugin Contributions:
0

Re: Country flags instead of drop-down currency selector

Hello khopek,

You can have it anywhere you like.

For example check here.

The way my site is modified, I have to put this code in tpl_main_page, since it's above the 'header.' Will this cause problems?


It would not cause a problem. Customer would have to be at the main page to see it.