Support Forums

Hide Renewal Option

This is a discussion on Hide Renewal Option within the Modules / Plugins / Modifications forums, part of the Developer Forums category; Hi, When a user clicks on "Upgrade" in Browse Listings he automatically gets the renewal option. I want to hide ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 03-11-2011, 02:34 PM   #1
Customer
 
Join Date: Oct 2009
Posts: 114
Rep Power: 10
belvedere is on a distinguished road
Default Hide Renewal Option

Hi,

When a user clicks on "Upgrade" in Browse Listings he automatically gets the renewal option. I want to hide this unless the advert is really due for renewal. I've tried the code on the following post but it doesn't do anything,

Renewal question

Can somebody advise please.

Thanks
belvedere is offline   Reply With Quote
Old 03-11-2011, 03:19 PM   #2
Staff
 
Join Date: Mar 2006
Location: New Jersey
Posts: 2,135
Rep Power: 67
John Snyder is a jewel in the rough
Default

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 Code:
{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 Code:
{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}
__________________
John
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
John Snyder is offline   Reply With Quote
Old 03-11-2011, 05:00 PM   #3
Customer
 
Join Date: Oct 2009
Posts: 114
Rep Power: 10
belvedere is on a distinguished road
Default

Quote:
Originally Posted by juven14
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 Code:
{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 Code:
{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}
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
belvedere is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Renewal option still shows when I click on upgrade? arivederchi Technical Support 7 06-21-2010 06:41 PM
Renewal Price limit option? Razgo Technical Support 11 09-24-2009 03:52 AM
Renewal option under Upgrade slappy5150 Technical Support 1 09-02-2009 08:19 AM
Renewal option slappy5150 Technical Support 4 08-31-2009 10:33 PM
Hide Categories without Ads markstanden Modules / Plugins / Modifications 17 06-03-2009 05:36 AM


All times are GMT -4. The time now is 10:11 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0