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, http://www.68classifieds.com/forums/modules-plugins-modifications/7545-renewal-question.html Can somebody advise please. Thanks
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}
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