Jump to content

[Solved] Store Information (footer)


Recommended Posts

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.

 

post-686668-0-38576400-1394623536_thumb.jpg

post-686668-0-40611400-1394623541_thumb.jpg

  • Like 3
Link to comment
Share on other sites

  • 3 weeks later...

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

  • 2 weeks later...

 

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

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

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...

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

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

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

  • 2 months later...

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

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

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 by bside2234 (see edit history)
Link to comment
Share on other sites

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

  • 3 weeks later...

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

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 by Daniel79 (see edit history)
Link to comment
Share on other sites

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

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

This is the code im using now and it looks correct... :D

 

<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 :D

Thanks guys!

Link to comment
Share on other sites

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:
* 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

 

{*
* 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:
* 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... :D

 

<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 :D

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

  • 2 weeks later...
  • 1 month later...
  • 3 months later...

it's easy to fix.

 

 

detailed step by step guide here:

line breaks in block contact infos module

 

block-contact-infos-module-address-line-

 

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

×
×
  • Create New...