V4.1.x Hide Renewal Option

Discussion in 'Modules / Plugins / Modifications' started by belvedere, Mar 11, 2011.

  1. belvedere Customer

  2. John Snyder Staff

    Upgrades show along with renewal, because they could add options such as featured any time. You can disable upgrades by changing this in the user/userbrowselistings.tpl

    HTML:
    {if $entry.oStatus == 3 || $entry.oStatus==4}
          
    {elseif $entry.renew}
        <br /><a href="userrenew.php?action=renew&listingid={$entry.id}&orderid={$entry.orderID}">{$smarty.const.LANG_LISTING_CLICK_TO_RENEW}</a>
    {else}
        <br /><a href="userrenew.php?action=renew&listingid={$entry.id}&orderid={$entry.orderID}">{$smarty.const.LANG_LISTING_UPGRADE}</a>
    {/if}
    
    Just remove the code between else and if:

    HTML:
    {if $entry.oStatus == 3 || $entry.oStatus==4}
          
    {elseif $entry.renew}
         <br /><a  href="userrenew.php?action=renew&listingid={$entry.id}&orderid={$entry.orderID}">{$smarty.const.LANG_LISTING_CLICK_TO_RENEW}</a>
    {/if}
    
  3. belvedere Customer

    Thanks for your reply. But I don't want to disable upgrades. I want to hide the renewal option in the checkout step1 where you choose the features you want.

    Thanks

Share This Page