you have to edit the plugin directly.
Goto rave-payment-forms/includes/rave-shortcode.php
around line 93 or there about
change this code:
$main_option_default = array(
‘amount’ => ”,
‘custom_currency’ => [],
’email’ => $email,
‘country’ => $admin_settings->get_option_value(‘country’),
‘currency’ => $admin_settings->get_option_value(‘currency’),
‘recurring_payment’ => $payment_plans_settings->get_option_value(‘recurring_payment’),
‘extra_count’ => count($extra_fields),
‘extra_checkbox_count’ => count($extra_fields_checkbox),
‘paymentplans’ => [
$payment_plans_settings->get_option_value(‘recurring_payment_plan_1’) => $plan_name_1,
$payment_plans_settings->get_option_value(‘recurring_payment_plan_2’) => $plan_name_2,
$payment_plans_settings->get_option_value(‘recurring_payment_plan_3’) => $plan_name_3,
$payment_plans_settings->get_option_value(‘recurring_payment_plan_4’) => $plan_name_4,
],
to this code:
global $current_user;
get_currentuserinfo();
$email_n = $current_user->user_email;
$current_user_id = get_current_user_id();
$first_name = get_user_meta($current_user_id, ‘first_name’, true);
$last_name = get_user_meta($current_user_id, ‘last_name’, true);
$main_option_default = array(
‘amount’ => ”,
‘custom_currency’ => [],
’email’ => $email_n,
‘firstname’ => $first_name,
‘lastname’ => $last_name,
‘country’ => $admin_settings->get_option_value(‘country’),
‘currency’ => $admin_settings->get_option_value(‘currency’),
‘recurring_payment’ => $payment_plans_settings->get_option_value(‘recurring_payment’),
‘extra_count’ => count($extra_fields),
‘extra_checkbox_count’ => count($extra_fields_checkbox),
‘paymentplans’ => [
$payment_plans_settings->get_option_value(‘recurring_payment_plan_1’) => $plan_name_1,
$payment_plans_settings->get_option_value(‘recurring_payment_plan_2’) => $plan_name_2,
$payment_plans_settings->get_option_value(‘recurring_payment_plan_3’) => $plan_name_3,
$payment_plans_settings->get_option_value(‘recurring_payment_plan_4’) => $plan_name_4,
],
after this, you don’t need to use the email shortcode anymore. it works of the box. only user the email shortcode for single user if you want.
Hope this Helps. Gracias.
-
This reply was modified 3 years, 11 months ago by
biodun09.