vode11 Posted July 28, 2016 Share Posted July 28, 2016 Bonjour à tous, Aide moi s'il vous plait à modifier mon fichier Order-Confirmation.tpl pour que lorsqu'on clique sur le bouton "visualiser l'historique des commande" qui est présent sur la page de confirmation, cela affiche la page de mon choix. Autrement dit je veut changer l'url du bouton "visualiser l'historique des commande". je suis sur ps1.6 Voici le code: {* * 2007-2015 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-2015 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='Order confirmation'}{/capture} <h1 class="page-heading">{l s='Order confirmation'}</h1> {assign var='current_step' value='payment'} {include file="$tpl_dir./order-steps.tpl"} {include file="$tpl_dir./errors.tpl"} {$HOOK_ORDER_CONFIRMATION} {$HOOK_PAYMENT_RETURN} {if $is_guest} <p>{l s='Your order ID is:'} <span class="bold">{$id_order_formatted}</span> . {l s='Your order ID has been sent via email.'}</p> <p class="cart_navigation exclusive"> <a class="button-exclusive btn btn-outline" href="{$link->getPageLink('guest-tracking', true, NULL, "id_order={$reference_order|urlencode}&email={$email|urlencode}")|escape:'html':'UTF-8'}" title="{l s='Follow my order'}">{l s='Follow my order'}</a> </p> {else} <p class="cart_navigation exclusive"> <a class="button-exclusive btn btn-outline" href="{$link->getPageLink('history', true)|escape:'html':'UTF-8'}" title="{l s='Go to your order history page'}">{l s='View your order history'}</a> </p> {/if} Si par exemple je dois mettre l'url: monsite.com/novice où et sous quelle forme il faut le mettre. Je vous remercie d'avance pour temps et votre aide Link to comment Share on other sites More sharing options...
Mediacom87 Posted July 28, 2016 Share Posted July 28, 2016 Bonjour, le bouton est : <a class="button-exclusive btn btn-outline" href="{$link->getPageLink('history', true)|escape:'html':'UTF-8'}" title="{l s='Go to your order history page'}">{l s='View your order history'}</a> remplacez {$link->getPageLink('history', true)|escape:'html':'UTF-8'} par l'url de votre choix et changez les textes {l s='View your order history'} et {l s='Go to your order history page'} Link to comment Share on other sites More sharing options...
vode11 Posted July 28, 2016 Author Share Posted July 28, 2016 Bonjour mediacom87 Merci pour votre réponse si rapide. Grace à vous j'ai trouver ma solution. Une fois encore merci Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now