Jump to content

Language and Currencie Block Issues


Recommended Posts

Hello everyone,

my shop is set to Danish, now I also added German as a language and Euro as currency, but the drop-down to select the language and/or currency is not working at all.

I'm using Version 1.5.6.1

http://www.chihuahua-vip-shop.com/

I can manually go to http://www.chihuahua-vip-shop.com/de/ to see the German version, so it is there and both the language and the currency are activated in my back office.

BUT I can't select the language when I visit my shop and there is no way I can change the currency from DKK to EUR, I hope someone can help me.

Link to comment
Share on other sites

Am I right here? What do I have to change?

 

<!-- Block currencies module -->

<script type="text/javascript">

$(document).ready(function () {

$("#setCurrency").mouseover(function(){

$(this).addClass("countries_hover");

$(".currencies_ul").addClass("currencies_ul_hover");

});

$("#setCurrency").mouseout(function(){

$(this).removeClass("countries_hover");

$(".currencies_ul").removeClass("currencies_ul_hover");

});

 

$('ul#first-currencies li:not(.selected)').css('opacity', 0.3);

$('ul#first-currencies li:not(.selected)').hover(function(){

$(this).css('opacity', 1);

}, function(){

$(this).css('opacity', 0.3);

});

});

</script>

 

<div id="currencies_block_top">

<form id="setCurrency" action="{$request_uri}" method="post">

<p>

<input type="hidden" name="id_currency" id="id_currency" value=""/>

<input type="hidden" name="SubmitCurrency" value="" />

{l s='Currency' mod='blockcurrencies'} : {$blockcurrencies_sign}

</p>

<ul id="first-currencies" class="currencies_ul">

{foreach from=$currencies key=k item=f_currency}

<li {if $cookie->id_currency == $f_currency.id_currency}class="selected"{/if}>

<a href="javascript:setCurrency({$f_currency.id_currency});" title="{$f_currency.name}" rel="nofollow">{$f_currency.sign}</a>

</li>

{/foreach}

</ul>

</form>

</div>

<!-- /Block currencies module -->

Link to comment
Share on other sites

Code for on hover is in this part:

$(document).ready(function () {
$("#setCurrency").mouseover(function(){
$(this).addClass("countries_hover");
$(".currencies_ul").addClass("currencies_ul_hover");
});
$("#setCurrency").mouseout(function(){
$(this).removeClass("countries_hover");
$(".currencies_ul").removeClass("currencies_ul_hover");
});

But you don't have countries div in your code.

 

Compare your themes module file and default module file and see the difference.

Edited by dioniz (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...