Problème avec la liste de produit

  • Xavier_Hamon
    Demandé le 15 mai 2023 à 14:49

    Bonjour,

    je viens de créer un formulaire avec une liste de produit à sélectionner. Mon objectif est de récupérer le prix de la commande et d'y appliquer une remise si un autre champs du formulaire est alimenté.

    Exemple :

    • Zone Je choisis parmi les 3 formules d'hébergement : Je choisis l'hébergement à 400€
    • Zone Je souhaite parrainer un(e) musicien(ne) : Si alimenté, j'alimente le champs Si remise alors -25 euros avec -25
    • Zone Prix Produit = montant sélectionné dans la zone Je choisis parmi les 3 formules d'hébergement donc ici = 400
    • Zone Prix Total = Zone Prix Produit + Zone Si remise alors -25 euros

    Dans ce cas, nous devrions avoir 400 - 25 = 375 euros

    J'ai réussi une fois à récupérer le montant de la liste de produit (Zone Je choisis parmi les 3 formules d'hébergement), mais maintenant cela ne fonctionne plus, ça n'a pas l'air très stable. La valeur n'apparait plus dans la facture ou le document de notification Jotform.

    Le lien vers le formulaire est le suivant : https://form.jotform.com/231311383508348

    Savez-vous ce qui peut poser problème ?

    Merci par avance pour votre aide.

    Cordialement,

    Xaver HAMON

  • Reymar Jotform Support
    Répondu le 15 mai 2023 à 18:03

    Hi Xavier,

    Thanks for reaching out to Jotform Support. Unfortunately, our French Support agents are currently busy helping other Jotform users at the moment. I'll try to assist you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd prefer to receive support in French, let us know and we can have them do that. But, keep in mind that you'd have to wait until they're available again.

    We appreciate the form URL that you have provided. Can you explain a bit more about the issue so I can get a better idea of what you are trying to achieve? It would help us to understand what’s happening if you could take a screenshot of what you are referring in your form and send it to us. We have a guide here explaining how to do that.

    After we hear back from you, we’ll have a better idea of what’s going on and how to help.

  • Xavier_Hamon
    Répondu le 19 mai 2023 à 02:35

    Hi and thank you for coming back to me.

    I will try to explain in english with screenshots :

    1 - I created a Product List when I can pick up only one choice :

    2 - If the field below is filled, I want to create a 25 € discount.

    2 - So I created these 3 hidden fields below :

    * The first field is filled with a condition that say : If the field "Je souhaite parrainer un(e) musicien(ne)" is filled, you fill the field with : -25

    * The second store only the total amount of the Product list

    * The last one store the addition of the two previous fields.

    But, I can see that the field which should contain the Total Amount doesn't work because the calculation doesn't work.

    It worked one time after deleted the product list and created it again. But now not :(

    Can you help me ?

    Thanks very much.

    Xavier


  • Vincenzo Jotform Support
    Répondu le 19 mai 2023 à 07:21

    Hi Xavier,

    Thanks for getting back to us. Unfortunately, if you're using a product list, it is not possible to change the price of items conditionally. As a workaround, you can use other form elements like single/multiple choice fields. In these fields, you can assign calculation values for when they are selected. You can then use form calculation widgets or conditions to calculate your total amount. Also, if you wish, you can also pass the calculated amount to a payment field.

    To enable the discount, you can include a short text field where your clients can provide a musician recommendation. If they fill in the field, they will get €25 discount by conditional logic.

    Here is a demo form that show you how the €25 discount field work (I have used a classic form layout, so you can better see how the conditional logic works). You can clone this form to see exactly what was done. If it works, you can then hide the calculation field.

    Problème avec la liste de produit Image 1 Screenshot 20

    Give it a try and let us know if you need any help.

  • Xavier_Hamon
    Répondu le 22 mai 2023 à 15:45
    Hi,
    I don't want to change the price of the procuct list, but just get the price in a calculation widget field.
    The solution you propose can work, but I can't product Invoice if I don't use the product list ? Right ?
    2nd question : is it possible to generate the invoice when we want ? because, the persons won't pay the total price right now, but after. Is it possible to send them the invoice when we want ?
    Thank you again for your disponibility.
    Best Regards.
    Xavier
    De: "Jotform" <noreply>
    À: "Xavier Hamon" <president>
    Envoyé: Vendredi 19 Mai 2023 13:21:38
    Objet: Re: Problème avec la liste de produit
    New response received
    [ https://www.jotform.com/?utm_source=question-reply-notification&utm_medium=email&utm_content=header_logo&utm_campaign=jotform-notification-mail |




    ]




    There’s a new response on your question:

    Problème avec la liste de produit



    Hi Xavier,
    Thanks for getting back to us. Unfortunately, if you're using a product list, it is not possible to change the price of items conditionally. As a workaround, you can use other form elements like single/multiple choice fields. In these fields, you can [ https://www.jotform.com/help/301-how-to-assign-calculation-value/ | assign calculation values ] for when they are selected. You can then use form [ https://www.jotform.com/help/259-how-to-perform-form-calculation-using-a-widget/ | calculation widgets or conditions to calculate
    your total amount ] . Also, if you wish, you can also [ https://www.jotform.com/help/275-how-to-pass-a-calculation-to-a-payment-field/ | pass the calculated amount to a
    payment field. ]
    To enable the discount, you can include a short text field where your clients can provide a musician recommendation. If they fill in the field, they will get €25 discount by [ https://www.jotform.com/help/57-smart-forms-conditional-logic-for-online-forms/ | conditional logic ] .
    Here is a [ https://form.jotform.com/231382336452352 | demo form ] that show you how the €25 discount field work (I have used a classic form layout, so you can better see how the conditional logic works). You can [ https://www.jotform.com/help/42-how-to-clone-an-existing-form-from-a-url/ | clone this form ] to see exactly what was done. If it works, you can then hide the calculation field.
    Give it a try and let us know if you need any help.



    Answered by

    Vincenzo_M
    [ https://www.jotform.com/answers/5158093-probleme-avec-la-liste-de-produit | View this thread ]




    4 Embarcadero Center, Suite 780, San Francisco CA 94111


    [ https://link.jotform.com/rc7srYGN99 | 24/7 Support ]
    [ https://www.jotform.com/answers/5158093-probleme-avec-la-liste-de-produit?k=721322a7437c4eadc1a2a7c82e5900b7&unsubscribe= | Unsubscribe Thread ]

    </president></noreply>...
  • Reymar Jotform Support
    Répondu le 22 mai 2023 à 17:18

    Hi Xavier,

    Thanks for reaching out to Jotform Support. The recommendation we can suggest is the workaround that my colleague Vincenzo has suggested. We can also suggest that you use the Purchase order for the invoice. Also, it is not yet possible to send/generate invoices when you want.

    If you are looking for these exact features like what you have described on your ticket thread. Unfortunately, the feature you’re looking for isn’t currently available, rest assured we’re always working to add new services and features to Jotform. 

    I've gone ahead and escalated your request to our Developer Team. When or if it's developed depends on their workload, how viable it is, and how many other users request it. If there are any updates, we’ll circle back to this thread and let you know.

    Thanks for your patience and understanding, we appreciate it.