Jump to content

Photo
- - - - -

How to NOT show the default plan on the Subscription Syntax

syntax default payment plan subscription

  • Please log in to reply
1 reply to this topic

#1 redlake2

redlake2

    Level 1

  • Members
  • Level
  • 0 points
  • 4 posts

Posted 31 March 2014 - 08:22 AM

Hi,

 

My default subscription plan is Free.

 

And then after a set period of time, I am changing the user to a different plan but don't want to allow them to re-sign up to the free plan (default).

 

I therefore want to hide the default plan on the form but don't know the syntax on how to do that.

 

Currently I have:

    // Get available subscriptions
    $packagesTable = Engine_Api::_()->getDbtable('packages', 'payment');
    $packagesSelect = $packagesTable
      ->select()
      ->from($packagesTable)
      ->where('enabled = ?', true)
      ;

    if( $this->_isSignup ) {
      $packagesSelect->where('signup = ?', true);
    }

 

I simply want to add another WHERE clause to indicate that if default = false then show it.

 

The default plan will always be enabled. I have attached an image to show you. The file is stored under payment/form/signup/subscription.php

 

Can anyone show me how to do that?

 

I am a C++ programmer but am a bit stumped with this.

 

Denise


Thanks,

redlake2

#2 ohshititsmike

ohshititsmike

    Level 1

  • Members
  • Level
  • 14 points
  • 17 posts

Posted 10 April 2014 - 11:44 AM

what you have to do is go into your database and delete the default subscription







Also tagged with one or more of these keywords: syntax, default, payment, plan, subscription

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users


All the resources listed here are just for testing purpose and they shouldn't be used at any commercial environment without a valid license.
Those are for users who wants to try them before buy. Help the developer to build it better by purchasing them from original authors.