Predefined Recurring Amount & Interval Type.
-
Hi there,
I need to predefine the recurring amount, along with the interval type. Where can I customise this?
Thanks!
-
Also, how can I change the start and end dates? It has got to be somewhere, I just can’t find it…
I assume if we want to make the Interval Type quarterly only, we use this script: https://gist.github.com/webaware/10569363 and modify ‘monthly’ to ‘quarterly’? is there anything else in the file we need to change?
Thanks.
G’day DeeperLook,
The recurring payments field in this plugin is fairly restricted. You can use some JavaScript to pre-fill the field values, however, so speak to your developer about that. Gravity Forms provides action hooks that you can use to trigger field pre-fills.
cheers,
RossHi Ross,
Thanks for the reply. It seems like pre-filled recurring amounts would be a fairly requested feature. Is there any chance you’d have an example of the JavaScript needed for this?
Also, was I correct in assuming you just need to change:
$periods = array(‘monthly’);
to
$periods = array(‘quarterly’);for the Quarterly Interval to be only selectable?
Cheers.
Yes, fairly often requested. I have a non-free plugin that is a work in progress, and that addresses many issues with the free plugin.
The structure of the free plugin makes a few things hard to do, and the requirement for backwards-compatibility complicates changing it. My focus for new features is the non-free plugin, with maintenance and bug fixes for the free plugin — in fact, there’s a maintenance release for the free plugin coming out pretty soon (days at most).
Yes, that snippet can be used to restrict the period to quarterly by changing the string as you’ve shown.
cheers,
RossHi Ross,
Thanks for the response. I would definitely be the first person to purchase this non-free plugin, have you got a ball park date?
Also, in regards to the pre-filled recurring value JS script, is it possible to hire your team to quickly adjust this for me? eWay assured me this was possible and after waiting 3 weeks for them to finally process my application, I need to have this set up so I can continue with my business.Thanks mate, much appreciated.
Hi Ross,
I’ve just looked at adding a hook but I can’t dynamically pre-fill the field because there is no checkbox for the ‘Allow field to be populated dynamically’ option that is necessary to allow this.
Is it possible to add one in?
Thanks.
Using the dynamic population isn’t simple with a complex field like the recurring payments field. Just look at an Address field for an example. I’m unlikely to add that support, or not very soon anyway.
I suggest you go the JavaScript route, which others have done successfully. If you need someone to write that for you, please contact me via my support page. However, be aware that I’m pretty busy already this week!
cheers,
RossHi Ross,
I appreciate your guidance, I’ll shoot your a message regarding the JS Route. For a quick hack to get the ball rolling, in the class.GFEwayRecurringField.php file I’ve changed the value from:
$recurring_amount = empty($value[3]) ? ‘0.00’ : $value[3];
to
$recurring_amount = empty($value[3]) ? ‘100.00’ : $value[3];and added a readonly parameter to the input tag so that the user can’t change it:
$input .= “<input name=’gfeway_{$id}[{$sub_id}]’ id=’$field_id’ type=’text’ readonly=’readonly’ value=’$value’ class=’ginput_amount $class’ $tabindex $disabled_text />”;
Is okay to do so that I can have sales come in today and then, if you’re available next week, you can add the JS modification?
Thanks again for your support.
If you see an update for the plugin in the next day or so, don’t just run the update or you’ll lose that change ??
Otherwise, sure, it’ll work.
cheers,
RossBrilliant, thanks Ross.
Hi DeeperLook and webaware,
I was wondering if there has been an update on this?
I’m trying to get the recurring payment amount to auto populate dependent on the type of donation a user selects and I can’t work out how to change from the default “0.00”Would you have any ideas?
Thank you ??
G’day @dandydahlia,
If you need to manipulate aspects of the recurring payment, I strongly suggest you get the Pro plugin. It doesn’t use a special field for recurring payments, so it is much more flexible.
https://gfeway.webaware.net.au/
cheers,
RossThanks Ross,
Do you have any where to direct me to to learn how/where to manipulate the recurring aspects for your plugin? I’m really struggling getting it working with no where to turn and no help docs anywhere etc so would appreciate any help.
I looked at the Pro version but it doesn’t seem to mention it does anything different for recurring? Also I just felt really confused by it all – it says $50 USD then checkout said $55 but it’s an Australian site so is that $55 AUD or USD and why the change. There’s no mention if it’s lifetime or needs renewal etc. I’ve been burnt badly by buying plugins before so unless I see everything clearly in writing showing what the deal is I don’t feel confident in buying.
Thanks
G’day Dandydahlia,
From the website: “Purchase includes one year of automatic updates and support.”
https://gfeway.webaware.net.au/pro/
Australian purchasers must pay GST, raising the price to USD $55. Non-AU purchasers don’t pay GST. After the first year, you will be offered renewal at a discount (currently the sticker price less 30%).
My apologies for the lack of doco on recurring payments. I’m still filling out that site. Unlike the free add-on, the pro add-on uses feeds for configuring how things are sent to eWAY. For recurring payments, you create a feed with that Integration Method:
https://gfeway.webaware.net.au/pro/create-a-feed/
Then you set the Recurring Payments Settings for that feed. Here’s what the settings look like:
https://dl.dropboxusercontent.com/u/26305751/gfewaypro/gfewaypro-feed-recurring-settings.png
Each of those settings can be set from fields in the form, so it’s pretty flexible.
If you need to discuss the pro add-on further, please contact me via my support form — this forum is meant to be for the free plugins hosted here.
cheers,
Ross
- The topic ‘Predefined Recurring Amount & Interval Type.’ is closed to new replies.