Samx Posted June 25, 2023 Share Posted June 25, 2023 (edited) Bonjour à tous Je voudrais retirer le champs textes pour laisser des msg à l'admin à partir du Shopping Carts C'est probablement dans le code mais, quelle page ??? Edited June 26, 2023 by Samx (see edit history) Link to comment Share on other sites More sharing options...
Eolia Posted June 25, 2023 Share Posted June 25, 2023 c'est dans votre thème au niveau des transporteurs (order_carrier.tpl), un bloc qui ressemble à ça <div> <p>{l s='If you would like to add a comment about your order, please write it in the field below.'}</p> <textarea class="form-control" cols="120" rows="2" name="message" id="message">{strip} {if isset($oldMessage)}{$oldMessage|escape:'html':'UTF-8'}{/if} {/strip}</textarea> </div> Link to comment Share on other sites More sharing options...
Samx Posted June 26, 2023 Author Share Posted June 26, 2023 (edited) Bonjour et merci Eolia Avec ta réponse, j'ai pu retrouver l'expression exacte et les fichiers impliqués. Recherché: If you would like to add a comment about your order Quote Rechercher "If you would like to add a comment about your order" (6 résultats dans 4 documents depuis 1292 documents recherchés) C:\Users\Stéphane\Desktop\themes\v2.4.8-AngarTheme (2)\templates\checkout\_partials\steps\shipping.tpl (1 résultats) Ligne 87: <label for="delivery_message">{l s='If you would like to add a comment about your order, please write it in the field below.' d='Shop.Theme.Checkout'}</label> C:\Users\Stéphane\Desktop\themes\v2.4.8-AngarTheme (2)\templates\customer\_partials\order-messages.tpl (1 résultats) Ligne 50: <p>{l s='If you would like to add a comment about your order, please write it in the field below.' d='Shop.Theme.Customeraccount'}</p> C:\Users\Stéphane\Desktop\themes\v2.4.8-AngarTheme (2)\translations\en-US\ShopThemeCheckout.en-US.xlf (2 résultats) Ligne 356: <source>If you would like to add a comment about your order, please write it in the field below.</source> Ligne 357: <target>If you would like to add a comment about your order, please write it in the field below.</target> C:\Users\Stéphane\Desktop\themes\v2.4.8-AngarTheme (2)\translations\en-US\ShopThemeCustomeraccount.en-US.xlf (2 résultats) Ligne 534: <source>If you would like to add a comment about your order, please write it in the field below.</source> Ligne 535: <target>If you would like to add a comment about your order, please write it in the field below.</target> Donc, je trouve 2 TPL: shipping.tpl et order-messages.tpl modifiable. Et des fichiers XLF sans intérêt pour moi ... Je peux commenter le code TPL avec le code suivant: {* Mon commentaire dans smarty *} La solution que j'ai trouvé et utiliser est la modification du fichier custum.css du thème. /* Custom code goes here - paste your css code below in line 3 */ /* Ajouté pour retirer le champs texte du panier d'achat */ body#checkout #delivery { display: none; } Résultat: Edited June 26, 2023 by Samx (see edit history) 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