Search the Community
Showing results for tags 'my-account.tpl'.
-
Jak wyświetlić datę rejestracji oraz datę ostatniego logowania danego klienta we frontoffice? Uprzedzając pytania, tak wiem, że takie info jest w zakładce Klienci, ale muszę to wyświetlić w pliku my-account.tpl.
- 2 replies
-
- my-account.tpl
- data rejestracji
- (and 3 more)
-
How can I display the date of registration and the date of the last login of a given customer in frontoffice? Before asking questions, I know that such info is in the Customers tab, but I have to display it in the file my-account.tpl.
-
Hi guys, This code works for version 1.4 This information is available in the visitor's cookie, you can easily display it in my-account.tpl: {l s='Your e-mail address is:'} {$cookie->email|escape:'htmlall':'UTF-8'} For more details, you can double-check where it is being assigned, in /controllers/AuthController.php at line 178, upon authentication :self::$cookie->id_customer = (int)($customer->id); self::$cookie->customer_lastname = $customer->lastname; self::$cookie->customer_firstname = $customer->firstname; self::$cookie->passwd = $customer->passwd; self::$cookie->logged = 1; self::$cookie->email = $customer->email; Now my question is what to do for version 1.6 that the instance name or last name added to the user information page or the my-account.tpl I see this method to add fields such as national code, I want to see how to make these too added link Thank you
- 2 replies
-
- user information
- user
-
(and 4 more)
Tagged with:
-
Bonjour, J'ai personnalisé la fiche client afin d'avoir chaque lien dans un tableau 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.