URL Parameter modifies button link?

Is it possible to have the URL of a button’s link change depending on a URL parameter?

For example:

Button link is: https://example.com/[variablehere]/checkoutpage

So if the URL of the page is mysite.com/salespage/?affiliate=john, then the button links to https://example.com/123/checkoutpage

But if the URL is mysite.com/salespage?affiliate=tommy, then the button links to https://example.com/150/checkoutpage

Is that at all possible with customization rules and such? Or even to pull the URL paramter into the button’s link, so mysite.com/salespage/?affiliate=john would have a button that links to https://example.com/john/checkoutpage ?

Hopefully, all this makes sense. Thanks!

Hi @aleminopuy,

Thanks for reaching out!

There’s no option in our theme to do this feature but it can be done with some customization. Regretfully, customization is outside the scope of our theme support. You may seek 3rd party developers to help you with your problems or you can avail One where we can answer questions outside of the features of our theme.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.