an
groups-icon

Submission Limit

Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
  • Version 9
    Hans Priems
    0 points
    Beginner

    I have successfully launched our website for our customer but there turned out to be a rather problem with Responsive Auction Theme.

    When a user buys a membership package with 5 listings and places those 5 listings on the site and then buying another membership package with 1 listing he can’t place another listing because the limit is reached so the only way to place another listing would be to buy a package greater than the current one or to create a new account or by deleting all the existing listings but we want the customers to be able to keep their listings.

    I think the code is in tpl-add.php: (line 43)

    // CHECK IF THE USER HAS REACHED THEIR SUBMISSION LIMIT
    if($userdata->ID && !isset($_POST['eid']) && !isset($_GET['eid']) && isset($GLOBALS['current_membership']) && isset($membershipfields[$GLOBALS['current_membership']]['submissionamount']) && !isset($_POST['membershipID']) ){
    	// COUNT USER SUBMISSIONS
    	$current_submissions = $CORE->count_user_posts_by_type( $userdata->ID, THEME_TAXONOMY."_type" );	
    	if(!isset($_POST['eid']) && $current_submissions >= $membershipfields[$GLOBALS['current_membership']]['submissionamount']){	
    	wp_redirect( $GLOBALS['CORE_THEME']['links']['myaccount']."?submissionlimit=1" ); exit;	
    	}	 
    }

    Does anyone know how we can change this code or perhaps something else to reach our goal?

    April 24, 2014 at 2:47 pm
  • Richard Bonk
    -1 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    April 24, 2014 at 7:12 pm
  • Hans Priems
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    April 25, 2014 at 7:27 am
  • Richard Bonk
    -1 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    April 25, 2014 at 9:43 am
  • Ivo Stankov
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    April 28, 2014 at 4:07 pm
  • Errol Hutchinson
    -2 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    April 28, 2014 at 5:02 pm
  • Angela MacMillan
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    April 28, 2014 at 6:51 pm
  • Richard Bonk
    -1 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    April 28, 2014 at 8:57 pm
  • Angela MacMillan
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    April 28, 2014 at 9:00 pm
  • Richard Bonk
    -1 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    April 28, 2014 at 9:15 pm
  • Ivo Stankov
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    April 29, 2014 at 9:46 am
  • Angela MacMillan
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    April 29, 2014 at 1:38 pm
  • Errol Hutchinson
    -2 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    April 29, 2014 at 2:55 pm
  • Lisa Smack
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    May 11, 2014 at 3:41 pm
  • Milos Milisavljevic
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    June 8, 2014 at 11:24 pm

621

Views

19

Replies