antalya gergi tavan antalya duvar kağıdı

Reply To: Currency Selection option

Home Support Free Theme: Access Shop Currency Selection option Reply To: Currency Selection option



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!

anal porno watch porn anal