Redirect To Thank you page

This topic contains 4 replies, has 3 voices, and was last updated by  BRETT WHIPP 5 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #484645

    BRETT WHIPP
    Expired Member
    Post count: 45

    Hi,

    For some reason, UserWP redirect after submission is not working. We have created a thank you page and we need that page to track/check funnels as we are already running the ads.

    ”Post received, your listing may need to be reviewed before going live, you can preview it here.”

    I have other tickets in here that has the login details, we need this fixed asap. please.

    Anyway, for tracking purposes… is there a way to set a unique thank you page for each package?

    #484727

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    UWP has a setting for redirect on registration, is that what you mean?

    If that is not working, please make a support request here: https://userswp.io/support/

    About GeoDirectory, and a custom thank you page for each package, I will flag your question for the developers.

    #484862

    BRETT WHIPP
    Expired Member
    Post count: 45
    This reply has been marked as private.
    #484899

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello,

    Its not actually a new page, its a AJAX message displayed on the same page.

    You can use the below code snippet to achive what you want (you can even add in JS, or call Google analytics event)

    
    
    add_filter('geodir_ajax_save_post_message','_my_post_save_message',10,2);
    function _my_post_save_message($message, $post_data){
      
      if ( isset( $post_data['post_parent'] ) && $post_data['post_parent'] ) {
    	// update post
      }else{
    	// new post
    	$package_id = isset($post_data['package_id']) ? absint($post_data['package_id']) : '';
    	if($package_id){
    	$message = sprintf( __('Post received for package %s, your listing may need to be reviewed before going live, you can preview it %shere%s.', 'geodirectory'),$package_id, "<a href='$preview_link' >", "</a>" );
    	  $message .= "<script>alert($package_id)</script>";
    	}
      }
      
      return $message;
    }
    #485064

    BRETT WHIPP
    Expired Member
    Post count: 45

    so i can probably add a redirect code after the message value?

Viewing 5 posts - 1 through 5 (of 5 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket