Comment faire apparaitre un champ customtext

  • Posts: 24
  • Thank you received: 0
11 years 2 months ago #92212

Comment faire apparaitre un champ personnalisé (commande) de type customtext dans la facture( plugin pdf acheté)

Merci

Last edit: 11 years 2 months ago by Michel75.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 2 months ago #92308

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.

  • Posts: 24
  • Thank you received: 0
11 years 2 months ago #92321

Le texte doit s'afficher en fonction d'un choix fait par le client.





Attachments:
Last edit: 11 years 2 months ago by Michel75.

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

  • Posts: 81597
  • Thank you received: 13081
  • MODERATOR
11 years 2 months ago #92508

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:

<?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.088 seconds
Powered by Kunena Forum