Welcome, Guest
Username: Password: Remember me

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

Allow choice of "Premium" when already "Free"... 2 months 6 days ago #7085

  • WEB DEV
  • WEB DEV's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 10
  • 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"... 2 months 4 days ago #7088

  • Super User
  • Super User's Avatar
  • Online
  • Administrator
  • Posts: 2786
  • Thank you received: 299
  • Karma: 40
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. .

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