• Resolved solmediapl

    (@solmediapl)


    I want to redirect to a quick payment page. So the URL to redirect is like
    example.com/?id=…

    Unfortunately the parameters passed by the plugin start with ?
    so I get
    example.com/?id=…?a=1&b=2
    Two ? signs are wrong and result in an error.
    I can’t pass id value via a field because “id” seems to be a restricted name for input name.

    How can I redirect to example.com/?id=… with my own variables? Thank you

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Yuval

    (@yuvalsabar)

    Hi @solmediapl,

    Please attach a screenshot with your redirect settings.

    Yuval.

    Thread Starter solmediapl

    (@solmediapl)

    Here it is
    https://www.solmedia.pl/images/redirect.png
    The link where it gets me is
    https://secure.tpay.com/?id=xxxxx?description=xxx&amount=599.00

    • This reply was modified 5 years, 6 months ago by solmediapl. Reason: code
    Plugin Contributor Yuval

    (@yuvalsabar)

    Hi @solmediapl,

    Sorry, I’m afraid I don’t have a solution for you on that one, since “id” is restricted like you said.

    Thread Starter solmediapl

    (@solmediapl)

    OK, at least I know I have to search for a different solution.

    But is there a way to change the second “?” sign to “&” ?

    To have sth like
    https://secure.tpay.com/?id=xxxxx&description=xxx&amount=599.00

    Plugin Contributor Yuval

    (@yuvalsabar)

    Sure, you can change the code of the plugin if you want to achieve that.

    Thread Starter solmediapl

    (@solmediapl)

    Yes, but can you give me a hint where to edit the code to change the ? to &

    Plugin Contributor Yuval

    (@yuvalsabar)

    Hi @solmediapl,

    It’s in the plugin directory /js/wpcf7-redirect-script.js
    It’s a not simple search and replace, you need some coding experience with that.

    Thread Starter solmediapl

    (@solmediapl)

    Thanks, I changed line 27 from
    http_query = '?';
    to
    http_query = '&';
    and it works for me!

    Plugin Contributor Yuval

    (@yuvalsabar)

    Thank you for the update. Remember that if you’ll update the plugin in the future, it will override your changes.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Want to pass values to URL example.com?id=123’ is closed to new replies.