gaelo Posted May 17, 2012 Share Posted May 17, 2012 Bonjour, Depuis quelques temps j'essai de trouver une solution à un probleme. Il s'agit de modifier le module chèque. Cette modification doit faire apparaître le numéro de la commande du client à la fin du processus c'est à dire à la dernière page du processus "Commande". Généralement après cette étape le client peut voir dans le menu "commande" du "bloc utilisateur" toutes ses commandes et donc le numero de ses commandes. Nous voudrions donc afficher déjà le numéro à la fin du processus pour que le client puisse nous appeler et nous indiquer le numéro de sa commande sans aller dans son menu utilisateur. Ceci nous permettra de vite commencer à traiter la commande du client avant même de recevoir son chèque. Pouvez vous me donner quelques pistes? Merci Link to comment Share on other sites More sharing options...
Broceliande Posted May 18, 2012 Share Posted May 18, 2012 Bonjour, Depuis quelques temps j'essai de trouver une solution à un probleme. Il s'agit de modifier le module chèque. Cette modification doit faire apparaître le numéro de la commande du client à la fin du processus c'est à dire à la dernière page du processus "Commande". Généralement après cette étape le client peut voir dans le menu "commande" du "bloc utilisateur" toutes ses commandes et donc le numero de ses commandes. Nous voudrions donc afficher déjà le numéro à la fin du processus pour que le client puisse nous appeler et nous indiquer le numéro de sa commande sans aller dans son menu utilisateur. Ceci nous permettra de vite commencer à traiter la commande du client avant même de recevoir son chèque. Pouvez vous me donner quelques pistes? Merci En principe il suffit de modifier la ligne 28 du fichier /modules/cheque/payment_return.tpl comme dans l'exemple ci dessous ( car le numéro de commande est assigné à smarty , bien que non utilisé dans le cas présent ) Pense à vider le cache smarty pour constater la modification. Il faudra également rvoir les traductions du module cheque (outil traduction en back office) dans la mesure ou j'ai scindé le texte en 2 pour y insérer le n° commande . {* * 2007-2012 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-2012 PrestaShop SA * @version Release: $Revision: 14011 $ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {if $status == 'ok'} <p>{l s='Your order #' mod='cheque'}{$id_order} {l s='on' mod='cheque'} <span class="bold">{$shop_name}</span> {l s='is complete.' mod='cheque'} <br /><br /> {l s='Please send us a cheque with:' mod='cheque'} <br /><br />- {l s='an amount of' mod='cheque'} <span class="price">{$total_to_pay}</span> <br /><br />- {l s='payable to the order of' mod='cheque'} <span class="bold">{if $chequeName}{$chequeName}{else}___________{/if}</span> <br /><br />- {l s='mail to' mod='cheque'} <span class="bold">{if $chequeAddress}{$chequeAddress}{else}___________{/if}</span> <br /><br />{l s='An e-mail has been sent to you with this information.' mod='cheque'} <br /><br /><span class="bold">{l s='Your order will be sent as soon as we receive your payment.' mod='cheque'}</span> <br /><br />{l s='For any questions or for further information, please contact our' mod='cheque'} <a href="{$link->getPageLink('contact-form.php', true)}">{l s='customer support' mod='cheque'}</a>. </p> {else} <p class="warning"> {l s='We noticed a problem with your order. If you think this is an error, you can contact our' mod='cheque'} <a href="{$link->getPageLink('contact-form.php', true)}">{l s='customer support' mod='cheque'}</a>. </p> {/if} 1 Link to comment Share on other sites More sharing options...
gaelo Posted May 22, 2012 Author Share Posted May 22, 2012 En principe il suffit de modifier la ligne 28 du fichier /modules/cheque/payment_return.tpl comme dans l'exemple ci dessous ( car le numéro de commande est assigné à smarty , bien que non utilisé dans le cas présent ) Pense à vider le cache smarty pour constater la modification. Il faudra également rvoir les traductions du module cheque (outil traduction en back office) dans la mesure ou j'ai scindé le texte en 2 pour y insérer le n° commande . {* * 2007-2012 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-2012 PrestaShop SA * @version Release: $Revision: 14011 $ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {if $status == 'ok'} <p>{l s='Your order #' mod='cheque'}{$id_order} {l s='on' mod='cheque'} <span class="bold">{$shop_name}</span> {l s='is complete.' mod='cheque'} <br /><br /> {l s='Please send us a cheque with:' mod='cheque'} <br /><br />- {l s='an amount of' mod='cheque'} <span class="price">{$total_to_pay}</span> <br /><br />- {l s='payable to the order of' mod='cheque'} <span class="bold">{if $chequeName}{$chequeName}{else}___________{/if}</span> <br /><br />- {l s='mail to' mod='cheque'} <span class="bold">{if $chequeAddress}{$chequeAddress}{else}___________{/if}</span> <br /><br />{l s='An e-mail has been sent to you with this information.' mod='cheque'} <br /><br /><span class="bold">{l s='Your order will be sent as soon as we receive your payment.' mod='cheque'}</span> <br /><br />{l s='For any questions or for further information, please contact our' mod='cheque'} <a href="{$link->getPageLink('contact-form.php', true)}">{l s='customer support' mod='cheque'}</a>. </p> {else} <p class="warning"> {l s='We noticed a problem with your order. If you think this is an error, you can contact our' mod='cheque'} <a href="{$link->getPageLink('contact-form.php', true)}">{l s='customer support' mod='cheque'}</a>. </p> {/if} Bonjour, UN grand merci pour cette aide. merci encore 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