Documentation technique Panneau d administration du site web Sommaire I. Présentation de l outil Prestashop II. Modification TPL 1. Catégories imagées 2. Modification du pied de page 3. Plan du site III. Légende 1
I. Présentation de l outil Prestashop Prestashop est un outil destiné aux créateurs d e-boutiques, permettant la création rapide et personnalisée d un site internet, avec CMS, interface administrateur, permettant à un client non-informaticien d assurer la maintenance et les modifications du site lui-même. II. Modification TPL 1. Catégories imagées Afficher l image attribuée à la catégorie dans le bloc catégorie. Emplacement: ColibriMannequinat\themes\default\modules\blockcategories\category-tree-branch.tpl AVANT <li {if isset($last) && $last == 'true'}class="last"> <a href="{$node.link escape:'htmlall':'utf-8'}" {if isset($currentcategoryid) && $node.id == $currentcategoryid}class="selected" title="{$node.desc escape:'htmlall':'utf-8'}">{$node.name escape:'htmlall':'utf- 8'}</a> {if $node.children @count > 0} {foreach from=$node.children item=child name=categorytreebranch} {if $smarty.foreach.categorytreebranch.last} {include file="$branche_tpl_path" node=$child last='true'} {else} {include file="$branche_tpl_path" node=$child last='false'} </li> APRES <!-- li {if isset($last) && $last == 'true'}class="last"--> </br> <!-- ajout des images des catégories dans le bloc catégorie--> <a href="{$node.link}" {if isset($currentcategoryid) && ($node.id== $currentcategoryid)}class="selected" title="{$node.desc escape:html:'utf-8'}"> <center> <img src="{$link->getcatimagelink($category->link_rewrite, $node.id, null)}" width="155" height="115" /> </center> </a> <center> <b><font size="3pt"> {$node.name escape:html:'utf-8'} </b></font> </center> {if $node.children @count > 0} 2
{foreach from=$node.children item=child name=categorytreebranch} {if isset($smarty.foreach.categorytreebranch) && $smarty.foreach.categorytreebranch.last} {include file="$branche_tpl_path" node=$child last='true'} {else} {include file="$branche_tpl_path" node=$child last='false'} </li> 2. Modification du pied de page Modification de la mise en page : - Disposition horizontale - Suppression de liens inutiles (Nouveaux produits) Emplacement : ColibriMannequinat\themes\default\modules\blockcms\blockcms.tpl AVANT <!-- MODULE Block footer --> <div class="block_various_links" id="block_various_links_footer"> <h4 class="title_block">{l s='information' mod='blockcms'}</h4> {if!$ps_catalog_mode}<li class="first_item"><a href="{$link->getpagelink('prices-drop')}" title="{l s='specials' mod='blockcms'}">{l s='specials' mod='blockcms'}</a></li> <li class="{if $PS_CATALOG_MODE}first_item"><a href="{$link->getpagelink('new-products')}" title="{l s='new products' mod='blockcms'}">{l s='new products' mod='blockcms'}</a></li> {if!$ps_catalog_mode}<li class="item"><a href="{$link- >getpagelink('best-sales')}" title="{l s='top sellers' mod='blockcms'}">{l s='top sellers' mod='blockcms'}</a></li> {if $display_stores_footer}<li class="item"><a href="{$link->getpagelink('stores')}" title="{l s='our stores' mod='blockcms'}">{l s='our stores' mod='blockcms'}</a></li> <li class="item"><a href="{$link- >getpagelink($contact_url, true)}" title="{l s='contact us' mod='blockcms'}">{l s='contact us' mod='blockcms'}</a></li> {foreach from=$cmslinks item=cmslink} {if $cmslink.meta_title!= ''} <li class="item"><a href="{$cmslink.link addslashes}" title="{$cmslink.meta_title escape:'htmlall':'utf- 8'}">{$cmslink.meta_title escape:'htmlall':'utf-8'}</a></li> <li><a href="{$link->getpagelink('sitemap')}" title="{l s='sitemap' mod='blockcms'}">{l s='sitemap' mod='blockcms'}</a></li> {if $display_poweredby}<li class="last_item">{l s='powered by' mod='blockcms'} <a target="_blank" href="http://www.prestashop.com">prestashop</a> </li> {$footer_text} <!-- /MODULE Block footer --> APRES 3
<!-- MODULE Block footer --> <div class="block_various_links" id="block_various_links_footer"> <a href="{$link->getpagelink($contact_url, true)}" title="{l s='contact us' mod='blockcms'}">{l s='contact us' mod='blockcms'}</a> {foreach from=$cmslinks item=cmslink} {if $cmslink.meta_title!= ''} <a href="{$cmslink.link addslashes}" title="{$cmslink.meta_title escape:'htmlall':'utf- 8'}">{$cmslink.meta_title escape:'htmlall':'utf-8'}</a> {$footer_text} <!-- /MODULE Block footer --> 4
3. Plan du site Suppression des liens pages inutiles pour le site et réagencement des div. Emplacement : ColibriMannequinat\themes\default\sitemap.tpl AVANT <h1>{l s='sitemap'}</h1> <div id="sitemap_content" class="clearfix"> <div class="sitemap_block"> <h3>{l s='our offers'}</h3> <li><a href="{$link->getpagelink('new-products')}" title="{l s='view a new products'}">{l s='new products'}</a></li> {if!$ps_catalog_mode} <li><a href="{$link->getpagelink('best-sales')}" title="{l s='view a top sellers products'}">{l s='top sellers'}</a></li> <li><a href="{$link->getpagelink('prices-drop')}" title="{l s='view a products with price drop'}">{l s='price drop'}</a></li> {if $display_manufacturer_link OR $PS_DISPLAY_SUPPLIERS}<li><a href="{$link->getpagelink('manufacturer')}" title="{l s='view list of a manufacturers'}">{l s='manufacturers'}</a></li> {if $display_supplier_link OR $PS_DISPLAY_SUPPLIERS}<li><a href="{$link->getpagelink('supplier')}" title="{l s='view list of a suppliers'}">{l s='suppliers'}</a></li> <div class="sitemap_block"> <h3>{l s='your Account'}</h3> {if $logged} <li><a href="{$link->getpagelink('my-account', true)}" title="{l s='manage my customer account'}" rel="nofollow">{l s='your Account'}</a></li> <li><a href="{$link->getpagelink('identity', true)}" title="{l s='manage my personal information'}" rel="nofollow">{l s='personal information'}</a></li> <li><a href="{$link->getpagelink('addresses', true)}" title="{l s='view list of my addresses'}" rel="nofollow">{l s='addresses'}</a></li> {if $voucherallowed}<li><a href="{$link->getpagelink('discount', true)}" title="{l s='view list of my discounts'}" rel="nofollow">{l s='discounts'}</a></li> <li><a href="{$link->getpagelink('history', true)}" title="{l s='view list of my orders'}" rel="nofollow">{l s='order history'}</a></li> {else} <li><a href="{$link->getpagelink('authentication', true)}" title="{l s='authentication'}" rel="nofollow">{l s='authentication'}</a></li> 5
<li><a href="{$link->getpagelink('authentication', true)}" title="{l s='create new account'}"rel="nofollow">{l s='create new account'}</a></li> {if $logged} <li><a href="{$link->getpagelink('index')}?mylogout" title="{l s='log out'}" rel="nofollow">{l s='log out'}</a></li> <br class="clear" /> <div id="listpage_content"> <div class="categtree"> <h3>{l s='categories'}</h3> <div class="tree_top"><a href="{$base_dir_ssl}" title="{$categoriestree.name escape:'htmlall':'utf- 8'}">{$categoriesTree.name escape:'htmlall':'utf-8'}</a> <ul class="tree"> {if isset($categoriestree.children)} {foreach $categoriestree.children as $child} {if $child@last} {include file="$tpl_dir./category-tree-branch.tpl" node=$child last='true'} {else} {include file="$tpl_dir./category-tree-branch.tpl" node=$child} <div class="categtree"> <h3>{l s='pages'}</h3> <div class="tree_top"><a href="{$categoriescmstree.link}" title="{$categoriescmstree.name escape:'htmlall':'utf- 8'}">{$categoriescmsTree.name escape:'htmlall':'utf-8'}</a> <ul class="tree"> {if isset($categoriescmstree.children)} {foreach $categoriescmstree.children as $child} {if (isset($child.children) && $child.children @count > 0) $child.cms @count > 0} {include file="$tpl_dir./category-cms-treebranch.tpl" node=$child} {foreach from=$categoriescmstree.cms item=cms name=cmstree} <li><a href="{$cms.link escape:'htmlall':'utf-8'}" title="{$cms.meta_title escape:'htmlall':'utf- 8'}">{$cms.meta_title escape:'htmlall':'utf-8'}</a></li> 6
<li><a href="{$link->getpagelink('contact', true)}" title="{l s='contact'}">{l s='contact'}</a></li> {if $display_store}<li class="last"><a href="{$link- >getpagelink('stores')}" title="{l s='list of our stores'}">{l s='our stores'}</a></li> APRES <h1>{l s='sitemap'}</h1> <div id="listpage_content"> <div class="categtree"> <h3>{l s='categories'}</h3> <div class="tree_top"><a href="{$base_dir_ssl}" title="{$categoriestree.name escape:'htmlall':'utf- 8'}">{$categoriesTree.name escape:'htmlall':'utf-8'}</a> <ul class="tree"> {if isset($categoriestree.children)} {foreach $categoriestree.children as $child} {if $child@last} {include file="$tpl_dir./category-tree-branch.tpl" node=$child last='true'} {else} {include file="$tpl_dir./category-tree-branch.tpl" node=$child} <div class="categtree" style="padding-left: 100px"> <h3>{l s='pages'}</h3> <div class="tree_top"><a href="{$categoriescmstree.link}" title="{$categoriescmstree.name escape:'htmlall':'utf- 8'}">{$categoriescmsTree.name escape:'htmlall':'utf-8'}</a> <ul class="tree"> {if isset($categoriescmstree.children)} {foreach $categoriescmstree.children as $child} {if (isset($child.children) && $child.children @count > 0) $child.cms @count > 0} {include file="$tpl_dir./category-cms-treebranch.tpl" node=$child} {foreach from=$categoriescmstree.cms item=cms name=cmstree} 7
<li><a href="{$cms.link escape:'htmlall':'utf-8'}" title="{$cms.meta_title escape:'htmlall':'utf- 8'}">{$cms.meta_title escape:'htmlall':'utf-8'}</a></li> <li><a href="{$link->getpagelink('contact', true)}" title="{l s='contact'}">{l s='contact'}</a></li> {if $display_store}<li class="last"><a href="{$link- >getpagelink('stores')}" title="{l s='list of our stores'}">{l s='our stores'}</a></li> <div id="sitemap_content" style="padding-left: 25%"> <div class="sitemap_block"> <h3>{l s='our offers'}</h3> <li><a href="{$link->getpagelink('new-products')}" title="{l s='view a new products'}">{l s='new products'}</a></li> III. Légende Bleu = modification Rouge = suppression 8