Ninja Forms - Calculating Fields - LattePress Tutorials

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ส.ค. 2024
  • This video will guide you through using Calculating Fields in Ninja Forms and show examples of how to create a product order form, as well as using calculating fields in other types of calculations.
    This tutorial is part of a series of free WordPress training tutorials. To learn more and see these videos in the right context and order, visit
    lattepress.com
    Or view the complete tutorial at:
    lattepress.com/tutorials/word...
    LattePress is a free comprehensive WordPress training application which helps individuals and entrepreneurs create their own WordPress websites, step-by-step.
    This videos are just a part of the system! Your tutorial queue (which includes videos like this one) is custom-tailored to your needs and requirements, and played for you within the web app, so you'll learn how to build YOUR website, not just A website.

ความคิดเห็น • 31

  • @LeonDeFranco
    @LeonDeFranco 6 ปีที่แล้ว +1

    Great one, thanks!!

  • @darlhouse
    @darlhouse 5 ปีที่แล้ว

    Hi there! Can you please tell me how to add the currency symbol on the Product field and how to reduce the decimal places? Thank you for your videos!

    • @ZenProjects
      @ZenProjects  5 ปีที่แล้ว

      Hey Darlene,
      First I apologize in the delay in responding. For some reason TH-cam is holding comments for review even though the setting is on auto-approve - and I just realized I'm not getting notifications for comments.
      I'm sure you've sorted this out by now but:
      This is a bug with ninja forms, go into the settings and change the currency to something else, save, then go back to the currency you want and the proper symbol and decimals should show.
      Let me know if that works for you!
      Cheers,
      Dan

  • @tonypowell6669
    @tonypowell6669 4 ปีที่แล้ว +1

    Great tutorial! And still relevant today... I have one quick question. Can Ninja Forms round up or down totals when using 2 decimal points?

    • @ZenProjects
      @ZenProjects  4 ปีที่แล้ว

      Glad it was helpful! I don't believe this is possible but in this case I recommend contacting Ninja forms to confirm.

  • @wagiegica5713
    @wagiegica5713 4 ปีที่แล้ว +1

    Hello sir nice tutorial it really helps me a lot, i have a question sir regarding checkbox list when i put it in email all the selected fields display like this (selected1,selected2)
    how can i make it display like this
    selected1
    selected2
    thank you!

    • @ZenProjects
      @ZenProjects  4 ปีที่แล้ว

      Hey Wagie - Check out this guide from Ninja forms on how to customize emails: ninjaforms.com/blog/customize-ninja-forms-email/

  • @mandelasemaj217
    @mandelasemaj217 4 ปีที่แล้ว +1

    great video - did they remove the value fields from the dropdowns?

    • @ZenProjects
      @ZenProjects  4 ปีที่แล้ว

      Hey Mandella - yes it's possible, this video is a bit old, new versions coming out in May!

  • @mikewindsoar3168
    @mikewindsoar3168 6 ปีที่แล้ว

    I need an order form for a sports photographer, he shoots a Soccer game and then will post 40 to 100 photos (all photos are numbered) on his website after the game. Then he offers 8x10 (@$35 ea) or 11 x 14 (@$70ea) or Magazine cover styles for sale to customers. The 8x10's and the 11x14 prints have 4 different variables as well as upsells, so for example if you buy the second 8x10 (of the same print) it will cost you $20 extra. Anyway a shopping cart will not work since you can not instantly upload 100 products) Would you recommend Gravity forms or Ninja? Love your tutorials thank you for all your hard work
    Michael

    • @ZenProjects
      @ZenProjects  6 ปีที่แล้ว

      Hey Mike - thanks for the feedback! Both ninja and gravity can do this and both have the calc functionality out of the box, you will probably need to pick up the conditional logic extension from ninja tho if you go that route.
      I think the main thing we need to determine before coming up with the best solution is how this will be maintained going down the line. There's a few ways to set this up if we want to do it using a forms plugin:
      - An order form for each shoot.
      - One form for all shoots.
      - One form for each photo.
      The benefit of having an order form for each shoot is just ease of use for both the photographer and the user. A user can look at each gallery and then, using the form below each gallery (which would have conditional logic setup for each photo so they choose the different options and variations) and calculation to order however many prints of whatever sizes for each photo in the shoot.
      The downside of this is, you'll have to create a form for each shoot. Now, if you create an initial form with options for 100 photos, then duplicated that form for each shoot (if all available pricing and sizing options are the same for each shoot), this wouldn't be a huge deal and you could probably get a new form done for a new shoot in about 20 minutes after the original was made. This does require on-going work though.
      This would be the best option from a user perspective though.
      The upside of having one form for all shoots is basically the same as above but instead of using multiple forms you're using one large form. You would just setup conditional logic for the first option where they would select their gallery which would open the available photos. The maintenance and update would be similar to the option above in that you'd have to update this form each time a new shoot is added, the extra benefit would be they could purchase photos from multiple shoots/galleries with one form (though whether this is important is up to you).
      And the last, one form for each photo, has the benefit of essentially, inserting the same form into each photo page (can be easy or hard depending on what you're using to display photos). The form can have a hidden field to determine which page/photo is being viewed so the user doesn't have to enter this in. This is the easiest from a maintenance point of view because it's the same form every time and doesn't have to be updated or changed as the options would apply to all photos going forward.
      The downside to this is that users, if they wanted copies/prints of more than one photo, would have to fill out the form multiple times.
      So, these options may be great or terrible depending on the setup and how you guys plan on maintaining the site over time. (If you give me more info on the setup and how the rest of it works I can recommend a plan).
      Additionally, you may want to consider using WooCommerce + Envira Gallery. This is a bit of setup work, as you say, as you need to create a product in woocommerce for each photo, however it does alleviate some of the issues from above. You can use variable products in woocommerce to setup the different photo options and use envira to display them. I have tutorials on envira as well as variable products in woocommerce, so this may be an option to consider. '
      This is more about how that works: enviragallery.com/how-to-sell-your-photos-in-wordpress/
      Let me know if any of that helps, or if there's more information you have that can help us to determine a better plan.
      Cheers,
      Dan

  • @christinenyland5749
    @christinenyland5749 6 ปีที่แล้ว

    Is it possible to create a shipping calculator where I can charge different shipping rates according to where the item is being shipped to?

    • @ZenProjects
      @ZenProjects  6 ปีที่แล้ว

      Absolutely - for this you would also need the conditional logic addon for ninja forms. It's a paid add-on but adds in a ton of additional functionality for taking options based on user input. Conditional logic and calculations are also compatible, so you can make you calculations (shipping rates) based on conditional logic (which location they chose) for example. However if this is the case, where you're calculating shipping, it may be easier to setup an e-shop with WooCommerce (or wait a bit and use the e-shop plugin the ninja forms team is releasing!)

  • @maryamastic
    @maryamastic 5 ปีที่แล้ว

    Hi , I want to create a form with dropdown options each option having its own value and the dropdown options need to be calculated with other drop diwn option. For example if i select a deadline 8 hours and number of pages from other drop down i need to calculate both values and then show up in a total field. Which form will you suggest me for this?? Ninja or gravity??

    • @ZenProjects
      @ZenProjects  5 ปีที่แล้ว

      Hey Maryam -
      First I apologize in the delay in responding. For some reason TH-cam is holding comments for review even though the setting is on auto-approve - and I just realized I'm not getting notifications for comments.
      I'm sure you've sorted this out by now but:
      Both form plugins can do this - and they both work great so you're good either way. With Gravity forms, both calculation and conditional logic come in the paid version, with ninja the two addons need to be purchased. So - check out both and see which one you think you'd like to work with more, but either one can do what you need.
      Cheers,
      Dan

  • @PedalcatGo
    @PedalcatGo 5 ปีที่แล้ว +1

    I'm just trying to add up how many checkboxes a user selects and show them that number. Your video was made a year ago - did Ninja Forms remove the "Value" and "Calc Value", or are you using a paid version? The only options I am given for editing any dropdown or checkboxes or anything is that check or to delete it. :'(

    • @ZenProjects
      @ZenProjects  4 ปีที่แล้ว

      Hey Erin - I believe the issue is the field type, I don't think it has these fields. You'd want to use a dropdown field or otherwise. You could create a dropdown field with "Yes" or "No" instead of having them check the box.

  • @neraknerak1
    @neraknerak1 6 ปีที่แล้ว +1

    could you please tell me how to add days to a particular date? like in a booking form? eg. 3 day tour. user puts in start date and ninja forms calculates the end date?

    • @ZenProjects
      @ZenProjects  6 ปีที่แล้ว +1

      Hey there! Unfortunately, I don't believe it's currently possible to use calculation in Ninja forms with date fields. I just tested it to double check. You could do this fairly easily with a bit of custom coding though. (Less than 30 minutes if you wanted to grab someone off Upwork.) Something similar to this (although this is gravity forms, the concept is the same) gravitywiz.com/populate-dates-gravity-form-fields/

    • @neraknerak1
      @neraknerak1 6 ปีที่แล้ว

      Yes I had to get Gravity Perks by Gravity Whiz which I highly recommend.

    • @ZenProjects
      @ZenProjects  6 ปีที่แล้ว

      Glad to hear that! We're going to be adding a video on Gravity Perks in the updated Gravity series this month.

  • @danielsousa8664
    @danielsousa8664 6 ปีที่แล้ว

    it is possible to create a guest form for a barbecue, creating a calculation of how many guests as a result to see the amount of kg needed?
    I'm having a project for a barbecue site

    • @ZenProjects
      @ZenProjects  6 ปีที่แล้ว

      Hey Daniel Sousa - Yes it definitely is, but it depends on when you want the calculation to happen. If you have a form where users are entering in how many guests they're going to have, you could setup a hidden field which would multiply this X kg per person to tell you how many kg you need per submission, then when everyone has submitted, you can combine those. You can do this manually by reviewing the submissions in the back-end (or have a running tally in a spreadsheet as you receive them, or use the Ninja Forms CSV Export extension and export it to CSV for an easy total.

  • @mikutonii
    @mikutonii 6 ปีที่แล้ว

    Is it possible to have the score for a questionnaire hidden but still available when we export our submissions on the back end? I've seen how to make it visible to the user everywhere but I cannot make the value hidden from the user.

    • @ZenProjects
      @ZenProjects  6 ปีที่แล้ว

      Hey Amanda - Absolutely, you don't need to add a total field on the front-end at all. If you have calculations setup in your form with Ninja, it will show you the results of the calculation when you view the submission in the back-end. You can also insert the calculation result into the email that's sent out. Look at the submissions of your form in the back-end on the right hand side and youll see the results of any calculations in your form. Let me know if that helps or if you have any other questions!

    • @ZenProjects
      @ZenProjects  6 ปีที่แล้ว

      Sorry I just saw you said available on the export, which when viewed this way it isn't. So what you'd want to do is use a hidden field. You can add a hidden field to your form and use the merge tag icon that's available to insert the calculation. Then users won't see the score but it will be available in the export. Sorry about that! Took me a second read. :) If that's not clear let me know and I can upload a quick video on how to do it.

  • @mikewindsoar3168
    @mikewindsoar3168 6 ปีที่แล้ว

    Is it possible to make a product order form that has multiple products ?