This is only possible in the Lema widget.
If you want to set default amount values or change from one-time to recurring donation as default, you can define defaults as shown in the following code.
window.rnwWidget = window.rnwWidget || {};
window.rnwWidget.configureWidget = window.rnwWidget.configureWidget || [];
window.rnwWidget.configureWidget.push(function(options) {
//Sets widget default to recurring payment and interval to quarterly
options.defaults['recurring_interval'] = 'quarterly';
//Sets default for recurring interval to quarterly
options.defaults['ui_recurring_interval_default'] = 'quarterly';
//Sets default recurring payment amount for interval quarterly to currency subunit 15000
options.defaults['ui_recurring_amount_default'] = '15000';
//Sets default for one-time payment amount to currency subunit 1000.
options.defaults['ui_onetime_amount_default'] = '1000';
});
recurring_interval := Sets widget default to recurring payment. Do not set this parameter if you want to have one-time donation as default. Allowed values: monthly|quarterly|semestral|yearlyParameter Values:
-
ui_recurring_interval_default := Sets default for recurring interval. Allowed values: monthly|quarterly|semestral|yearly
-
ui_recurring_amount_default := Sets default amount for recurring payments. Use currency subunit.
-
ui_onetime_amount_default := Sets default amount for one-time payment. Use currency subunit.
Be careful: If combination amount-interval does not exists, the custom amount field will be used.
Comments
0 comments
Please sign in to leave a comment.