pawanesh Posted March 12, 2014 Share Posted March 12, 2014 Line break is not working in Store information in version 1.6.04 RC. All address information is being displayed in single line along with company name. Link to comment Share on other sites More sharing options...
J.Sahu Posted March 12, 2014 Share Posted March 12, 2014 I think you are not using the default module. ask the module provider or have a look on the blockcontactinfo module of your theme provider. Link to comment Share on other sites More sharing options...
vekia Posted March 12, 2014 Share Posted March 12, 2014 it is default one, it's a 1.6 release Line break is not working in Store information in version 1.6.04 RC. how you added this line break? 1 Link to comment Share on other sites More sharing options...
pawanesh Posted March 12, 2014 Author Share Posted March 12, 2014 Dear Mr. Sahu I am using default "contact information block" module of ver 1.6.0.4 Dear Mr. Vekia I have not added any line break, it's rolling over to next line after right margin. Please have a look at pictures attached. 3 Link to comment Share on other sites More sharing options...
J.Sahu Posted March 12, 2014 Share Posted March 12, 2014 New Version. Though I've installed but not very familiar with it. Link to comment Share on other sites More sharing options...
vekia Posted March 12, 2014 Share Posted March 12, 2014 it's easy to fix. detailed step by step guide here: line breaks in block contact infos module 8 Link to comment Share on other sites More sharing options...
pawanesh Posted March 13, 2014 Author Share Posted March 13, 2014 Thanks. :) Link to comment Share on other sites More sharing options...
e-piazza.biz Posted March 30, 2014 Share Posted March 30, 2014 Hi Vekia, i have Contact information block v1.1 and can't find the line you suggest. you say to put "<i class="icon-map-marker"></i>{$blockcontactinfos_company|escape:'html':'UTF-8'}{if $blockcontactinfos_address != ''}, <br />{$blockcontactinfos_address|nl2br}{/if}" but i have " <div id="block_contact_infos"> <h4 class="title_block">{l s='Contact us' mod='blockcontactinfos'}</h4> <ul> {if $blockcontactinfos_company != ''}<li><strong>{$blockcontactinfos_company|escape:'html':'UTF-8'}</strong></li>{/if} {if $blockcontactinfos_address != ''}<li><pre>{$blockcontactinfos_address|escape:'html':'UTF-8'}</pre></li>{/if} {if $blockcontactinfos_phone != ''}<li>{l s='Tel' mod='blockcontactinfos'} {$blockcontactinfos_phone|escape:'html':'UTF-8'}</li>{/if} {if $blockcontactinfos_email != ''}<li>{l s='Email:' mod='blockcontactinfos'} {mailto address=$blockcontactinfos_email|escape:'html':'UTF-8' encode="hex"}</li>{/if} </ul> </div> " what to do? thanks in advance!! Link to comment Share on other sites More sharing options...
klicksor Posted April 8, 2014 Share Posted April 8, 2014 Hi Vekia, i have Contact information block v1.1 and can't find the line you suggest. you say to put "<i class="icon-map-marker"></i>{$blockcontactinfos_company|escape:'html':'UTF-8'}{if $blockcontactinfos_address != ''}, <br />{$blockcontactinfos_address|nl2br}{/if}" but i have " <div id="block_contact_infos"> <h4 class="title_block">{l s='Contact us' mod='blockcontactinfos'}</h4> <ul> {if $blockcontactinfos_company != ''}<li><strong>{$blockcontactinfos_company|escape:'html':'UTF-8'}</strong></li>{/if} {if $blockcontactinfos_address != ''}<li><pre>{$blockcontactinfos_address|escape:'html':'UTF-8'}</pre></li>{/if} {if $blockcontactinfos_phone != ''}<li>{l s='Tel' mod='blockcontactinfos'} {$blockcontactinfos_phone|escape:'html':'UTF-8'}</li>{/if} {if $blockcontactinfos_email != ''}<li>{l s='Email:' mod='blockcontactinfos'} {mailto address=$blockcontactinfos_email|escape:'html':'UTF-8' encode="hex"}</li>{/if} </ul> </div> " what to do? thanks in advance!! hi you're at the wrong file. you need to change it at: /testebene/themes/default-bootstrap/modules/blockcontactinfos/blockcontactinfos.tpl not at.. modules/blockcontactinfos/blockcontactinfos.tpl Link to comment Share on other sites More sharing options...
vekia Posted April 8, 2014 Share Posted April 8, 2014 oops i missed this reply, so sorry. so in the future please quote my post - then i will get notification that you quoted me and yess, you edited wrong file, correct one is located in theme dir - due to the "override" behaviour thanks in advance, milos 1 Link to comment Share on other sites More sharing options...
swifter Posted April 24, 2014 Share Posted April 24, 2014 Thank you, Fix worked perfectly to have the address on multiple lines. Issues with the imputed data earlier not displaying at all were first solved by uninstalling and reinstalling the module, then once the information was entered, following the guide at post #6 solved the multiple line issue. Thank you, great fix. Link to comment Share on other sites More sharing options...
vekia Posted April 24, 2014 Share Posted April 24, 2014 you're welcome this installation / reinstallation fixed issue with appearance due to the caching. this module uses cache - so after changes it's worth to clear it under adv. paramters > performance tab in your back office. Link to comment Share on other sites More sharing options...
pradeep0007 Posted May 1, 2014 Share Posted May 1, 2014 you're welcome this installation / reinstallation fixed issue with appearance due to the caching. this module uses cache - so after changes it's worth to clear it under adv. paramters > performance tab in your back office. Sir.. i am new to prestashop. i am using default theme and wanna to change the store information and the link. please guide me www.fillestudio.com Link to comment Share on other sites More sharing options...
vekia Posted May 1, 2014 Share Posted May 1, 2014 store information and the link you mean email address which is visible in footer section? Link to comment Share on other sites More sharing options...
Fashionist Posted May 4, 2014 Share Posted May 4, 2014 Vekia how to eliminate the "comma" (,) near the end of the first line? here is the pic: Link to comment Share on other sites More sharing options...
vekia Posted May 4, 2014 Share Posted May 4, 2014 just remove this comma from .tpl file perhaps i missed something? :\ Link to comment Share on other sites More sharing options...
Fashionist Posted May 5, 2014 Share Posted May 5, 2014 Ok fix... thanks vekia! Link to comment Share on other sites More sharing options...
Rikc Posted July 23, 2014 Share Posted July 23, 2014 Just found this topic and worked great. However i am now trying to increase the size of the phone number on the blockcontactinfos.tpl but there is nothing i can find which will do this? Any help would be great! Thanks Link to comment Share on other sites More sharing options...
bside2234 Posted July 28, 2014 Share Posted July 28, 2014 PS 1.6.0.8 using the default theme. I changed the correct file using this info: http://mypresta.eu/en/art/basic-tutorials/line-breaks-in-block-contact-informations-addon.html I can see the change when I force complile/cache "no" but when I change these setting back to compling and cache on the changes go back to the single line address. I've cleared my browsers cache. I did this a few weeks ago so I was hoping it would take affect. http://griffineffects.com/store Link to comment Share on other sites More sharing options...
vekia Posted July 28, 2014 Share Posted July 28, 2014 clear cache directory manually, if you don't see changes after theme recompilation it's necessary to clear cache manually Link to comment Share on other sites More sharing options...
bside2234 Posted July 28, 2014 Share Posted July 28, 2014 (edited) clear cache directory manually, if you don't see changes after theme recompilation it's necessary to clear cache manually Ok. I'll give it a try. I changed some of the CSS to get better spacing for my footer columns since I only have 3 columns and it made the address go to 2 lines which is better but I'll give the manual cache clearing a try. Thanks. Edit: Thank you. That worked. Edited July 29, 2014 by bside2234 (see edit history) Link to comment Share on other sites More sharing options...
OCP Posted August 1, 2014 Share Posted August 1, 2014 Hi everybody! Before the last upgrade of PS I had a customuized theme. After the upgrade, everything was a mess. I sort of fixed that, but the footer won't let me. I just want it to be completely normal as the original 1.6 Do anyone have a clue? Thanks. Link to comment Share on other sites More sharing options...
Daniel79 Posted August 19, 2014 Share Posted August 19, 2014 So i followed the guide in post 6 and it works great. In the comments on the guide a guy edited the code to align it with the other text, but doing that the text turns the same color as the email link, how can i change the color back to the normal text color? The code from the comment looks like this: <i class="icon-map-marker"></i>{$blockcontactinfos_company|escape:'html':'UTF-8'}{if $blockcontactinfos_address != ''} <br /><span style="display:block;margin-left:32px;">{$blockcontactinfos_address|nl2br}</span>{/if} Link to comment Share on other sites More sharing options...
vekia Posted August 19, 2014 Share Posted August 19, 2014 hello your website is online? can you share url, pleasE? Link to comment Share on other sites More sharing options...
Yan Studio Posted August 19, 2014 Share Posted August 19, 2014 Hi Vekia I done what you say in the post but is not working not affect any idea? http://www.polisbikes.gr Link to comment Share on other sites More sharing options...
Daniel79 Posted August 19, 2014 Share Posted August 19, 2014 hello your website is online? can you share url, pleasE? Hi i turn the site online for some time for you to see as im still working on it... http://vildmedkager.dk You can see in the bottom that the company name are in the normal grey text color and the address are in the link color, i would like the address to also be in the grey color. Link to comment Share on other sites More sharing options...
vekia Posted August 19, 2014 Share Posted August 19, 2014 strange it's not the code taht i suggested to use there are some <span> elements can you show contents of your .tpl file, please? Link to comment Share on other sites More sharing options...
Daniel79 Posted August 19, 2014 Share Posted August 19, 2014 (edited) strange it's not the code taht i suggested to use there are some <span> elements can you show contents of your .tpl file, please? Thats correct, on the tutorial you made about this topic a guy made a comment on the site of the tutorial, its that code i use. And it looks like this <i class="icon-map-marker"></i>{$blockcontactinfos_company|escape:'html':'UTF-8'}{if $blockcontactinfos_address != ''} <br /><span style="display:block;margin-left:32px;">{$blockcontactinfos_address|nl2br}</span>{/if} Its the style that is acting but i dont know how to fix it. Edited August 19, 2014 by Daniel79 (see edit history) Link to comment Share on other sites More sharing options...
bside2234 Posted August 19, 2014 Share Posted August 19, 2014 Looks like this in your global.css is changing it to white: .footer-container #footer #block_contact_infos > div ul li > span, .footer-container #footer #block_contact_infos > div ul li > span a { color: white; font-weight: normal; } Link to comment Share on other sites More sharing options...
Daniel79 Posted August 19, 2014 Share Posted August 19, 2014 so i just added color:grey to the style in the code, and it seems to work, would that be the right way to do it ? it looks like this now: <i class="icon-map-marker"></i>{$blockcontactinfos_company|escape:'html':'UTF-8'}{if $blockcontactinfos_address != ''} <br /><span style="display:block;margin-left:32px;color:grey;">{$blockcontactinfos_address|nl2br}</span>{/if} but color:grey does not look like its the correct color, it looks a bit off on my screen Link to comment Share on other sites More sharing options...
Daniel79 Posted August 19, 2014 Share Posted August 19, 2014 This is the code im using now and it looks correct... <i class="icon-map-marker"></i>{$blockcontactinfos_company|escape:'html':'UTF-8'}{if $blockcontactinfos_address != ''} <br /> <span style="display:block;margin-left:32px;color:#777777;">{$blockcontactinfos_address|nl2br}</span>{/if} I almost feel like a programmer now Thanks guys! Link to comment Share on other sites More sharing options...
Yan Studio Posted August 20, 2014 Share Posted August 20, 2014 strange it's not the code taht i suggested to use there are some <span> elements can you show contents of your .tpl file, please? {* * 2007-2014 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} <!-- MODULE Block contact infos --> <section id="block_contact_infos" class="footer-block col-xs-12 col-sm-4"> <div> <h4>{l s='Store Information' mod='blockcontactinfos'}</h4> <ul class="toggle-footer"> {if $blockcontactinfos_company != ''} <li> <i class="icon-map-marker"></i>{$blockcontactinfos_company|escape:'html':'UTF-8'}{if $blockcontactinfos_address != ''}, <br />{$blockcontactinfos_address|nl2br}{/if} </li> {/if} {if $blockcontactinfos_phone != ''} <li> <i class="icon-phone"></i>{l s='Call us now:' mod='blockcontactinfos'} <span>{$blockcontactinfos_phone|escape:'html':'UTF-8'}</span> </li> {/if} {if $blockcontactinfos_email != ''} <li> <i class="icon-envelope-alt"></i>{l s='Email:' mod='blockcontactinfos'} <span>{mailto address=$blockcontactinfos_email|escape:'html':'UTF-8' encode="hex"}</span> </li> {/if} </ul> </div> </section> <!-- /MODULE Block contact infos --> Link to comment Share on other sites More sharing options...
vekia Posted August 20, 2014 Share Posted August 20, 2014 {* * 2007-2014 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} <!-- MODULE Block contact infos --> <section id="block_contact_infos" class="footer-block col-xs-12 col-sm-4"> <div> <h4>{l s='Store Information' mod='blockcontactinfos'}</h4> <ul class="toggle-footer"> {if $blockcontactinfos_company != ''} <li> <i class="icon-map-marker"></i>{$blockcontactinfos_company|escape:'html':'UTF-8'}{if $blockcontactinfos_address != ''}, <br />{$blockcontactinfos_address|nl2br}{/if} </li> {/if} {if $blockcontactinfos_phone != ''} <li> <i class="icon-phone"></i>{l s='Call us now:' mod='blockcontactinfos'} <span>{$blockcontactinfos_phone|escape:'html':'UTF-8'}</span> </li> {/if} {if $blockcontactinfos_email != ''} <li> <i class="icon-envelope-alt"></i>{l s='Email:' mod='blockcontactinfos'} <span>{mailto address=$blockcontactinfos_email|escape:'html':'UTF-8' encode="hex"}</span> </li> {/if} </ul> </div> </section> <!-- /MODULE Block contact infos --> your code is ok, have you tried to clear shop cache? This is the code im using now and it looks correct... <i class="icon-map-marker"></i>{$blockcontactinfos_company|escape:'html':'UTF-8'}{if $blockcontactinfos_address != ''} <br /> <span style="display:block;margin-left:32px;color:#777777;">{$blockcontactinfos_address|nl2br}</span>{/if} I almost feel like a programmer now Thanks guys! you use ther <span> code and its not a code that i suggested to use without <span> everything should work Link to comment Share on other sites More sharing options...
Yan Studio Posted August 20, 2014 Share Posted August 20, 2014 from back end i did it. Manually i don't know how? Link to comment Share on other sites More sharing options...
vekia Posted August 20, 2014 Share Posted August 20, 2014 another question what file you changed? located in theme directory? on in modules directory? Link to comment Share on other sites More sharing options...
Yan Studio Posted August 20, 2014 Share Posted August 20, 2014 another question what file you changed? located in theme directory? on in modules directory? Hi I edit: /themes/default-bootstrap/modules/blockcontactinfos/blockcontactinfos.tpl Link to comment Share on other sites More sharing options...
luksw Posted August 30, 2014 Share Posted August 30, 2014 I accidentally deleted the "block contact infos" in Modules - Position. Can I restore it somehow? Link to comment Share on other sites More sharing options...
bside2234 Posted August 30, 2014 Share Posted August 30, 2014 I accidentally deleted the "block contact infos" in Modules - Position. Can I restore it somehow? Top of Positions page, click on Transplant A Module. Link to comment Share on other sites More sharing options...
vekia Posted August 30, 2014 Share Posted August 30, 2014 you can also press "reset" near module on modules list and module will be added to all hooks, and restored all datas Link to comment Share on other sites More sharing options...
hguerra2 Posted September 30, 2014 Share Posted September 30, 2014 Thank you so much.. it woks perfect Link to comment Share on other sites More sharing options...
TECHFIVE Posted January 28, 2015 Share Posted January 28, 2015 it's easy to fix. detailed step by step guide here: line breaks in block contact infos module Hi Vekia, I followed your guide but I would align text in "blockcontactinfos_address" and, for now, the only solution is that of Daniel79 but you suggest not to use it. How can I indent text and leave the text gray and not white? Thank you <i class="icon-map-marker"></i>{$blockcontactinfos_company|escape:'html':'UTF-8'}{if $blockcontactinfos_address != ''} <br /> <span style="display:block;margin-left:32px;color:#777777;">{$blockcontactinfos_address|nl2br}</span>{/if} Link to comment Share on other sites More sharing options...
Recommended Posts