How to include a currency drop down selector just next to the language bar?

How to include a currency drop down selector just next to the language bar?

18 answers

Profile photo of Sherlock 0.00 $tone July 22, 2013
Public

Hi victorlai,

you just try as following
Open the layout file of app\design\frontend\default\jm_scerif\layout\page. xml there you look for this tag

HTML Code:

 <block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>

adding right below it this

HTML Code:

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

then you open app\design\frontend\default\jm_sceriftemplate\pag e\html\header.phtml there you would see this

PHP Code:

  <?php echo $this->getChildHtml('store_language'?>


you add right below it this code

PHP Code:

  <?php echo $this->getChildHtml('currencytop'?>


Also please be sure that you have setup several currencies in the back-end

#1
Profile photo of Victor Lai 0.00 $tone July 22, 2013
Public

I follow exactly what u said..but currency drop down not appear. ๐Ÿ™
Can u check for me?
I PM the required private info to u.

Hi victorlai,

you just try as following
Open the layout file of app\design\frontend\default\jm_scerif\layout\page. xml there you look for this tag

HTML Code:

 <block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>

adding right below it this

HTML Code:

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

then you open app\design\frontend\default\jm_sceriftemplate\pag e\html\header.phtml there you would see this

PHP Code:

  <?php echo $this->getChildHtml('store_language'?>


you add right below it this code

PHP Code:

  <?php echo $this->getChildHtml('currencytop'?>


Also please be sure that you have setup several currencies in the back-end

#2
Profile photo of Sherlock 0.00 $tone July 23, 2013
Public

Hi mate,

The admin account you gave me is not correct, as I mentioned before in your back-end you can Navigate to System >> Manage Currency >> Rates try to add rate for all of your currencies.

#3
Profile photo of Victor Lai 0.00 $tone July 24, 2013
Public

Now is OK already, but I want Currency Drop Down Menu same row with the "Your Language" bar…how to do it.

Hi mate,

The admin account you gave me is not correct, as I mentioned before in your back-end you can Navigate to System >> Manage Currency >> Rates try to add rate for all of your currencies.

#4
Profile photo of Sherlock 0.00 $tone July 24, 2013
Public

Hi victorlai,

you open the file of skin/frontend/default/jm_scerif/css/theme.css look for this css rule

HTML Code:

 .form-language label {
            
               padding-right: 5px;
            }

change it to

HTML Code:

.form-language label {
  float: left;
  padding-right: 5px;
}

also adding this rule of

HTML Code:

 div.langs-wrapper{
             float:left;
       }
#5
Profile photo of Sherlock 0.00 $tone July 25, 2013
Public

Hi victorlai,

you can check your site in firefox,using the firebug add-on, try to play around with it to see which html/css rule need to be changed to achieve that.

#10
Profile photo of Sherlock 0.00 $tone July 29, 2013
Public

hi mate,

in order for the top area is able to contain all those elements you would need to make it wider, you can open the file of skin/frontend/default/jm_scerif/css/theme.css, look for this rule

HTML Code:

 #quick-access .main {
  font-size: 11px;
  padding: 5px 0;
}

change it to

HTML Code:

  #quick-access .main {
  font-size: 11px;
  padding: 5px 0;
  width: 1240px;
}

then you add these new rules

HTML Code:

div.block-currency{
           float:left;
           width:500px;
       }
      div.block-currency div.block-title{
          float:left;
      }
     div.block-currency div.block-content{
          float:left;
      }

I hope that helps !

#12
Profile photo of Victor Lai 0.00 $tone July 29, 2013
Public

Now it is all at the same row. But still look wired with the two lines not fixed inside the currency bar. (see attachment). And I would like to make the currency bar thinner a bit. Any ideas?

#13
Profile photo of Sherlock 0.00 $tone July 30, 2013
Public

Hi ,

you can change the rule

HTML Code:

div.block-currency {
  float: left;
  width: 500px;
}

to this

HTML Code:

div.block-currency {
  float: left;
  width: 480px;
}

and

HTML Code:

div.block-currency div.block-content {
  float: left;
  
}

to

HTML Code:

div.block-currency div.block-content {
  float: left;
  padding: 0;
}

Hope that helps !

#14
Profile photo of Victor Lai 0.00 $tone August 12, 2013
Public

Do whatever you said, but it is not working. Can you please double check for me?

Hi ,

you can change the rule

HTML Code:

div.block-currency {
  float: left;
  width: 500px;
}

to this

HTML Code:

div.block-currency {
  float: left;
  width: 480px;
}

and

HTML Code:

div.block-currency div.block-content {
  float: left;
  
}

to

HTML Code:

div.block-currency div.block-content {
  float: left;
  padding: 0;
}

Hope that helps !

#15
Profile photo of Sherlock 0.00 $tone August 13, 2013
Public

You can open the theme.css file as mentioned, change this rule

HTML Code:

 div.block-currency div.block-content {
  float: left;
  padding: 0;
}

to this

HTML Code:

div.block-currency div.block-content {
  float: left;
  left: -190px;
  padding: 0;
  position: relative;
  top: 5px;
}

I hope it helps !

#18

Please login or Register to Submit Answer

Written By

Comments