Jump to content

{Résolu} Problème affichage favicon


Recommended Posts

Très jolie boutique !

 

Le favicon n'existe tout simplement pas

 

http://www.huilletprocie.com/boutique/img/favicon.jpg?1374311626

 

surtout en jpg, je pense qu'une modification à été faite dans votre thème, il faut voir dans le fichier header.tpl de votre thème et modifier en .ico qui lui existe bien

 

http://www.huilletprocie.com/boutique/img/favicon.ico?1374311626

Link to comment
Share on other sites

Bonjour

 

Merci pour vos compliment.

 

Bizzare. Pourquoi alors dans le panier il s'affiche ? le thème et un thème acheter, car passer de la version 1.4.11 à 1.5.4.1. j'avais pas le temps de refaire un thème, j'ai donc préférer en acheter un

 

Dans le fichier en question voi les lignes qui corresponde au favicon.

 

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

 

<link rel="shortcut icon" type="image/x-icon" href="{$favicon_url}?{$img_update_time}" />

 

que dois-je faire

Edited by Le-cathare (see edit history)
Link to comment
Share on other sites

Je trouve pas cette variable :

 

class FrontController extends FrontControllerCore

{

// Override for 1.4

public function init()

{

if (parent::$initialized)

return ;

$ret = parent::init();

 

// This override is part of the cloudcache module, so the cloudcache.php file exists

require_once(dirname(__FILE__).'/../../modules/cloudcache/cloudcache.php');

 

// As parent::init() set the parent::$initialized flag, all below will be done only once.

$module = new CloudCache();

if (!$module->active || !Configuration::get('CLOUDCACHE_API_ACTIVE'))

return $ret;

 

 

// Use global because 1.4 only, 1.5 is in an other file

global $smarty;

 

$assignArray = array(

'img_ps_dir' => _PS_IMG_,

'img_cat_dir' => _THEME_CAT_DIR_,

'img_lang_dir' => _THEME_LANG_DIR_,

'img_prod_dir' => _THEME_PROD_DIR_,

'img_manu_dir' => _THEME_MANU_DIR_,

'img_sup_dir' => _THEME_SUP_DIR_,

'img_ship_dir' => _THEME_SHIP_DIR_,

'img_store_dir' => _THEME_STORE_DIR_,

'img_col_dir' => _THEME_COL_DIR_,

'img_dir' => _THEME_IMG_DIR_,

'css_dir' => _THEME_CSS_DIR_,

'js_dir' => _THEME_JS_DIR_,

'pic_dir' => _THEME_PROD_PIC_DIR_

);

 

$httHost = Tools::getHttpHost();

$useSSL = ((isset($this->ssl) && $this->ssl && Configuration::get('PS_SSL_ENABLED')) && Tools::usingSecureMode()) ? true : false;

$protocol_content = ($useSSL) ? 'https://' : 'http://';

 

foreach ($assignArray as $assignKey => $assignValue)

if (substr($assignValue, 0, 1) == '/' || $protocol_content == 'https://')

$smarty->assign($assignKey, $protocol_content.Tools::getMediaServer($assignValue).$assignValue);

else

$smarty->assign($assignKey, $assignValue);

return $ret;

}

}

Link to comment
Share on other sites

Zut , je n'arrive pas a trouver dans quel fichier sont écritent c'est deux lignes

 

<link rel="icon" type="image/vnd.microsoft.icon" href="/boutique/img/favicon.jpg?1374320961">

<link rel="shortcut icon" type="image/x-icon" href="/boutique/img/favicon.jpg?1374320961">

 

pour les remplacer par

 

<link rel="icon" type="image/vnd.microsoft.icon" href="/boutique/img/favicon.ico?1374320961">

<link rel="shortcut icon" type="image/x-icon" href="/boutique/img/favicon.ico?1374320961">

Edited by Le-cathare (see edit history)
Link to comment
Share on other sites

c'est bon sa fonctionne

 

Donc le fichier header.tpl de mon théme j'ai remplacé

 

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

 

<link rel="shortcut icon" type="image/x-icon" href="{$favicon_url}?{$img_update_time}" />

 

 

par

 

<link rel="icon" type="image/vnd.microsoft.icon" href="/boutique/img/favicon.ico?1374320961">

<link rel="shortcut icon" type="image/x-icon" href="/boutique/img/favicon.ico?1374320961">

 

Merci à prestaspirit pour son aide.

Link to comment
Share on other sites

  • 1 year later...
  • 9 months later...

Bonjour à tous.

Si vous avez migré, ou que vous êtes sur l'une des dernières versions de prestashop, pensez simplement à regarder dans votre base de donnée.

Dans la table ps_configuration, trouvez la ligne PS_FAVICON. Il est fort probable qu'au lieu d'une seule ligne, vous en trouvez deux.

Exemple :

name                value
PS_FAVICON   favicon.ico

PS_FAVICON   favicon.jpg

 

De part le fait, prestashop ne sait pas quelle ligne prendre et retourne une erreur.
Supprimez simplement la ligne du favicon.jpg

Link to comment
Share on other sites

  • 1 month later...

Bonjour à tous

 

header.tpl => Done

favicon.ico en 16*16px=> Done

ps_configuration=> Done

 

Et ça fonctionne enfin !!

Plus de point d'interrogation, image visible sur BO et FO.

 

Merci à tous :)

 

Réalisé sur Prestashop 1.6.1.1 et firefox

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