antalya gergi tavan antalya duvar kağıdı

Currency Selection option

Home Support Free Theme: Access Shop Currency Selection option

This topic contains 10 replies, has 3 voices, and was last updated by  GigiSan 1 year, 1 month ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
  • #4036


    Do you have currency selection option, I can not find it on the home page
    Thank you


    Hi There,

    Currency is not included in current version we are about o include in later version.
    For now you can add this on the header.phtml file :

    <div class="currency-switcher">
                                            <?php echo $this->getChildHtml('currency_switcher') ?>

    That must get you the currency switcher on the place youmplaced this code.




    Hello AccessShop,

    I’m currently using the Lite theme version 1.0.6 on Magento CE
    I added the code you posted right after the store view selector in


                    <div class="left-header-top">
                        <?php echo $this->getChildHtml('block_header_links_top_left'); ?>
                        <?php echo $this->getChildHtml('store_language') ?>
                        <strong><div class="currency-switcher">
                            <?php echo $this->getChildHtml('currency_switcher') ?>
                        <?php echo $this->getChildHtml('topContainer'); ?>

    …but I still don’t see it on the page and the html source shows no code in the <div>.
    Could it be a wrong block name in the getChildHtml()?
    Forgive me for asking but I’m quite new to Magento development.

    Home page

    Source view

    Thanks in advance for your help and for this awesome theme!
    I’m just doodling with it right now but later on we will employ it on a production project and most probably switch to PRO version.

    • This reply was modified 1 year, 3 months ago by  GigiSan. Reason: Corrected img links


    Sorry but I can’t edit the post anymore.
    Ignore the <strong> tag in the HTML code, I just wanted it to be bold in the post.


    Hi There,

    You should add currency rate for your new base currency. System – Manage Currency – Rates
    Without exchange rates multiple currencies wont be available.




    Thanks for your answer, but I’m afraid the currency rates are set and if I activate the default community theme (rwd) the selector is shown correctly:


    rwd theme

    Thanks again for your support. Have a nice day!


    Add this tag in local.xml

    <block type="directory/currency" name="currency" as="currency_switcher" template="directory/currency.phtml"/>

    <reference name="header">

    or copy directory.xml file into theme layout folder.




    Thanks, adding the block in local.xml did the trick.

    accesshop currency selector

    I will try to style it to make it fit after the store view selector.

    Thanks for your support!

    • This reply was modified 1 year, 3 months ago by  GigiSan.

    Leave us a rating on Magento conntect page.

    Also mention the css code if you get it good so that it would be helpful for other users.




    Hello everyone!
    Sorry for the late response but I only got time now to work on it.

    I managed to fit the selector in the header but that required some minor changes in the layout.
    Here’s what I did:

    • Created a copy of app\design\frontend\rwd\default\template\directory\currency.phtml into app\design\frontend\accessshop\default\template\directory\currencylite.phtml
    • Note the rename that allowed me to keep the original switcher in the other pages such as category listing.
    • On the file above I removed the <label> to get rid of the “SELECT YOUR CURRENCY” text and added class currencylite to the <div>. This should be the final currencylite.phtml:
    • <?php
       * Currency switcher
       * @see Mage_Directory_Block_Currency
      <?php if($this->getCurrencyCount()>1): ?>
      <div class="currency-switcher currencylite">
          <select id="select-currency" name="currency" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Your Currency')) ?>" onchange="setLocation(this.value)">
              <?php foreach ($this->getCurrencies() as $_code => $_name): ?>
              <option value="<?php echo $this->getSwitchCurrencyUrl($_code) ?>"<?php if($_code==$this->getCurrentCurrencyCode()): ?> selected="selected"<?php endif; ?>>
                  <?php echo $_name ?> - <?php echo $_code ?>
          <?php endforeach; ?>
      <?php endif; ?>
    • Added the following to skin\frontend\accessshop\default\css\main.css:
    • .currencylite{
          display: inline;
    • Modified the <div class="left-header-top"> in app\design\frontend\accessshop\default\template\page\html\header.phtml to remove the excess <div> around the switcher. This should be the final tag:
    • <div class="left-header-top">
          <?php echo $this->getChildHtml('block_header_links_top_left'); ?>
          <?php echo $this->getChildHtml('store_language') ?>
          <?php echo $this->getChildHtml('currency_switcher') ?>
          <?php echo $this->getChildHtml('topContainer'); ?>
    • Almost there. But as you can see, the width doesn’t fit in the line.
    • Img 1

    • So I was forced to get rid of the contact info on the top left by commenting the <block> with name="block_header_links_top_left" in app\design\frontend\accessshop\default\layout\local.xml
    • Done! Notice the native currency switcher was unaltered.
    • Img 2

    That’s it! I would gladly accept improvements of my solution cause my skills in pure Magento development are quite poor so I could have broken one or two best practices.

    Hope it helps!



    On top of that, don’t forget to change the template on the block in app\design\frontend\accessshop\default\layout\local.xml, like this:
    <block type="directory/currency" name="currency" as="currency_switcher" template="directory/currencylite.phtml"/>

    Notice the currencylite.pthml at the end.

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.

anal porno watch porn anal