Results 1 to 2 of 2

Thread: BUG REPORT - payment plans ordering

  1. #1
    Thread Starter
    red20me's Avatar
    Join Date
    Jul 2013
    Location
    United Kingdom
    Posts
    473
    Thanks
    1
    Thanked 104 Times in 93 Posts

    BUG REPORT - payment plans ordering

    Hi,

    This is a bug report that affects the Dev release of Vantage - it doesn't affect the current main release, but will affect it if it's not fixed in the next release.

    In the dev release, new functionality has been added that allows you to specify in admin what order you want your payment plans to be displayed in. There is a new field 'Order' on the edit plan page. This order is respected in all places except the claim listing process.

    So, in listing-purchase.php and listing-renew.php (in vantage/includes), the code for the function get_available_plans() looks like this


    Code:
    	protected function get_available_plans() {
    
    		$plans = new WP_Query( array(
    			'post_type' => APPTHEMES_PRICE_PLAN_PTYPE,
    			'orderby' => 'menu_order',
    			'order' => 'ASC',
    			'nopaging' => 1,
    		) );
    
    		$plans_data = array();
    		foreach( $plans->posts as $key => $plan){
    			$plans_data[ $key ] = va_get_plan_options( $plan->ID );
    			$plans_data[ $key ]['post_data'] = $plan;
    		}
    
    		return $plans_data;
    	}
    but in listing-claim.php, it still looks like this:

    Code:
    	protected function get_available_plans() {
    
    		$plans = new WP_Query( array(
    			'post_type' => APPTHEMES_PRICE_PLAN_PTYPE,
    			'nopaging' => 1,
    		) );
    
    		$plans_data = array();
    		foreach( $plans->posts as $key => $plan){
    			$plans_data[ $key ] = va_get_plan_options( $plan->ID );
    			$plans_data[ $key ]['post_data'] = $plan;
    		}
    
    		return $plans_data;
    	}
    so the ordering is not taken into account, and the plans display differently for claims than for elsewhere where the 'select a plan' table is shown.

    Thanks,


    red20

  2. #2
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,617
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Payment Plans in Vantage
    By knowlesy27 in forum Report Vantage Bugs (Legacy)
    Replies: 11
    Last Post: January 30th, 2014, 03:09 PM
  2. [SOLVED] Ordering Listings Plans
    By blinddrop in forum Help Using Vantage (Legacy)
    Replies: 6
    Last Post: November 15th, 2013, 10:46 PM
  3. Dimitris Payment Plans
    By nzcid in forum Report Vantage Bugs (Legacy)
    Replies: 3
    Last Post: May 6th, 2013, 12:51 PM
  4. Multiple payment plans
    By jshgroup in forum Help Using ClassiPress
    Replies: 5
    Last Post: February 6th, 2011, 09:25 AM
  5. Payment PLANS???
    By citisale in forum ClassiPress General Discussion
    Replies: 1
    Last Post: February 7th, 2010, 03:37 PM