kontrabass
Well-known member
@kontrabass my bad man, I totally forgot about this. Sorry.
No worries
@kontrabass what is the change you made to make the button work?
Find the xen:if statement in the template account_upgrades that starts with this:
Code:
<xen:if is="{$upgrade.length_unit} AND {$upgrade.recurring}">
And replace that entire if statement with this longer version:
Code:
<xen:if is="{$upgrade.length_unit} AND {$upgrade.recurring}">
<a href="{$payPalUrl}?cmd=_manage-paylist" class="button">{xen:phrase cancel_subscription}</a>
<xen:elseif is="{$upgrade.can_extend}" />
<form action="{$payPalUrl}" method="post" class="upgradeForm">
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="amount" value="{$upgrade.cost_amount}" />
<input type="submit" value="{xen:phrase exup_extend_upgrade}" class="button" />
<input type="hidden" name="business" value="{$xenOptions.payPalPrimaryAccount}" />
<input type="hidden" name="currency_code" value="{$upgrade.currency}" />
<input type="hidden" name="item_name" value="{xen:phrase account_upgrade}: {$upgrade.title} ({$visitor.username})" />
<input type="hidden" name="quantity" value="1" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="custom" value="{$visitor.user_id},{$upgrade.user_upgrade_id},token,{$visitor.csrf_token_page}" />
<input type="hidden" name="charset" value="utf-8" />
<input type="hidden" name="email" value="{$visitor.email}" />
<input type="hidden" name="return" value="{xen:link 'full:account/upgrade-purchase'}" />
<input type="hidden" name="cancel_return" value="{xen:link 'full:index'}" />
<input type="hidden" name="notify_url" value="{$xenOptions.boardUrl}/payment_callback.php" />
<div class="cost">{$upgrade.costPhrase}</div>
</form>
</xen:if>