- Posts: 24
- Thank you received: 0
Comment faire apparaitre un champ customtext
13 years 7 months ago - 13 years 7 months ago #92212
by Michel75
Comment faire apparaitre un champ customtext was created by Michel75
Comment faire apparaitre un champ personnalisé (commande) de type customtext dans la facture( plugin pdf acheté)
Merci
Merci
Last edit: 13 years 7 months ago by Michel75.
Please Log in or Create an account to join the conversation.
13 years 7 months ago #92308
by Xavier
Replied by Xavier on topic Comment faire apparaitre un champ customtext
Bonjour,
Il faut éditer la vue "order / invoice" dans le template backend a partir du menu Display > Views.
Puis dans la vue ajouter la variable correspondante au champ personnalisé.
Pouvez vous nous passer un screenshot des paramètres de votre champ personnalisé.
Il faut éditer la vue "order / invoice" dans le template backend a partir du menu Display > Views.
Puis dans la vue ajouter la variable correspondante au champ personnalisé.
Pouvez vous nous passer un screenshot des paramètres de votre champ personnalisé.
Please Log in or Create an account to join the conversation.
13 years 7 months ago - 13 years 7 months ago #92321
by Michel75
Replied by Michel75 on topic Comment faire apparaitre un champ customtext
Last edit: 13 years 7 months ago by Michel75.
Please Log in or Create an account to join the conversation.
13 years 7 months ago #92508
by nicolas
Replied by nicolas on topic Comment faire apparaitre un champ customtext
Les champs de typecustomtext sont des champs qui permettent d'afficher des informations explicatives sur les formulaires de champs personnalisés.
Ils ne sont pas destinés à être affichés ailleurs.
Dans votre cas, il va falloir editer le fichier plugins/hikashop/attachinvoice/attachinvoice/invoice.php et ajouter ce genre de code:
où type_achat est le nom du champs personnalisé sélectionné par l'utilsateur et unite la valeur sélectionnée dans ce champs.
Ils ne sont pas destinés à être affichés ailleurs.
Dans votre cas, il va falloir editer le fichier plugins/hikashop/attachinvoice/attachinvoice/invoice.php et ajouter ce genre de code:
Code:
<?php
if($order->type_achat =='unite'){
echo 'Ici texte 1';
} ?>
où type_achat est le nom du champs personnalisé sélectionné par l'utilsateur et unite la valeur sélectionnée dans ce champs.
The following user(s) said Thank You: Michel75
Please Log in or Create an account to join the conversation.
Time to create page: 0.176 seconds