Prestafan1234 Posted November 12, 2014 Share Posted November 12, 2014 Hi, I am working on a shop for a customer, which runs SSL. I have a problem with the language block, as it links to http. I have implemented the fix for the file links.php from Github regarding the problems in 1.5.6.2 and images - and that works fine as can be seen below. Can someone help with what needs to be changed to fix the problem in the module? <ul id="first-languages" class="dropdown-menu"> <li><a href="http://mywebsiteurl.dk/en/" title="English (English)"> <img src="https://mywebsiteurl.dk/img/l/1.jpg" alt="en" width="16" height="11" /> <span>English (English)</span> </a></li> <li><a href="http://mywebsiteurl.dk/sv/" title="Swedish"> Link to comment Share on other sites More sharing options...
tuk66 Posted November 12, 2014 Share Posted November 12, 2014 /modules/blocklanguages/blocklanguages.tpl file Link to comment Share on other sites More sharing options...
Prestafan1234 Posted November 12, 2014 Author Share Posted November 12, 2014 I have worked that much out ;-) But what to change in the file? <!-- Block languages module --> {if count($languages) > 1} <div id="languages_block_top"> {* @todo fix display current languages, removing the first foreach loop *} {foreach from=$languages key=k item=language name="languages"} {if $language.iso_code == $lang_iso} <p class="dropdown-toggle" data-toggle="dropdown"> <label>{l s='Language' mod='blocklanguages'} :</label> <img src="{$img_lang_dir}{$language.id_lang}.jpg" alt="{$language.iso_code}" width="16" height="11" /> <span>{$language.name}</span> <span class="caret"></span> </p> {/if} {/foreach} <ul id="first-languages" class="dropdown-menu"> {foreach from=$languages key=k item=language name="languages"} {if $language.iso_code != $lang_iso} <li> {if $language.iso_code != $lang_iso} {assign var=indice_lang value=$language.id_lang} {if isset($lang_rewrite_urls.$indice_lang)} <a href="{$lang_rewrite_urls.$indice_lang|escape:htmlall}" title="{$language.name}"> {else} <a href="{$link->getLanguageLink($language.id_lang)|escape:htmlall}" title="{$language.name}"> {/if} {/if} <img src="{$img_lang_dir}{$language.id_lang}.jpg" alt="{$language.iso_code}" width="16" height="11" /> <span>{$language.name}</span> </a> </li> {/if} {/foreach} </ul> </div> {/if} <!-- /Block languages module --> Link to comment Share on other sites More sharing options...
Prestafan1234 Posted November 13, 2014 Author Share Posted November 13, 2014 Anyone? This is a standard native Prestashop module, so surely others with SSL have had this problem? Link to comment Share on other sites More sharing options...
Prestafan1234 Posted November 16, 2014 Author Share Posted November 16, 2014 (edited) Anyone using SSL on their shop who could help me please - Or a PrestaShop developer? Edited November 16, 2014 by Prestafan1234 (see edit history) Link to comment Share on other sites More sharing options...
brih Posted July 20, 2018 Share Posted July 20, 2018 Did anyone ever find out what the problem is? As I have the same problem. Language links are linking to http site Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now