Url Query Strings when ordering

Discussion in 'Templates customization' started by AlekNovi, Nov 26, 2009.

  1. AlekNovi

    AlekNovi New Member

    Joined:
    Oct 16, 2007
    Messages:
    9
    Where do I modify what info is passed to the url when signing up? Right now, if a member signs up, and he happens to be member 1234...

    The url of his receipt will look like this:

    htttp://www.domain.com/amember/thanks.php?payment_id=1234

    How do I have the url pass more info than just his payment-id? Specifically, I want it to pass price...

    Something like this:
    htttp://www.domain.com/amember/thanks.php?payment_id=1234?payment_price=30

    Assuming the price was 30$

    Any ideas?
  2. AlekNovi

    AlekNovi New Member

    Joined:
    Oct 16, 2007
    Messages:
    9
    I half-solved it...

    1) I went into /plugins/paypal-r/paypal_r.inc...

    2) And i found this line
    "$config[root_url]/thanks.php?payment_id=$invoice",

    3) Changed it with this line

    "$config[root_url]/thanks.php?payment_id=$invoice?price_id=39",


    This worked well... When people buy, they get this url:

    htttp://www.gethotterwomen.com/members/thanks.php?payment_id=1234?price_id=39

    HOWEVER...

    This always ends up producing "39" no matter how much the product the people bought is...

    What variable do I put instead of "39", so that its dynamically replaced with the actual price?
  3. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Well this is not necessary to modify paypal plugin, because you already have access to payment amount from thanks.html template:
    {$payment.amount}
  4. AlekNovi

    AlekNovi New Member

    Joined:
    Oct 16, 2007
    Messages:
    9
    Well the reason I have to edit paypal plugin is because this is the file that dictates what url people get, no?

    1) Person goes to order form, fills in data
    2) Gets redirected to paypal
    3) Paypal redirects them to thanks page

    The url of the thanks page is dictated by which file?
  5. AlekNovi

    AlekNovi New Member

    Joined:
    Oct 16, 2007
    Messages:
    9
    Alexander, it didn't work...

    Here's what url it produced:

    htttp://www.domain.com/members/thanks.php?payment_id=116?price_id=Array.amount

    Instead of:

    htttp://www.domain.com/members/thanks.php?payment_id=116?price_id=39

Share This Page