Jump to content

Bloc permanentlinks


Recommended Posts

Bonjour,

 

J'aimerais modifier le bloc permanentlinks situé dans le header.

 

Mon problème est que le navigateur ne prend pas en compte mes changements (seulement pour le bloc permanentlinks).

 

Actuellement j'ai juste doublé la ligne:

 

<li id="header_link_contact"><a href="{$link->getPageLink('contact-form.php', true)}" title="{l s='contact' mod='blockpermanentlinks'}">{l s='contact' mod='blockpermanentlinks'}</a></li>

 

en prenant soin de renommer l'id.

J'ai même essayé d'ajouter des div etc ou d'autres <li> sans smarty.

 

J'ai déjà basculé les performances en "forcer la compilation: oui" et" cache: non", vider mon cache, tester sur un autre navigateur, re initialiser le module..

 

C'est assez bizarre, quand je renomme le dossier du module, la page ne m'affiche plus les liens permanents dans le header(ce qui est normal) mais si je laisse le nom du module intact et que je renomme les fichiers TPL, les liens permanents sont quand même bien affichés.. alors que le fichier php fais toujours appel aux fichiers tpl avec les anciens noms..

 

Auriez vous une idée concernant mon problème?

 

Je vous remercie d'avance.

 

Après une matinée passée à m'arracher les cheveux, j'ai trouvé!!

Il fallait modifier le module situé dans mon thème..

Link to comment
Share on other sites

Bonjour,

 

Utilisez vous le theme de base Prestashop ou un autre theme?

 

Pourquoi cette question? car dans certains themes, les modules sont surcouchés afin d'éviter de tout perdre en cas de mise à jour.

Donc, pour cela, on duplique le module directement le module directement dans le theme et celui ci est prioritaire par rapport à celui se trouvant dans Prestashop/modules/

 

Donc vérifier si vous n'avez pas un fichier dans un rep situé ici : prestashop/themes/votretheme/modules/blockpermanentlinks/blockpermanentlinks'.tpl <--- c'est lui qu'il faut modifier.

 

V++

 

Atch

Link to comment
Share on other sites

  • 9 months later...

Bonjour,

Je suis sur prestabox version 1.4.9.0.

Alors voilà j'essaie de modifier les liens du haut ( contact, plan du site, Favoris ). Dans mon thème " modifier mon design", je n'ai que

"mon prestashop perso/css/modules/blockpermanentlinks/blockpermanentlinks.css" correspondant à ceci ( et pas de dossier en tpl !! ) :

/* block top links */

ul#header_links {

margin: 14em 0em 1em 9.5em;

list-style-type: none;

float: left

}

#header_links li {

float: left;

width: px

}

#header_links a {

display: 0;

height: 1px;

color: #2EFEC8;

padding-top: 9px;

padding-bottom: 9px;

padding-left: 9px;

padding-right: 9px;

text-align: center;

text-decoration: none;

background-repeat: no-repeat;

background-position: top center;

background-color: Black;

}

 

#header_links #header_link_contact a

#header_links #header_link_bookmark a

#header_links #header_link_account a

 

Sinon pour tout autre modification en lien avec ma question j'ai "Edit file "mon prestashop perso/header.tpl" et cette fois ci pas de css approprié, il correspond à ceci :

 

{*

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

* @version Release: $Revision: 769 $

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

* International Registered Trademark & Property of PrestaShop SA

*}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$lang_iso}">

<head>

<title>{$meta_title|escape:'htmlall':'UTF-8'}</title>

{if isset($meta_description) AND $meta_description}

<meta name="description" content="{$meta_description|escape:html:'UTF-8'}" />

{/if}

{if isset($meta_keywords) AND $meta_keywords}

<meta name="keywords" content="{$meta_keywords|escape:html:'UTF-8'}" />

{/if}

<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />

<meta name="generator" content="PrestaShop" />

<meta name="robots" content="{if isset($nobots)}no{/if}index,follow" />

<link rel="icon" type="image/vnd.microsoft.icon" href="{$img_ps_dir}favicon.ico?{$img_update_time}" />

<link rel="shortcut icon" type="image/x-icon" href="{$img_ps_dir}favicon.ico?{$img_update_time}" />

<script type="text/javascript">

var baseDir = '{$content_dir}';

var static_token = '{$static_token}';

var token = '{$token}';

var priceDisplayPrecision = {$priceDisplayPrecision*$currency->decimals};

var priceDisplayMethod = {$priceDisplay};

var roundMode = {$roundMode};

</script>

{if isset($css_files)}

{foreach from=$css_files key=css_uri item=media}

<link href="{$css_uri}" rel="stylesheet" type="text/css" media="{$media}" />

{/foreach}

{/if}

{if isset($js_files)}

{foreach from=$js_files item=js_uri}

<script type="text/javascript" src="{$js_uri}"></script>

{/foreach}

{/if}

{$HOOK_HEADER}

</head>

 

<body {if $page_name}id="{if $page_name == '404'}p{/if}{$page_name|escape:'htmlall':'UTF-8'}"{/if}>

{if !$content_only}

{if isset($restricted_country_mode) && $restricted_country_mode}

<div id="restricted-country">

<p>{l s='You cannot place a new order from your country.'} <span class="bold">{$geolocation_country}</span></p>

</div>

{/if}

<div id="page">

 

<!-- Header -->

<div id="header">

<a id="header_logo" href="{$link->getPageLink('index.php')}" title="{$shop_name|escape:'htmlall':'UTF-8'}">

<img class="logo" src="{$img_ps_dir}logo.jpg?{$img_update_time}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if} />

</a>

<div id="header_right">

{$HOOK_TOP}

</div>

</div>

 

<div id="columns">

<!-- Left -->

<div id="left_column" class="column">

{$HOOK_LEFT_COLUMN}

</div>

 

<!-- Center -->

<div id="center_column">

{/if}

 

J'ai parcouru de nombreux topic, même si ce rapprochant de mon problème, je ne trouve aucunement les termes appropriés que ce soi en css ou tpl, mm voir dans mes modules .. est ce que quelqu'un pourrait me donner un coup de pouce, sur ce que je dois faire ?

En vous remerciant.

Link to comment
Share on other sites

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...