Skip to main content

Comment faire apparaitre un champ customtext

More
13 years 7 months ago - 13 years 7 months ago #92212 by Michel75
Comment faire apparaitre un champ personnalisé (commande) de type customtext dans la facture( plugin pdf acheté)

Merci
Last edit: 13 years 7 months ago by Michel75.

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #92308 by Xavier
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é.

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago - 13 years 7 months ago #92321 by Michel75
Le texte doit s'afficher en fonction d'un choix fait par le client.





Last edit: 13 years 7 months ago by Michel75.

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #92508 by nicolas
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:
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
Powered by Kunena Forum