Hi Florian, can you check the following Add-on. Let me know if this is what you are looking for.
Depends, does this Add-on support form submission in general or specically just sales via paypal . Is there a code-snippet I can trigger sales count of according affiliate manually?
Thanks,
Florian
Hi Florian, the plugin developers will reply further to your questions.
Thank you
@flowrian, Our gravity forms PayPal addon only tracks affiliate sales at the moment. If you need to develop a custom solution please check this documentation:
https://wpaffiliatemanager.com/api-track-commission-via-a-wordpress-hook/
Thanks, is there an easy way to implement that without writing a plugin. If a user is redirected to a thank you page (after submission of a form) the only thing i want is that on that page >>
– cookie is read ($aff_id = $_COOKIE[‘wpam_id’];)
– and according affiliate gets a defined “sale” recorded (i.e. ($args[‘amount’] = ‘0.95’;//TODO)
Basically that´s a payment for qualified leads.
Hi, I was able to drop the code with “php insert” plugin on that page, but how can txn_id be generated instead of being a fix value? I would do it as follows >>
$args = array();
$args[‘txn_id’] = ‘4JX55705JA6177943’;//TODO ???
$args[‘amount’] = ‘0.10’;//TODO
$args[‘aff_id’] = $_COOKIE[‘wpam_id’];
do_action(‘wpam_process_affiliate_commission’, $args);
Would that work, if txn_id would be newly generated once a user hits that “thank you” – page?