Miva Merchant 4 Module FAQs » Affiliate Manager (BROK_AFFILIATES)


{docurl}

Is it possible to specify a redirection url in the referral url itself?

You can specify a url with the variable &RU=url. So to redirect a particular affiliate's referrals to a specific url you could do something of the form:

http://www.yourstore.com/Merchant2/merchant.mvc?Screen=PROD&Store_Code=storecode&AFFIL=affilcode&RU=http://goingtosite.com

If you want to add some further arguments to the url you're redirecting to you'll need to encode the "special characters" in the url to keep them from getting interpreted incorrectly.   For example, the url:

 http://www.yourstore.com/Merchant2/merchant.mvc?Screen=PROD&Store_Code=storecode&AFFIL=affilcode&RU=http:/www.yourstore.com?Screen=PROD&Product_Code=cat

 will almost certainly not work.  The &Product_Count in the redirect url will get lopped off.  So you'll have to encode that ampersand by replacing it with %26 to become

  http://www.yourstore.com/Merchant2/merchant.mvc?Store_Code=storecode&AFFIL=affilcode&RU=http:/www.yourstore.com?Screen=PROD%20Product_Code=cat

 

While replacing the ampersands with %26 will usually suffice you could replace all of the special URL characters:

  Dollar ("$")                             %24
 Ampersand ("&")                      %26
 Plus ("+")                                %2B
 Comma (",")                            %2C
 Forward slash/Virgule ("/")         %2F
 Colon (":")                               %3A
 Semi-colon (";")                       %3B
 Equals ("=")                             %3D
 Question mark ("?")                  %3F
 'At' symbol ("@")                      %40

the full URL would then become:

http://www.yourstore.com/Merchant2/merchant.mvc?AFFIL=affilcode&RU=http%3A%2F%2Fwww.yourstore.com%3AMerchant2%3Amerchant.mvc%3FScreen%3DPROD%26Product_Code%3cat

Note that if the RU= is added to the url, the customer will be redirect to that url even if the affiliate has a specific "redirect to" url configured for it in the module's admin.

 

 



Last update: 2008-01-25 17:06
Author: Thor
Revision: 1.1

Print this record Send FAQ to a friend Show this as PDF file
Please rate this FAQ:

Average rating: 3.75 out of 5 (4 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry

Records in this category