Inventory widget: How can I calculate product price?

  • hartmann44
    Asked on June 30, 2024 at 8:49 PM

    I would like to create a Product list but have each item show the available inventory and have that decrease as the item is purchased. I see that the inventory widget can do this, but I don't see where the amount goes to a final total which I can send on to Stripe.

    Is it possible to do this? Please tell me how/

  • Waqas JotForm Support
    Replied on June 30, 2024 at 9:45 PM

    Hi David,

    Thanks for reaching out to Jotform Support. Yes, it is possible to add inventory widget prices to Stripe. Let me show you how:

    1. In Form Builder, click on the Add Form Element menu on the left side of the page.
    2. Under the Widgets tab, drag and drop a Form Calculation widget under your Product List field.
    3. Now, in the menu on the right side of the screen, click on Add Field and select the Inventory widget field and multiply it by the product price.
    4. Click on Save and that’s it. You’re done.

    Inventory widget: How can I calculate product price? Image 1 Screenshot 50

    5.  In form builder, click on add form elements. Under the Payments tab, click on Stripe to add it to your form.

    Inventory widget: How can I calculate product price? Image 2 Screenshot 61

    6. In the Stripe Integration Wizard, connect your Stripe Account

    7. Then select User Define amount under the Payment Type dropdown menu

    8 . And select Form Calculation widget under the Get Price From dropdown menu.

    8. After that, click on Continue.

    Inventory widget: How can I calculate product price? Image 3 Screenshot 72

    Check out my screencast below for the results:

    Inventory widget: How can I calculate product price? Image 4 Screenshot 83

    Check out our guide on How to Pass a Calculation to a Payment Field

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

 
Your Answer