Jump to content

Moving Block Reinsurance To Top Of Page


Recommended Posts

Hi,

 

I would like to move the reinsurance block from the footer and to just above the left, center and right column. How do I do that? I guess that all the visitors that do not scroll never get to see the reinsurance block and I therefore want to increase the number of visitors that sees it.

 

Thanks in advance,

V

Link to comment
Share on other sites

For the first you must edit blockreinsurance module (modules/blockreinsurance/blockreinsurance.php) you need to add new displaytop hook,

Next you have to go to the modules -> position section - then open a transplant module tool



next step is to find block reinsurance module and select correct hook, exactly as i show below:

uw3mgrI.png

 

 

EDIT: full guide: 

customer reassurance module on top

Link to comment
Share on other sites

Hi vekia,

 

Thanks a lot for your input.

 

I have got it to be located there now using your help. The only thing is that it is only being displayed in the right side of the top. The module is therefore in a "list mode" instead of being evenly spread out like the Top Horizontal Menu would be. It is also displayed like that on all other shop-pages. I now need to make it more flat so it does not push the rest of the page down. I tried to delete some of the points as I thought it was changed to a list because to little space. That did not work. I also tried to go through the css and .tpl files. I could not find anything there to change the list to a horizontal mode.

 

Thanks for your help so far. I would really appreciate if it could happen as I am so close to the finishing line.

 

V

Link to comment
Share on other sites

Hi any help is welcome. I just can't solve this. As I have described I have been working all the things I can imagine through. I am not in a blind alley, so please post advices if you have any idea on how to solve this bug

Link to comment
Share on other sites

  • 2 weeks later...

its a module template file and css issue, you fave to edit it and move reinsurance module exactly there, where you want (change module orders in modules -> position)

 

for the first check module tpl files and change html code of it

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

 

As you can see from www.plainindustry.dk now. I managed to place it at the top of the page. Now, I would like to center it and remove the black "dots" between the points. How do I do that. The site is currently live with the implemented changes.

 

Kind regards,

V

Link to comment
Share on other sites

blockreinsurance.tpl - it is template file of module,

 

you should edit it in modules/blockreinsurance or if exists in themes/your_theme/blockreinsurance

 

just add this html tag style="" into <ul> as i mentioned above :-)

Link to comment
Share on other sites

Hi

 

That appear to work in terms of removing the dots. However, it is still not centered :-( How do I make the gray bar thinner so more of the page is visible before scrolling?

 

By the way, thanks a lot for your help so far!

Link to comment
Share on other sites

  • 3 months later...

i still can't remove the black dots and align the block in center...and where exactly do i write this

style="list-style: none; width:980px; marign:auto;"..

 

yes you should use this, you can also add list-style:none!important;

 

it is possible to check your website somewhere? if so, please share the url

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

 

I was wondering if you could help with my Reinsurance Block, I have managed to hook it to the Top of Page however I am unable to centre it and to make it horizontal. I have added the coding to the Style.css file but for some reason it is not integrating the changes I make.

 

Any help or advise you could offer would be greatly appreciately, my url is www.labellerose.com.au

 

Many thanks.

 

Kind regards,

Aisling

Link to comment
Share on other sites

thanks

 

it looks like you havent got css styles defined for this object

 

use this styles:

 

/* BLOCK #reinsurance_block ******************************************************************** */
#reinsurance_block {background:url(../blockreinsurance/img/bg_reinsurance_block.gif) repeat-x 0 0 #c3c7cb}
#reinsurance_block li {
float:left;
padding:15px 10px !important;
font-size:13px;
color:#333;
text-transform:uppercase;
text-shadow:0 1px 0 #fff
}
#reinsurance_block .width1 li {width:960px}
#reinsurance_block .width2 li {width:470px}
#reinsurance_block .width3 li {width:305px}
#reinsurance_block .width4 li {width:224px}
#reinsurance_block .width5 li {width:175px}
#reinsurance_block li img{
float:left;
margin-right:10px;
}
#reinsurance_block li span {
float:left;
padding-top:12px;
width:65%;
}

 

but them into the main css styles file of your theme

and dont forget to recompile the minified files (you've got CCC turned on under the preference > performance tab)

Link to comment
Share on other sites

Thanks, the above code is what was originally sitting my style.css file before I tried to edit it so I have now reverted back to your code. This is also sitting in my theme's style.css file. However per this code it specifies that it is floating 'left' & specifies the width dimensions, that is why I tried to edit from here - is that incorrect?

 

With regards to the CCC, below is what my settings are currently at - What should I change these to? Thanks :)

 

 

Smart cache for CSS

Use CCC for CSS. Check

Keep CSS as original

 

Smart cache for JavaScript

Use CCC for JavaScript. Check

Keep JavaScript as original

 

Minify HTML

Minify HTML after "smarty compile" execution. Check

Keep HTML as original

 

Compress inline JavaScript in HTML

Compress inline JavaScript in HTML after "smarty compile" execution. Check

Keep inline JavaScript in HTML as original

Link to comment
Share on other sites

My theme is the 01 Premium theme and I have turned the minify html back to the 'keep html as original'. This is how my settings look now, see below - do you want me to revert back to 'keep css as original' and 'keep javascript as original' until we resolve this?

 

Smart cache for CSS

Use CCC for CSS. Check

Keep CSS as original

 

Smart cache for JavaScript

Use CCC for JavaScript. Check

Keep JavaScript as original

 

Minify HTML

Minify HTML after "smarty compile" execution.

Keep HTML as original Check

 

Compress inline JavaScript in HTML

Compress inline JavaScript in HTML after "smarty compile" execution. Check

Keep inline JavaScript in HTML as original

 

When I edited the footer hook to attach it to the 'Top of Pages' hook instead, I made this adjustment in the following file path:

 

public_html/modules/blockreinsurance/blockreinsurance.php

 

This file accepted my changes however as I mentioned when I made adjustments to the

public_html/modules/blockreinsurance/style.css it did not make a difference and it did not integrate my changes. I would have expected that if I edit this file that they would be implemented? Do I need special software to edit a css file or is there a reason the changes made to a css file do not get integrated?

 

Thanks so much for all your help.

Link to comment
Share on other sites

the problem is that in your minified CSS code is not blockreinsurance code. You need to turn CCC off + cache off, then recompile the template. after that your code should appear in the minified file

  • keep CSS as orginal
  • turn off cache
  • turn on force compile
  • turn on block reinsurance module on
  • refresh your front - end

Link to comment
Share on other sites

ok, there is still no code

 

now open the file: /themes/01premium/css/global.css

 

and put there code below:

 

/* BLOCK #reinsurance_block ******************************************************************** */
#reinsurance_block {background:url(http://www.labellerose.com.au/modules/blockreinsurance/img/bg_reinsurance_block.gif) repeat-x 0 0 #c3c7cb}
#reinsurance_block li {
float:left;
padding:15px 10px !important;
font-size:13px;
color:#333;
text-transform:uppercase;
text-shadow:0 1px 0 #fff
}
#reinsurance_block .width1 li {width:960px}
#reinsurance_block .width2 li {width:470px}
#reinsurance_block .width3 li {width:305px}
#reinsurance_block .width4 li {width:224px}
#reinsurance_block .width5 li {width:175px}
#reinsurance_block li img{
float:left;
margin-right:10px;
}
#reinsurance_block li span {
float:left;
padding-top:12px;
width:65%;
}

 

 

next go to the modules > positions tab in your back office

search for "displayTop" section and move the reinsurance module to the top of the list

Link to comment
Share on other sites

you pasted wrong code. take a look and compare, you cutted last lines from:

#reinsurance_block {background:url(http://www.labellerose.com.au/modules/blockreinsurance/img/bg_reinsurance_block.gif) repeat-x 0 0 #c3c7cb}

so it doesnt work. make sure that you use CORRECT code. otherwise it will not work and it will crash your website.

 

then disable the block reinsurance module. go to the header.tpl file and paste reinsurance code before the <header id="header"> tag in your template header.tpl file

 

 

effect:

qCifL7v.png

Link to comment
Share on other sites

Thanks for that.

 

I've updated the code in the global.css file, disabled the module & pasted the same code to the header.tpl file however I am now getting the below error message? I tried to Force Compliation but it didn't make a difference?

 

In the global.css file I pasted the code to line 63 just after the /*** [ Header ] ***/section, I wonder if I have pasted this to this to the wrong area?

 

 

Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home2/labeller/public_html/themes/01premium/header.tpl" on line 80 "#reinsurance_block {background:url(http://www.labellerose.com.au/modules/blockreinsurance/img/bg_reinsurance_block.gif) repeat-x 0 0 #c3c7cb}" - Unexpected ":", expected one of: "}" , " " , ATTR' in /home2/labeller/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:665 Stack trace: #0 /home2/labeller/public_html/tools/smarty/sysplugins/smarty_internal_templateparser.php(3144): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /home2/labeller/public_html/tools/smarty/sysplugins/smarty_internal_templateparser.php(3209): Smarty_Internal_Templateparser->yy_syntax_error(2, ':') #2 /home2/labeller/public_html/tools/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(2, ':') #3 /home2/labeller/public_html/tools/smarty/ in /home2/labeller/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 665

Link to comment
Share on other sites

can you show contents of your header.tpl file? the error code that you pasted looks like issue with wrong strigs there, in the header.tpl file. make sure that you saved file with utf-8 encoding

 

In the global.css file I pasted the code to line 63 just after the /*** [ Header ] ***/section, I wonder if I have pasted this to this to the wrong area?

you pasted it to the correct area, but the code wasn't correct - so it broke whole global.css file.

Link to comment
Share on other sites

Hi,

 

Thanks for your response, this is the coding sitting in that file (I have highlighted in red line 80 that the error message refers to):

 

<!-- Header -->

/* BLOCK #reinsurance_block ******************************************************************** */

#reinsurance_block {background:url(http://www.labellerose.com.au/modules/blockreinsurance/img/bg_reinsurance_block.gif) repeat-x 0 0 #c3c7cb}

#reinsurance_block li {

float:left;

padding:15px 10px !important;

font-size:13px;

color:#333;

text-transform:uppercase;

text-shadow:0 1px 0 #fff

}

#reinsurance_block .width1 li {width:960px}

#reinsurance_block .width2 li {width:470px}

#reinsurance_block .width3 li {width:305px}

#reinsurance_block .width4 li {width:224px}

#reinsurance_block .width5 li {width:175px}

#reinsurance_block li img{

float:left;

margin-right:10px;

}

#reinsurance_block li span {

float:left;

padding-top:12px;

width:65%;

}

<header id="header">

Link to comment
Share on other sites

but you don't have to paste the css styles to the header.tpl file. Your CSS styles should be in the global.css exactly as it was before.

 

To the header.tpl paste the block reinsurance module template file contents (not css)

Link to comment
Share on other sites

In the blockreinsurance.tpl file is the below code:

 

<!-- MODULE Block reinsurance -->

<div id="reinsurance_block" class="clearfix">

<ul class="width{$nbblocks}">

{foreach from=$infos item=info}

<li><img src="{$module_dir}img/{$info.file_name}" alt="{$info.text|escape:html:'UTF-8'}" /> <span>{$info.text|escape:html:'UTF-8'}</span></li>

{/foreach}

</ul>

</div>

<!-- /MODULE Block reinsurance -->

 

Is that what I should paste into the header.tpl file?

Link to comment
Share on other sites

That's great, thanks the website is up and running now again and the reinsurance is horizontal but the only problem is the presentation of it, I have it positioned as number 1 on the list for Top of Pages however the height is too large as you can see http://www.labellerose.com.au/

 

Also I have the language & currency set as number 3 and 4 however they seem to be pushed down below the account & cart?

 

Thanks.

Link to comment
Share on other sites

Are you able to advise on how to fix the height & position of the reinsurance block? I was hoping it would look like your screenshot above?

 

Should I try to fix this in the theme's global.css file?

 

Thanks - would be really grateful if you could get me over the line on this last bit.

Link to comment
Share on other sites

i checked your website one more time. you've got there two insurance blocks.

moreover the css styles that you used doesnt work (wrong url parameteres etc.)

 

there is a lot to do with this. Without template files and module file modification you will not be able to achieve effect you want.

The same with css styles - you have to use correct variables and values, now the whole block reinsurance css style doesnt work, because there is a lot of errors. I suppose that you modified it.

 

restore all changes, now it looks very bad at all :(

Link to comment
Share on other sites

no offence

The main problem in this case is fact, that you use non default solution and it needs several changes that i tried to explain.

I mean that you not doing well what was suggested here, i tried to help but you've got CCC turned on again, you'e got two blocks (have you followed sugestions related to remove one of them?) you changed the css styles and it's again crashed, pasted it into the header.tpl file etc.

 

I don't know what suggestions you followed, what you changed in addition to suggestions etc. so at the end it's hard to help when you don't follow suggestions :(

 

If you aren't familiar with changing the template files etc. it's better to give access to your store and ftp for someone familiar with all of this - then changes will be ready in couple of minutes.

 

Im still here, and im able to help, but follow all sugestions, not only some of them.

Link to comment
Share on other sites

ur site is fine have seen its loads very slow any way..i didnt see block-reinsurance there?

change block currency to this..ur site need this..

 

{*

* 2007-2013 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-2013 PrestaShop SA

* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)

* International Registered Trademark & Property of PrestaShop SA

*}

 

<!-- 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', 10);

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

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

}, function(){

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

});

});

</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}">{$f_currency.sign}

<span class="currency_name">{$f_currency.name}</span></a>

</li>

{/foreach}

</ul>

</form>

</div>

<!-- /Block currencies module -->

Link to comment
Share on other sites

some time before it was visible, i suggested to turn it off because there was so much messed code, both in the styles and in the template file.

waiting for additional information from aislingcanty, I offered free help in this case, hope that you will be also available ;)

 

best regards

Link to comment
Share on other sites

  • 6 months later...
  • 1 month later...
  • 3 years 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...