How can I get a discount for each product added to the shopping cart?

  • paresdellobet
    Fecha de consulta 15 de abril de 2024, 1:52

    Hola, he creado un formulario de inscripciones para un campus de verano:

    representa que ellos pueden escoger si compran 1, 2,3... hasta 10 semanas que tiene el campus. Entonces si ellos compran entre 5 a 6 semanas van a tener un 5% de descuento, si compran de 7 a 8 semanas van a tener un 10% de secuento y si compran de 9 a 10 semanas tienen un 15%. En este caso yo haría la fórmula de: (carrito*5)*0.95 después (carrito*6) *0,95 después (carrito*7)*0,90... y así sucesivamente pero al poner todas las fórmulas juntas en el widget de cálculos de formulario parece que se hace un lio y no lee bien las fórmulas.

    Cómo podría hacer-lo?

    How can I get a discount for each product added to the shopping cart? Image 1 Screenshot 20

    muchas gracias.

  • Mary_Ed Jotform Support
    Fecha de respuesta 15 de abril de 2024, 5:21

    Hello Paresdellobet,

    Thanks for reaching out to Jotform Support. Unfortunately, our Spanish Support agents are busy helping other Jotform users at the moment. I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in Spanish, 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.

    Now, coming back to your question, I understand your request but please note that you have certain conditions that won't work in the Product list, in this case, you can use regular form fields to list your products, and then we will use conditional logic and widgets to achieve your form request about the discount. Please give me some time to create the demo form to show you how it is achieved.

    Thanks for your patience and understanding, we appreciate it.

  • Mary_Ed Jotform Support
    Fecha de respuesta 15 de abril de 2024, 14:02

    Hello Paresdellobet,

    Thanks for your patience. Let me show you how to add discounts for your early bookings:

    1. Click on the Add Form Element menu on the left side of the page.

    2. Under the Basic tab, scroll down the list and choose your preferred elements. I added a Fill-in-the-blank element in my sample form, then clicked or dragged and dropped them onto your form.

    3. Configure your Fill in the Blank by including a Multiple Choice element for the products, and a Number field for the Quantity and Subtotal.

    • Adding Multiple Choice for Products.

    How can I get a discount for each product added to the shopping cart? Image 1 Screenshot 140

    • Add a Dropdown field for them to choose between morning and afternoon.

    How can I get a discount for each product added to the shopping cart? Image 2 Screenshot 151

    • Add Number field for the Subtotal.

    How can I get a discount for each product added to the shopping cart? Image 3 Screenshot 162

    4. Add a Form Calculation Widget, this is where we will paste the cost of discounted products and will later use it to pass the cost of the discounted items to the Payment field.

    How can I get a discount for each product added to the shopping cart? Image 4 Screenshot 173

    5. Then, we'll start implementing conditional logic, which will compute the discount when the user has selected the given week. 

    • This is the condition when the user has selected week 5 and week 6 and they'll become eligible for a 5% discount.

    How can I get a discount for each product added to the shopping cart? Image 5 Screenshot 184

    How can I get a discount for each product added to the shopping cart? Image 6 Screenshot 195


    • This is the condition when the user has selected week 7 and week 8 and they'll become eligible for a 10% discount.

    How can I get a discount for each product added to the shopping cart? Image 7 Screenshot 206

    How can I get a discount for each product added to the shopping cart? Image 8 Screenshot 217

    • This is the condition when the user has selected week 9 and week 10 and they'll become eligible for a 15% discount.

    How can I get a discount for each product added to the shopping cart? Image 9 Screenshot 228

    How can I get a discount for each product added to the shopping cart? Image 10 Screenshot 239

    6.In the Form Calculation Widget, add all subtotals of your products listed in the Fill in the blank elements.

    How can I get a discount for each product added to the shopping cart? Image 11 Screenshot 2410

    7. You will still use the current Product list in the form, but you must change its Payment Type to User Defined Amount. Then Hide the Form Calculation so it wouldn't be visible in the form then on the Get Price From in the Product list, use that hidden Form Calculation Widget.

    How can I get a discount for each product added to the shopping cart? Image 12 Screenshot 2511

    Check out the screencast below to see my results:

    How can I get a discount for each product added to the shopping cart? Image 13 Screenshot 2612

    To prevent the cost to overlap in the label of the Subtotal, you can just simply remove the Sub total label. Also, you can clone this sample form to have a better look at how it is set up.

    Give it a try and reach out again if you have any other questions.

 
Su respuesta