Code: Select all
[OPEN]
includes/lw_paypal_functions.php
[FIND]
if($user_in_grp_flag == 1 && $Input_Array['GROUP_SUBSCRIPTION_RECURRING'] == 1 && $Input_Array['LAST_GATEWAY_TYPE'] != GATEWAY_PAYPAL)
{
//do nothing
}
else
{
$the_template->assign_block_vars('switch_lw_paypal_subscription', array());
}
[REPLACE WITH]
if($user_in_grp_flag == 1 && $Input_Array['GROUP_SUBSCRIPTION_RECURRING'] == 1 && $Input_Array['LAST_GATEWAY_TYPE'] != GATEWAY_PAYPAL)
{
//don't do nothing * * * *
$the_template->assign_block_vars('switch_lw_paypal_subscription', array());
}
else
{
$the_template->assign_block_vars('switch_lw_paypal_subscription', array());
}
Picture with this change:sandodo wrote:This code that you changed means if user is in this payment group, and if this payment group's type is recurring payment and if last time user pay to join this group is not via paypal, we will NOT display the unsubscription button. otherwise display paypal subscription or unsubscription section .
If you modified the code as you posted, now if you add another new payment gateway, like StormPay or Cash MOD, and your user subsribed by stormpay, he will also see the paypal unsubscription button, it will look weird. make sure you test the mod with the correct steps. for example, the user is not added to subscription group by manual update via ACP
You need a Premier or business account because you will need to set up your bank details to transfer the money.killyouall wrote:i was wondering do you actually need a Premier/Business Account to receive payments?