m1_2k Posted January 15, 2006 Posted January 15, 2006 How would I change the Currency drop down section, into displaying the currency signs instead, and not having a drop down box section what so ever. A good example can be found on www.play.com, this is something to what I would like for my website. If anyone knows how this can be done, please let me know. M1_2k Quote
Guest Posted January 15, 2006 Posted January 15, 2006 You can edit/add currencies in admin>>localisation>>currencies... you can name them what you like :D Matti Quote
m1_2k Posted January 15, 2006 Author Posted January 15, 2006 You can edit/add currencies in admin>>localisation>>currencies... you can name them what you like :D Matti Thank you for reply, but I didnt want to change what the currencys are Im wanting to get rid of the drop down box all together and have a choices in a picture form. Please via my example, left hand side of the site www.play.com If you can still help thatwould be great. M1_2k Quote
joe7175 Posted March 8, 2006 Posted March 8, 2006 Thank you for reply, but I didnt want to change what the currencys are Im wanting to get rid of the drop down box all together and have a choices in a picture form. Please via my example, left hand side of the site www.play.com If you can still help thatwould be great. M1_2k Hi. You can get rid of the currency dropdown and have images (like Play.Com) by using php to get the base address then simple adding the '?currency=' call after. Place the code below where you want your new currency image: <?php $languages_string .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'currency=USD' . $key, $request_type) . '">' . tep_image('/images/usflag.jpg') . '</a><br>'; echo $languages_string; ?> Just change ('/images/usflag.jpg') to your image. Quote
joe7175 Posted March 8, 2006 Posted March 8, 2006 Ideally, you should change the $languages_string to $currency_string - it was a bit lazy of me not to change this. Quote
joe7175 Posted March 8, 2006 Posted March 8, 2006 You can also remove the '$key, $request_type' if you only intend to hardcode these images. So the complete code would like this this: <?php $currency_string .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'currency=USD') . '">' . tep_image('/images/usflag.jpg') . '</a><br>'; echo $currency_string; ?> Change 'currency=XXX' where xxx is the code of the currency you require, and; change '/images/usflag.jpg' to the location of the image you want for this currency. If you use the '$key, $request_type' code as shown in my first post you can simply assign values to your images and just call this link once, rather than having to paste it for each currency and image you require. For the shading effect, shown on play.com, just write a simple loop which picks up on the global currency variable and display a blacked out image or whatever. 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.