Jump to content

Adding upgrade/donwgrade config options to the services page


Recommended Posts

Hi,

 

On the "services" page ( clientarea.php?action=products ) users have a drop down menu where they can select different options such as upgrading/downgrading package. Here is the code from the clientareaproducts.tpl file:

 

                <ul class="dropdown-menu">
                   {if $service.downloads} <li><a href="clientarea.php?action=productdetails&id={$service.id}#tab3"><i class="icon-download"></i> {$LANG.downloadstitle}</a></li>{/if}
                   {if $service.addons} <li><a href="clientarea.php?action=productdetails&id={$service.id}#tab4"><i class="icon-th-large"></i> {$LANG.clientareahostingaddons}</a></li>{/if}
                   {if $service.packagesupgrade} <li><a href="upgrade.php?type=package&id={$service.id}#tab3"><i class="icon-resize-vertical"></i> {$LANG.upgradedowngradepackage}</a></li>{/if}
                   {if ($service.addons || $service.downloads || $service.packagesupgrade) && $service.showcancelbutton} <li class="divider"></li>{/if}
                   {if $service.showcancelbutton} <li><a href="clientarea.php?action=cancel&id={$service.id}"><i class="icon-off"></i> {$LANG.clientareacancelrequestbutton}</a></li>{/if}
               </ul>

 

I am only looking at the variable to use in order to display a button to upgrade/donwgrade configurable options.

 

I have tried the following (copy/paste from clientareaproductdetails.tpl) but it does not work:

{if $configoptionsupgrade}<li><a href="upgrade.php?type=configoptions&id={$id}">{$LANG.upgradedowngradeconfigoptions}</a></li>{/if}

 

I assume the problem is with $configoptionsupgrade

 

Thank you

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated