djform Posted July 24, 2019 Share Posted July 24, 2019 Bonjour. Dans mon module chèque, voici ce que voit le client qui valide sa commande : ma société<br />22, rue de l'abbaye<br />82000 Montauban Voici la partie du tpl concernée : <dt>{l s='Send your check to this address' d='Modules.Checkpayment.Shop'}</dt> Je voudrais supprimer les <br />. Comment faire ? Par avance, merci pour votre aide. Link to comment Share on other sites More sharing options...
Farris27 Posted July 24, 2019 Share Posted July 24, 2019 https://www.php.net/manual/fr/function.strip-tags.php Link to comment Share on other sites More sharing options...
djform Posted July 24, 2019 Author Share Posted July 24, 2019 (edited) Voici ce que j'ai fait : <dd>{if $checkAddress}{$checkAddress|strip_tags}{else}___________{/if}</dd> dans /themes/mon_theme/modules/ps_checkpayment/views/templates/hook/payment_return.tpl Edited July 24, 2019 by djform (see edit history) 1 Link to comment Share on other sites More sharing options...
Farris27 Posted July 25, 2019 Share Posted July 25, 2019 ça a marché ? Link to comment Share on other sites More sharing options...
djform Posted July 25, 2019 Author Share Posted July 25, 2019 Oui, ça fonctionne. Mais je l'ai modifié en : <dd>{if $checkAddress}{$checkAddress|replace:'<br />':' - '}{else}___________{/if}</dd> C'est mieux ainsi. 1 1 Link to comment Share on other sites More sharing options...
couillaler Posted October 8, 2019 Share Posted October 8, 2019 Oui, je confirme, cela fonctionne bien aussi sur PS 1.7.5.1 J'avais le même souci sur la page de résumé de commande, après validation de celle-ci par le client. Des toutes petites différences par rapport à ta config à toi, la ligne était la suivante sur racine/modules/ps_checkpayment/views/templates/hook/payment_return.tpl (et pas dans thèmes/monthème ) et la ligne était celle-ci <br /><br />- {l s='Mail to' d='Modules.Checkpayment.Shop'} <strong>{if $checkAddress}{$checkAddress}{else}___________{/if}</strong> modifiée en <br /><br />- {l s='Mail to' d='Modules.Checkpayment.Shop'} <strong>{if $checkAddress}{$checkAddress|strip_tags}{else}___________{/if}</strong> Mais ça fonctionne pareil au final ! Merci, Antoine 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