test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Gigaparts Friend
    #946239

    Hello

    I want to translate my site in 7 languages. I want to add a top bar like in JA megastore where i can place the language switcher, currency selector and Login.

    Please advise.

    Saguaros Moderator
    #946476

    Hi

    In JA Megastore, we implement a block called topbar which shows on the top of the page with elements you listed above, you can achieve that by following these steps:

    • Create a new PHP file called topbar.php in the path: ROOT/templates/ja_megastore/tpls/blocks/topbar.php

    • This is snippet of code inside this new file:
      
      <?php
      /**
      <ul>
      <li>
      <hr />
      </li>
      <li>JA Megastore Template</li>
      <li>
      <hr />
      </li>
      <li>Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.</li>
      <li>@license - Copyrighted Commercial Software</li>
      <li>Author: J.O.O.M Solutions Co., Ltd</li>
      <li>Websites:  <a href="http://www.joomlart.com">http://www.joomlart.com</a> -  <a href="http://www.joomlancers.com">http://www.joomlancers.com</a></li>
      <li>This file may not be redistributed in whole or significant part.</li>
      <li>
      <hr />
      <p>*/</p>
      </li>
      </ul></li>
      </ul>
      <p>defined('_JEXEC') or die;
      ?></p>
      <!-- TOPBAR -->
      <p><div class=&quot;wrap t3-topbar <?php $this->_c('topbar') ?>&quot;>
      <div class=&quot;container&quot;>
      <div class=&quot;row&quot;>
      <?php if ($this->countModules('topbar-left')) : ?>
      <div class=&quot;col-sm-4 hidden-xs&quot;>
      <div class=&quot;topbar-left&quot;>
      <jdoc:include type=&quot;modules&quot; name=&quot;<?php $this->_p('topbar-left') ?>&quot; />
      </div>
      </div>
      <?php endif ?></p>
      <pre><code>        <div class="col-sm-8">
                  <?php if ($this->countModules('topbar-right') || $this->countModules('languageswitcherload')) : ?>
                      <div class="topbar-right text-right">
                          <jdoc:include type="modules" name="<?php $this->_p('topbar-right') ?>" />
      
                          <jdoc:include type="modules" name="<?php $this->_p('languageswitcherload') ?>" style="raw" />
                      </div>
                  <?php endif ?>
              </div>
          </div>
      </div></code></pre>
      <p></div></p>
      <!-- //TOPBAR -->
      <p>
      • And, of course, you will have to style for this block on current template you’re using. Try to use editor like Firebug to see how its styled in JA Megastore template.
Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 1 reply, has 2 voices, and was last updated by  Saguaros 8 years, 4 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum