Hey @happysusan,
Thank you for reaching out! I’m afraid that we cannot offer custom development, especially on tools that we do not know and use frequently.
I might be able to help you populate a hidden field for a form built with Ninja Forms or Gravity Forms, as these are two plugins that we integrate with. However, for other form plugins, we cannot offer any assistance.
If you can use either Ninja Forms or Gravity Forms, please let me know and I’ll check to see what can be done.
Thank you and best wishes,
Mihai
I already have the forms throughout my website with autoresponders set up and I have already paid for it- I cannot justify spending more money on gravity forms or the ninja forms and completly redoing my contsct forms just so I can buy the pro version of slice
what i am asking for if you can’t help there is zero point developing it any further with you and zero point purchasing the pro version
getting cookie data into a hidden field so I know who the affiliate is when they join the form list. and I don’t have to stuff around cross referencing the time and date an affiliate commision happened and when the form was filled out gees
Hey @happysusan,
I can totally understand your frustration. I really do. Believe me, we’d love to be able to integrate flawlessly with all the tools available in the WordPress space.
We’d also love to be able to help each user with custom code snippets.
However, I do hope that you can understand that, as a small team, we can only do so much. If we believe that what the user is looking to implement is easily achievable via a quick code snippet, we’re happy to provide it.
If the implementation however is not straight forward, or is difficult to implement, I hope that you can understand that we cannot divert resources from the product itself, as this would be in the detriment of all users.
If you can let me know which forms plugin you’re using, I can look into it and see if it’s possible to add the referral data to a hidden field.
However, I’m afraid that I cannot guarantee any additional customization requests, as these can be past the scope of the services that we provide.
I hope that you can understand our position on this.
Thank you and best wishes,
Mihai
I am using a wordpress plugin called arigato pro
its the pro version of this
https://ww.wp.xz.cn/plugins/bft-autoresponder/
while it doesn’t look as good in the backend- it has more features than gravity forms and doesn’t make you pay for each and every feature
Hey @happysusan,
Thank you for letting me know the name of the plugin! Luckily, I’ve been able to play with their paid version, as they have a demo site up and running, and I believe I may have a solution to your particular case.
Here’s what I recommend you do:
1. Add a new hidden field for your mailing list, with the field name something like “affiliateid”.
2. Then, add the following line of code into the HTML of the form, right before the </form> tag:
<input type="hidden" name="affiliateid" value="<?php echo ( function_exists( 'slicewp_get_referrer_affiliate_id ) ? slicewp_get_referrer_affiliate_id() : '0' ); ?>">
Make sure that the “name” attribute’s value matches the field name value. So, if you have the field name “affiliateid”, then have name=”affiliateid” in the field’s code.
The value of this field will be given via PHP and uses SliceWP’s function that retrieves the affiliate ID cookie data.
Please try it out and let me know how it goes.
Thank you and best wishes,
Mihai
will that only work in the pro version as its not working in the free version
(i’ll need the pro version to mass pay people and easily pay people via paypal as they agreed to my account change)
Hey @happysusan,
This should work in the free version as well. Everything that I’m sharing here is about the free version.
Even so, can you please let me know how you’ve tested the code and what you were expecting to happen on the back-end? In which way did the code not work?
Thank you and best wishes,
Mihai
when I add the name to the code you gave nothing happens0
when I add the 0form name like field_234 then that field shows up but doesn’t get the number
so its not working iether way
so here is a video of how I set it up and the result I am after
https://vimeo.com/846870101
Hey @happysusan,
Did you set up the field for the mailing list with the same name as the one added to the code?
Please share a couple of screenshots, both with the code you’ve implemented and also with the hidden field’s settings.
Thank you and best wishes,
Mihai
yes I did you can see that in the video
<script type="text/javascript">
function validateBFTProUser(frm, requireName) {
requireName = requireName || false;
if(requireName && frm.bftpro_name.value=="") {
alert("Please provide name");
frm.bftpro_name.focus();
return false;
}
if(frm.email.value=="" || frm.email.value.indexOf("@")<1 || frm.email.value.indexOf(".")<1) {
alert("Please provide a valid email address");
frm.email.focus();
return false;
}
// check custom fields
var req_cnt = frm.elements["required_fields[]"].length; // there's always at least 1
if(req_cnt > 1) {
for(i = 0; i<req_cnt; i++) {
var fieldName = frm.elements["required_fields[]"][i].value;
if(fieldName !='') {
var isFilled = false;
// ignore radios
if(frm.elements[fieldName].type == 'radio') continue;
// checkbox
if(frm.elements[fieldName].type == 'checkbox' && !frm.elements[fieldName].checked) {
alert("This field is required");
frm.elements[fieldName].focus();
return false;
}
// all other fields
if(frm.elements[fieldName].value=="") {
alert("This field is required");
frm.elements[fieldName].focus();
return false;
}
}
}
}
return true;
}
</script>
<form method="post" enctype="multipart/form-data" class="bftpro-front-form bftpro-vertical bftpro-inline-label" onsubmit="return validateBFTProUser(this,false);" action="https://www.kidsmagicworld.com.au/" style="">
<fieldset>
<div class="bftpro-form-group "><label>Name:</label> <input type="text" name="bftpro_name" value="">
</div>
<div class="bftpro-form-group "><label>*Email:</label> <input type="text" name="email" value="">
</div>
<input type='hidden' name='required_fields[]' value='email'><div class="bftpro-form-group "><label>*test:</label> <input type="text" name="field_230" value="">
</div>
<input type='hidden' name='required_fields[]' value='field_230'>
<div class="bftpro-form-group ">
<input type="submit" value="Subscribe">
</div>
</fieldset>
<input type="hidden" name="bftpro_subscribe" value="1">
<input type="hidden" name="list_id" value="41">
<input type="hidden" name="required_fields[]" value="">
<input type="hidden" name="affiliateid" value="<?php echo ( function_exists( 'slicewp_get_referrer_affiliate_id ) ? slicewp_get_referrer_affiliate_id() : '0' ); ?>">
</form>
is the form used in the first test
the hidden fields name is
affiliateid
Hey @happysusan,
Thank you for sharing the video! But, I’m afraid the video does not showcase the issue you’re having with the Arigato form, but rather with our payouts system.
I will answer here the issue you’ve presented in the video. As you can notice, you already have a payout, of $25. If you click to view the payout, you should see that it contains one reference payment of $25. If you then view this payment, you should see that it contains the $25 commission you already have.
Because you have only one commission generated, and because this commission is part of a reference payment, the system will not take it into account if you attempt to create a new payout.
Also, the payment you see in the payout, is a reference one. You will need to process it manually and then mark it as paid inside the plugin.
Thank you and best wishes,
Mihai
Hey @happysusan,
The implementation of the field looks good. Once you complete the form, does the “affiliateid” field have any value attached for the subscriber?
By default, it should show 0 (zero), if there isn’t a referred visit, or the affiliate’s ID if the visit was referred.
Does it show any value or is it empty?
Thank you and best wishes,
Mihai
no no no The video is not about the payout system but arigato pro form
we have not got to the payout part yet
all the form is supposed to do is collect the cookie data of the affiliate who refered it
I think you are confused with another topic