Stop Vantage Free Listing Renewal Solution
Hi Guys,
i thought i would post this as a solution until developers add a better solution in a future release, as it seems support WILLN'T supply it (and they could of done it much better than this) - really this is an easy fix and should have been added in the newest releast 1.3.3
anyway if you want to stop users who have a free listing from renewing a free listing again and again then follow these steps (someone did this already but was way back in 2012 - this is for the current release 1.3.3) you can find the old solution here
http://forums.appthemes.com/vantage-...-option-61253/
1 - goto the file "purchase-new-lisitng.php" its in the root directory of your theme.
2 - on line 12 or 13 you'll find this bit of code
HTML Code:
<div class="plan>
change it to this
PHP Code:
<div class="plan <?php echo strtolower($plan['plan_title']); ?>">
this basically adds the title of your listing plan in lower case to the html like this <div class="plan free">
3- Next you have to hide that plan box using css ONLY WHEN A USER IS RENEWING THEIR FREE LISTING. The new css code needs to be added in style.css which is also in the root directory:
Code:
.va_listing_renew .free { display: none !important; }
4 - Finally and most importantly i believe is making sure a different plan is selected when the user tries to renew their listing otherwise they could just click next during the renew listing process and still have the free listing renewed. This also makes sure the next plan is selected by default during the create new listing process (as we really want people to buy a listing, not give them the free listing as default). This is simple just go towards the bottom of the "purchase-new-listing.php" and change
to
. Remember backup the page before attempting this and i have only tried it on the latest releast 1.3.3
Hope it works for you
cheers
Corey