Title: Cost Calculation
Last modified: July 22, 2020

---

# Cost Calculation

 *  Resolved [Imran Siddiq](https://wordpress.org/support/users/flickimp/)
 * (@flickimp)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cost-calculation/)
 * A hidden field detects that the User is on Post Name Green
    So only Select_1 
   becomes active that shows the Costs applicable The calculated cost will use Select
   1 as I have set it to use that.
 * If the hidden field detects the Post Name to be Red, then Select 2 and Cost 2
   become activated.
 * But Paypal at the moment only works with 1 final cost field so how do I tell 
   it to pick up Final Cost_1 for Green and Final Cost_2 for Red.
 * Because you can’t duplicate Paypal buttons or rename them, I can’t get the form
   to work out the final cost.
    -  This topic was modified 5 years, 9 months ago by [Imran Siddiq](https://wordpress.org/support/users/flickimp/).
    -  This topic was modified 5 years, 9 months ago by [Imran Siddiq](https://wordpress.org/support/users/flickimp/).

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [Imran Siddiq](https://wordpress.org/support/users/flickimp/)
 * (@flickimp)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cost-calculation/#post-13155000)
 * Page Name is Green
    * Select 1 becomes active and has 2 options = Half Day and
   Full Day * Half Day = $30 * Full Day = $60
 * Number 1 Field = Attendees
 * Calculation 1 = Select 1 * Number 1
 * But if the Page Name is Red, then
    * Select 2 becomes Active with 2 options *
   Calculation would become Select 2 * Number 1
 * I’m okay up to here, but final Cost needs to be based on either one depending
   on the page name or the one that followed through. Again that’s fine but then
   I have:
 * * Cost 1 based on Green
    * Cost 2 based on Red
 * The problem is how can I tell Paypal to pick up the one that is active?
 *  Thread Starter [Imran Siddiq](https://wordpress.org/support/users/flickimp/)
 * (@flickimp)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cost-calculation/#post-13156946)
 * Cracked it
 * Just created another Calculation that is Cost 1+ Cost 2
    Because only 1 will 
   ever be active, then the other will be 0. Have tested.
 * Done.
    🙂
 *  Thread Starter [Imran Siddiq](https://wordpress.org/support/users/flickimp/)
 * (@flickimp)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cost-calculation/#post-13157060)
 * Closing this down
 *  Thread Starter [Imran Siddiq](https://wordpress.org/support/users/flickimp/)
 * (@flickimp)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cost-calculation/#post-13157062)
 * Sorry, closing it down now.
 *  [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * (@wpmudev-support1)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cost-calculation/#post-13160248)
 * Hi [@flickimp](https://wordpress.org/support/users/flickimp/),
 * Glad to hear you found a solution and thanks for taking the time to share the
   setup you’ve used 🙂
 * Cheers,
    Predrag

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Cost Calculation’ is closed to new replies.

 * ![](https://ps.w.org/forminator/assets/icon-256x256.gif?rev=3443182)
 * [Forminator Forms – Contact Form, Payment Form & Custom Form Builder](https://wordpress.org/plugins/forminator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/forminator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/forminator/)
 * [Active Topics](https://wordpress.org/support/plugin/forminator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/forminator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/forminator/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/cost-calculation/#post-13160248)
 * Status: resolved