Find Jobs
Hire Freelancers

Setup a Caldera Form (with calculated variables)

$10-30 USD

I përfunduar
Postuar over 5 years ago

$10-30 USD

Paguhet në dorëzim
I need you to setup / create a form within caldera forms plugin. The data needed for calculation comes from givewp and affiliatewp plugins user data plus a user input (a floating number field in the form eg 0,1). The calculation for the affiliatewp processor [Total] field is: (givewp total donated + affiliatewp unpaid referrals) * user input After succesful form submission the total unpaid referrals amount should be increased by [Total] I don´t know how (or if i have to) setup "magic tags" or "variables" or use "html input" within caldera forms and how to construct the calculation fields. So this is entirely up to you. In the end it just need to work. I could imagine that for an experienced wp coder this is easy as pie. #### Resources: #### ## Retrieve total donated amount ## $user = wp_get_current_user(); $donor = new Give_Donor( $user->ID, true ); $donor_total_donation_amount = $donor->id ? give_format_amount( $donor->purchase_value, array( 'currency' => give_get_option('currency') ) ) : 0; ## retrieve unpaid referrals ## function affwp_get_affiliate_unpaid_earnings( $affiliate, $formatted = false ) { if ( ! $affiliate = affwp_get_affiliate( $affiliate ) ) { return false; } $earnings = $affiliate->unpaid_earnings; if ( $formatted ) { $earnings = affwp_currency_filter( affwp_format_amount( $earnings ) ); } return $earnings; } ## increase unpaid referral amount ## function affwp_increase_affiliate_unpaid_earnings( $affiliate, $amount, $replace = false ) { if ( ! $affiliate = affwp_get_affiliate( $affiliate ) ) { return false; } if ( empty( $amount ) || floatval( $amount ) <= 0 ) { return false; } if ( false === $replace ) { $unpaid_earnings = affwp_get_affiliate_unpaid_earnings( $affiliate ); } else { $unpaid_earnings = 0; } $unpaid_earnings += $amount; $unpaid_earnings = round( $unpaid_earnings, affwp_get_decimal_count() ); if ( affiliate_wp()->affiliates->update( $affiliate->ID, array( 'unpaid_earnings' => $unpaid_earnings ), '', 'affiliate' ) ) { return $unpaid_earnings; } else { return false; } } ## links ## really don´t know if helpful, but seems could be ## [login to view URL] [login to view URL] [login to view URL] [login to view URL]
ID e Projektit: 17546972

Rreth projektit

4 propozime
Projekt në distancë
Aktive 6 yrs ago

Po kërkoni të fitoni para?

Përfitimet e ofertës për Freelancer

Vendosni buxhetin dhe afatin tuaj
Paguhuni për punën tuaj
Përshkruani propozimin tuaj
Është falas të regjistrohesh dhe të bësh oferta për punë
I dhënë për:
Avatari i Përdoruesit
Hello, Hope you are doing well. I have read your job details and understood it. So basically i have done this not exact thing but almost same with gravity forms with custom inputs and custom form notifications. I will start on this job right away and can finish it by next few hours. Thanks
$40 USD në 1 ditë
4,9 (29 përshtypje)
4,7
4,7
4 freelancers are bidding on average $33 USD for this job
Avatari i Përdoruesit
How are you. --------------------------- - ------------------------------ -----------------------------
$25 USD në 1 ditë
4,9 (74 përshtypje)
5,5
5,5
Avatari i Përdoruesit
Hello, I have reviewed the job post and I am interested to complete your requirements. I have great working experience with Wordpress, plugin development and customization, programming for a multitude of different projects. Implemented code based on project specifications,Tested and documented code. Please contact me if you would like to schedule an interview or have any questions about my skills or experience. Thanks Seemant
$30 USD në 1 ditë
0,0 (0 përshtypje)
0,0
0,0

Rreth klientit

Flamuri i AUSTRIA
Innsbruck, Austria
5,0
3
Mënyra e pagesës u verifikua
Anëtar që nga nën 23, 2017

Verifikimi i klientit

Faleminderit! Ne ju kemi dërguar me email një lidhje për të kërkuar kredinë tuaj falas.
Ndodhi një gabim gjatë dërgimit të email-it tuaj. Ju lutemi provoni përsëri.
Përdorues të regjistruar Punë të postuara
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Po ngarkohet shikimi paraprak
Leja u dha për Geolocation.
Seanca e hyrjes ka skaduar dhe ke dalë. Hyr sërish.