Jump to content

Aide sur module publicité


Fab67

Recommended Posts

Bonjour,

je suis débutant avec Prestashop.
J'ai besoin d'aide concernant l'insertion de plusieurs module de publicité.
Je souhaite sur la partie gauche de mon site mettre plusieurs publicitées l'une en-dessous de l'autre.
Avec la version origine, il y a le module "blockadvertising". Comment le dupliquer ?

Merci par avance pour votre aide

Link to comment
Share on other sites

Bonjour,

Sans vouloir faire de pub, Il existe un module tout fait qui réalise cela, et le tout directement via l'admin...

Une petite recherche en tapant : addblocks

Sinon pour répondre à la question concernant le block d'origine, pas besoin de le duppliquer pour ajouter des images les unes au dessus des autres. Il suffit de modifier semsiblement le fichiers php et tpl du module :

Fichier php :

Localisez

function hookRightColumn($params)
   {
       global $smarty, $protocol_content, $server_host;
       $smarty->assign('image', $protocol_content.$server_host.__PS_BASE_URI__.'/modules/'.$this->name.'/advertising.jpg');
       return $this->display(__FILE__, 'blockadvertising.tpl');
   }



remplacez

function hookRightColumn($params)
   {
       global $smarty;
       $smarty->assign('image', $protocol_content.$server_host.__PS_BASE_URI__.'/modules/'.$this->name.'/advertising.jpg');
$smarty->assign('image1', $protocol_content.$server_host.__PS_BASE_URI__.'/modules/'.$this->name.'/advertising1.jpg');
$smarty->assign('image2', $protocol_content.$server_host.__PS_BASE_URI__.'/modules/'.$this->name.'/advertising2.jpg');
       return $this->display(__FILE__, 'blockadvertising.tpl');
   }



Fichier TPL :

localisez




Remplacez








V++

Atch

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