Sabre Posted June 2, 2011 Share Posted June 2, 2011 Ive got a weird problem, i seem to have 2 page navigations at the bottom of my screen.Ive tryed edition Pagnation.tpl but that doesnt seem to have any effect, im wondering if its something in the css?Please see attached pic. Can provide more info. Link to comment Share on other sites More sharing options...
tomerg3 Posted June 2, 2011 Share Posted June 2, 2011 Try checking product-list.tpl, it may have the include line for pagination.tpl twice Link to comment Share on other sites More sharing options...
carmenfierro Posted June 2, 2011 Share Posted June 2, 2011 Well I had the same problem and it proved to be from pagination.tpl Link to comment Share on other sites More sharing options...
Sabre Posted June 2, 2011 Author Share Posted June 2, 2011 Carmenfierro, can you please explain what you did? Link to comment Share on other sites More sharing options...
Sabre Posted June 3, 2011 Author Share Posted June 3, 2011 Well I had the same problem and it proved to be from pagination.tpl That doesnt really help me carmenfierro, can you please tell me what you did. Link to comment Share on other sites More sharing options...
Sabre Posted June 3, 2011 Author Share Posted June 3, 2011 *bump*Can someone help please? Link to comment Share on other sites More sharing options...
tomerg3 Posted June 3, 2011 Share Posted June 3, 2011 Does it happen on all pages (IE category / manufacturer / new products, etc..)? Link to comment Share on other sites More sharing options...
Sabre Posted June 3, 2011 Author Share Posted June 3, 2011 Yes it does Tomerg3. Link to comment Share on other sites More sharing options...
tomerg3 Posted June 3, 2011 Share Posted June 3, 2011 Compare your pagination.tpl to the default one that comes with prestashop.If you made any changes or if the files are different, make sure to turn on force recompile (Preferences->performance) Link to comment Share on other sites More sharing options...
Sabre Posted June 7, 2011 Author Share Posted June 7, 2011 Compare your pagination.tpl to the default one that comes with prestashop.If you made any changes or if the files are different, make sure to turn on force recompile (Preferences->performance) Ive compared the 2 files and they are identical. Im also using Prestashop 1.3.7 so i dont have the performance tab under preferences.Here is my pagination.tpl:{if isset($p) AND $p} {if $smarty.get.id_category|intval} {assign var='requestPage' value=$link->getPaginationLink('category', $category, false, false, true, false)} {assign var='requestNb' value=$link->getPaginationLink('category', $category, true, false, false, true)} {elseif $smarty.get.id_manufacturer|intval} {assign var='requestPage' value=$link->getPaginationLink('manufacturer', $manufacturer, false, false, true, false)} {assign var='requestNb' value=$link->getPaginationLink('manufacturer', $manufacturer, true, false, false, true)} {elseif $smarty.get.id_supplier|intval} {assign var='requestPage' value=$link->getPaginationLink('supplier', $supplier, false, false, true, false)} {assign var='requestNb' value=$link->getPaginationLink('supplier', $supplier, true, false, false, true)} {else} {assign var='requestPage' value=$link->getPaginationLink(false, false, false, false, true, false)} {assign var='requestNb' value=$link->getPaginationLink(false, false, true, false, false, true)} {/if} <!-- Pagination --> {if $start!=$stop} {if $p != 1} {assign var='p_previous' value=$p-1} goPage($requestPage, $p_previous)}">« {l s='Previous'} {else} « {l s='Previous'} {/if} {if $start>3} goPage($requestPage, 1)}">1 ... {/if} {section name=pagination start=$start loop=$stop+1 step=1} {if $p == $smarty.section.pagination.index} {$p|escape:'htmlall':'UTF-8'} {else} goPage($requestPage, $smarty.section.pagination.index)}">{$smarty.section.pagination.index|escape:'htmlall':'UTF-8'} {/if} {/section} {if $pages_nb>$stop+2} ... goPage($requestPage, $pages_nb)}">{$pages_nb|intval} {/if} {if $pages_nb > 1 AND $p != $pages_nb} {assign var='p_next' value=$p+1} goPage($requestPage, $p_next)}">{l s='Next'} » {else} {l s='Next'} » {/if} {/if} {if $nb_products > 10} <form action="{if !is_array($requestNb)}{$requestNb}{else}{$requestNb.requestUrl}{/if}" method="get" class="pagination"> {if isset($query) AND $query}<input type="hidden" name="search_query" value="{$query|escape:'htmlall':'UTF-8'}" />{/if} {if isset($tag) AND $tag AND !is_array($tag)}<input type="hidden" name="tag" value="{$tag|escape:'htmlall':'UTF-8'}" />{/if} <input type="submit" class="button_mini" value="{l s='OK'}" /> {l s='items:'} {foreach from=$nArray item=nValue} {if $nValue <= $nb_products} {$nValue|escape:'htmlall':'UTF-8'} {/if} {/foreach} {if is_array($requestNb)} {foreach from=$requestNb item=requestValue key=requestKey} {if $requestKey != 'requestUrl'} <input type="hidden" name="{$requestKey|escape:'htmlall':'UTF-8'}" value="{$requestValue|escape:'htmlall':'UTF-8'}" /> {/if} {/foreach} {/if} </form> {/if} <!-- /Pagination --> {/if} I can find the problem using Firebug for firefox, and can delete the element, but this is only locally. As soon as i refresh the page, the problem is back again because its not being saved.Could someone please check my Pagination.tpl because apart from a duplicate line i have no idea what im looking for. Link to comment Share on other sites More sharing options...
Sabre Posted June 9, 2011 Author Share Posted June 9, 2011 Could someone please give me a hand with this, ive spend days searching google and these forums for a solution but so far i have not found anything.I have compared my Pagination.tpl with the default from the prestashop theme and they are idential. Product-list.tpl is also identical to the original.Someone please help. Link to comment Share on other sites More sharing options...
Sabre Posted June 9, 2011 Author Share Posted June 9, 2011 Ive just switched to the default prestashop theme and this error does not happen. I am using the Elegant Blue theme, does anyone have any idea what could be causing it?Could it be something in Global.css? Link to comment Share on other sites More sharing options...
Sabre Posted June 9, 2011 Author Share Posted June 9, 2011 /* pagination.tpl */ div.pagination { padding: 1em 0 } ul.pagination { list-style: none; float: left } ul.pagination li { display: inline; float: left; margin-right: 0.3em } ul.pagination li, ul.pagination a, ul.pagination span { font-weight: bold; color: #374853 } ul.pagination a, ul.pagination span { border: 1px solid #888; padding: 0em 0.4em; display: block; line-height: 17px; background: #bdc2c9 url('../img/pagination_bg.gif') repeat-x top right } ul.pagination a { text-decoration: none } ul.pagination li.current span { background-color: #595a5e; background-image: url('../img/pagination-bg-current.gif'); color: white; border: 1px solid #595a5e } ul.pagination li.truncate { padding: 0.3em; background: none } #pagination_previous a, #pagination_previous span, #pagination_next a, #pagination_next span { background-image: url('../img/pagination-prevnext-bg.gif'); border: none; line-height: 19px; border-color: #d0d1d5; border-style: solid; border-width: 0 1px } #pagination_previous { background: transparent url('../img/pagination-prev-border.gif') no-repeat top left; padding-left: 6px } #pagination_previous a, #pagination_previous span { border-left: none } #pagination_next { background: transparent url('../img/pagination-next-border.gif') no-repeat top right; padding-right: 6px } #pagination_next a, #pagination_next span { border-right: none } li.disabled span { color: #888; background-color: #f1f2f4 } form.pagination { text-align: right } form.pagination label { line-height: 1.4em; vertical-align: bottom; float: right; margin-left: 0.3em } form.pagination select { float: right } form.pagination select option { font-size: 0.9em; padding-right: 1em } form.pagination input { float: right } That is the pagination section in my theme's global.css Link to comment Share on other sites More sharing options...
Recommended Posts