Magento Storeview mit Flaggen

/ Published in: PHP
Save to your folder(s)

Magento Storeview über Flaggenbuttons steuern statt über Dropdown

Copy this code and paste it in your HTML
  1. <?php if(count($this->getStores())>1): ?>
  2. <div class="box box-language">
  3. <?php foreach ($this->getStores() as $_lang): ?>
  4. <a href="<?php echo $_lang->getCurrentUrl() ?>"><img src="/skin/frontend/myTemplate/default/images/ar/<?php echo $this->htmlEscape($_lang->getName()) ?>.gif" border="0"></a>
  5. <?php endforeach; ?>
  6. </div>
  7. <?php endif; ?>


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.