Solved Template xs_uup_renew seems to not work properly

Smiley

Licensed
Licensed
Upgrade Coupons
User Upgrade Duration
User Upgrade Pro
Joined
Mar 8, 2022
Messages
13
Reaction score
6
Hello, i've noticed that nothing happens when clicking on "Renew". When investigating i saw an if check for XENTR/AccountUpgrades in the xs_uup_renew template.

I tried to troubleshoot this problem but eventually had to remove the if tag to get it to work. I can't help you further sadly.

Best regards
zordem
 
Hello,

XENTR/AccountUpgrades Do you have this addon installed?
 
No, i do not.

My template looks like this now:
Code:
<xf:title>{{ phrase('xs_uup_renew') }}</xf:title>

<xf:css src="xs_uup_renew.less" />
<xf:js src="XenSoluce/UserUpgradePro/upgrade-page.js" />

<div class="block">
    <div class="block-container">
        <ul class="block-body">
            <li>
                <xf:form action="{{ link('purchase', $upgrade, {'user_upgrade_id': $upgrade.user_upgrade_id}) }}" ajax="true" data-xf-init="payment-provider-container">
                    <xf:hiddenval name="duration" id="duration">no</xf:hiddenval>
                    <xf:hiddenval name="renew">no</xf:hiddenval>
                    <xf:formrow rowtype="button"
                                label="{$upgrade.title}"
                                hint="{$upgrade.cost_phrase}"
                                explain="{$upgrade.description|raw}">
                        <div class="inputGroup">
                            <xf:if is="{{ count($upgrade.payment_profile_ids) > 1 }}">
                                <xf:select name="payment_profile_id">
                                    <xf:option>{{ phrase('(choose_payment_method)') }}</xf:option>
                                    <xf:foreach loop="$upgrade.payment_profile_ids" value="$profileId">
                                        <xf:option value="{$profileId}">{$profiles.{$profileId}}</xf:option>
                                    </xf:foreach>
                                </xf:select>
                                <span class="inputGroup-splitter"></span>
                                <xf:button type="submit" icon="purchase" />
                                <xf:else />
                                <xf:button type="submit" icon="purchase" />
                                <xf:hiddenval name="payment_profile_id">{$upgrade.payment_profile_ids|first}</xf:hiddenval>
                            </xf:if>
                        </div>
                    </xf:formrow>
                </xf:form>
                <div class="js-paymentProviderReply-user_upgrade{$upgrade.user_upgrade_id}"></div>
            </li>
        </ul>
    </div>
</div>
 
Yes, but if you look there's an “else”, and the else is the template if you don't have the addon, so I don't understand.
 
Yes i saw that, for some reason it did not work. I've tested it multiple times.
 
It's actually too weird to make a <div class=block in an if/else, for some reason neither the if nor the else works, I think it comes from XF2.3.
 
Yes i think that too, nice that you found it. I didn't :( haha
 
Back
Top Bottom