This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 3

Price included in URL when confirming the form


  1. ketzaldev
    Member

    Hi,

    I'd like to know if it's easy to insert the final price into the redirection page when submitting the form, having the "check/cash" option selected.

    I've seen everything is around here:
    else if($form_properties['payment_merchant_type'] == 'check'){
    //redirect to either success page or custom redirect URL
    if(empty($commit_result['form_redirect'])){
    header("Location: http{$ssl_suffix}://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']."?id={$form_id}&done=1");
    exit;
    }else{
    echo "<script type=\"text/javascript\">top.location.replace('{$commit_result['form_redirect']}')</script>";
    exit;
    }
    }

    But I don't really know how to do.
    Did somebody already tried it?

    Thanks
    Ket

    Posted 11 years ago #
  2. yuniar

    It is possible to include the price if you are using a custom PHP page for the thank you page. We can store the total into a session variable and then display it using PHP code into your thank you page.


    MachForm Founder

    Posted 11 years ago #

RSS feed for this topic

Reply