Welcome, Guest
Username: Password: Remember me

TOPIC: Allow choice of "Premium" when already "Free"...

Allow choice of "Premium" when already "Free"... 3 years 5 months ago #7085

  • WEB DEV's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 14
  • Karma: 0
OK, so we have default "Free" membership, and we make a second "Premium" membership.
So, when a user goes to post an ad for the very first time... they get the choice of either membership.

IF they chose "Free" ( and we have set free to always recur) then they NEVER AGAIN have the option of upgrading to "Premium". :(

I'm trying to workaround this, and so far have arrived at this tweak (a couple of overrides) in In /etc/premium.php
public static function getPremiumItems($type, $filter) {
		$db = JFactory::getDBO();		
		$query = "SELECT * FROM #__jomcl_premium ";						
		$query .= " WHERE type=".$db->quote($type);			
		if($filter != NULL){

WAS $query .= " AND id IN(".$filter.") ";  
NOW $query .= " AND id=3 OR id IN(".$filter.") "; //id 3 is our premium membership

(and also - in the // Select user by memberships section...) 

WAS			$isFreeUser = self::getUserisfree($user->id);
NOW			$isFreeUser = 0;

WAS			 $isNew 	= 1;
NOW			 $isNew 	= 0; 

So now I can get both options offered for everyone, regardless of which plan they have previously selected.
And when they select "Premium" , the correct order seems to be generated.

Do you see any issues in this approach? We really only need the two plans...
The administrator has disabled public write access.

Allow choice of "Premium" when already "Free"... 3 years 5 months ago #7088

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 3039
  • Thank you received: 353
  • Karma: 46
Dear Customer,

We got your problem. But currently we don't have upgrade option which we will add to our extension in future. If you need it immediately, kindly contact our customization team at This email address is being protected from spambots. You need JavaScript enabled to view it. .

The administrator has disabled public write access.
Time to create page: 0.120 seconds

Contact us

  No.2/A, Venkateshwara Nagar,
1st Main Road, 100 Feet Road, SBM Towers, Velachery,Chennai - 600 042,India.
Copyright © 2013-2020 Jomclassifieds.com. All rights reserved. The Joomla! name, and logo are used under a limited license granted in the United States and other countries.