Count Checkbox as Paid Addon

By: Rex AZ | Asked: 01/30/2023
ForumsCategory: How-toCount Checkbox as Paid Addon
Rex AZRex AZ asked 1 year ago
Hi, I want to make my big total field add increase by 2,000 every time someone selects at least 2 (not 1) items in the checkbox. Here is the logic: I have a total field that shows an amount, And I have a checkbox field with over 20 items. So, I want it such that anytime someone selects 1 item, 0 is added to the total. But when you select 2 items, 2000 is added to the total. And when 3 items are selected, 4000 is added to the total, and when 4 items are selected, 6000 is added to the total and so on. More like getting 1 free addon (by selecting 1 checkbox and paying 2000 if you select an additional box. And every new checkbox you select, attracts another 2,000 each). So, how do I make selecting just 1 checkbox not add anything to the total, but adding another box will add 2000 to the total and so on in this progression?
3 Answers
Walter JonesWalter Jones answered 1 year ago
Set separate values in your checkboxes.  
Rex AZRex AZ replied 1 year ago

How do I do that, please? I am not sure, how to go about doing so.

Could you guide me, please?

Victor Font answered 1 year ago
See this:
Rex AZRex AZ answered 1 year ago
Thanks, everyone... This was helpful.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community