Jump to content

Fiche client personnalisée


Recommended Posts

Bonjour,

 

J'ai personnalisé la fiche client afin d'avoir chaque lien dans un tableau

2014-12-29_1403.png

 

Je voudrais savoir comment faire pour séparer la partie

{$HOOK_CUSTOMER_ACCOUNT}

afin d'avoir chaque hook dans une cellule (comme le reste du tableau).

 

 

Voici le code que j'ai réalisé :

{*
* 2007-2014 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-2014 PrestaShop SA
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}

{capture name=path}{l s='My account'}{/capture}
{include file="$tpl_dir./breadcrumb.tpl"}

<h1>{l s='My account'}</h1>
{if isset($account_created)}
	<p class="success">
		{l s='Your account has been created.'}
	</p>
{/if}
<p class="title_block">{l s='Welcome to your account. Here you can manage al of your personal information and orders. '}</p>
<ul class="myaccount_lnk_list">
	<center> 
	<table cols=4 border="1">
		<tr align=center valign=middle>
			<td colspan="2">
				<li><a href="{$link->getPageLink('identity', true)}" title="{l s='Information'}"><img src="{$img_dir}icon/userinfo.gif" alt="{l s='Information'}" class="icon" />
				<br> 
				{l s='My personal information'}</a></li>
			</td>
			<td colspan="2">
				{if $has_customer_an_address}
					<li><a href="{$link->getPageLink('address', true)}" title="{l s='Add my first address'}"><img src="{$img_dir}icon/addrbook.gif" alt="{l s='Add my first address'}" class="icon" />
					<br>
					{l s='Add my first address'}</a></li>
				{/if}
					<li><a href="{$link->getPageLink('addresses', true)}" title="{l s='Addresses'}"><img src="{$img_dir}icon/addrbook.gif" alt="{l s='Addresses'}" class="icon" /> 
					<br>
					{l s='My addresses'}</a></li>
			</td>
		</tr>
		<tr align=center valign=middle>
			<td>
				<li><a href="{$link->getPageLink('history', true)}" title="{l s='Orders'}"><img src="{$img_dir}icon/order.gif" alt="{l s='Orders'}" class="icon" />
				<br>
				{l s='Order history and details '}</a></li>
			</td>
			<td>
				<li><a href="{$link->getPageLink('order-slip', true)}" title="{l s='Credit slips'}"><img src="{$img_dir}icon/slip.gif" alt="{l s='Credit slips'}" class="icon" />
				<br>
				{l s='My credit slips'}</a></li>
			</td>
			<td>
				{if $voucherAllowed}
				<li><a href="{$link->getPageLink('discount', true)}" title="{l s='Vouchers'}"><img src="{$img_dir}icon/voucher.gif" alt="{l s='Vouchers'}" class="icon" />
				<br>
				{l s='My vouchers'}</a></li>
				{/if}
			</td>
			<td>
				{if $returnAllowed}
				<li><a href="{$link->getPageLink('order-follow', true)}" title="{l s='Merchandise returns'}"><img src="{$img_dir}icon/return.gif" alt="{l s='Merchandise returns'}" class="icon" />
				<br>
				{l s='My merchandise returns'}</a></li>
				{/if}
			</td>
		</tr>
		<tr align=center valign=middle>
			<td colspan="4">
				{$HOOK_CUSTOMER_ACCOUNT}
			</td>
		</tr>
	</table>
	</center>
</ul>
<p><a href="{$base_dir}" title="{l s='Home'}"><img src="{$img_dir}icon/home.gif" alt="{l s='Home'}" class="icon" /></a><a href="{$base_dir}" title="{l s='Home'}">{l s='Home'}</a></p>

Merci d'avance.

Link to comment
Share on other sites

Bonjour,

 

La seule méthode possible serait d'utiliser directement {hook ...} comme suit:

<tr align=center valign=middle>
			<td colspan="1">
				{hook h='displayCustomerAccount' mod='module01'}
			</td>
			<td colspan="1">
				{hook h='displayCustomerAccount' mod='module02'}
			</td>
			<td colspan="1">
				{hook h='displayCustomerAccount' mod='module03'}
			</td>
			<td colspan="1">
				{hook h='displayCustomerAccount' mod='module04'}
			</td>
		</tr>

En modifiant le paramètre mod='' avec le bon nom de module.

Link to comment
Share on other sites

Je te remercie mais je vais rester comme ça, le hic si je fait les modifs comme tu me le propose, c'est que le jour où je vais installer un module qui ajoutera un hook, ça ne s'affichera pas et je ne comprendrais pas pourquoi car j'aurais simplement oublié cette modif...

 

Merci quand-même ;)

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