using different thank you page depending on coupon code

Discussion in 'PHP' started by bkdubs, May 30, 2008.

  1. #1
    Hello,

    I have code to use coupon codes to give a certain price off our product.

    I would like to use a different page for some coupon codes [one without affiliate integration.]

    here is the code we are using now.

    How can i change it to do that? [our programer has not been reachable to make this simple change]


    $product_name = "Customized from ourdomain.com";
    $payment_complete_return_url = $base_url = "payment_complete.php";

    $coupon_codes[0]['code'] = "code1";
    $coupon_codes[0]['discount'] = "3.00";
    $coupon_codes[1]['code'] = "code2";
    $coupon_codes[1]['discount'] = "2.00";
    $coupon_codes[2]['code'] = "code3";
    $coupon_codes[2]['discount'] = "6.00";
    $coupon_codes[1]['code'] = "code4l";
    $coupon_codes[1]['discount'] = "2.00";


    This is what i would like to do, but dont know what order it needs to be in to work.



    $product_name = "Customized from ourdomain.com";
    $payment_complete_return_url = $base_url = "payment_complete.php";

    $coupon_codes[0]['code'] = "code1";
    $coupon_codes[0]['discount'] = "3.00";

    $product_name = "Customized from ourdomain.com";
    $payment_complete_return_url = $base_url = "payment_complete2.php";
    $coupon_codes[1]['code'] = "code2";
    $coupon_codes[1]['discount'] = "2.00";
    $coupon_codes[2]['code'] = "code3";
    $coupon_codes[2]['discount'] = "6.00";
    $coupon_codes[1]['code'] = "code4l";
    $coupon_codes[1]['discount'] = "2.00";

    Would this be correct to send the first code to the first payment complete page, and the remaining 3 to the second payment complete page?

    Thanks
    Brian
     
    bkdubs, May 30, 2008 IP