Miva Merchant 5 Module FAQs » Affiliate Manager 5.x (BROK_AFFILIATES5)


{docurl}

Displaying the referral prompt at checkout

I have the module configured to display the referral prompt on the OCST page but it isn't working.

It turns out that "position 14" (the @checkout position that you can configigure in the module's admin as the position to display the referral prompt) is intended to be used inside of the form on that Merchant page. You have added the token:

<mvt:item name="BROK_AFFILIATES" param="pos_14"/ >

to the OCST page but if it is outside of the form it will display the prompt as configured in admin but will not work. It can be worked around though. Add the necessary form fields around the token:

<FORM METHOD="post" ACTION="&mvt:global:sessionurl;">
<INPUT TYPE="hidden" NAME="Screen" VALUE="OCST">
<INPUT TYPE="hidden" NAME="Store_Code" VALUE="&mvt:global:Store_Code;">
<mvt:item name="BROK_AFFILIATES" param="pos_14"/>
</FORM>

So...if you use the pos_14 page outside of the page's form you need to put that form code around it.

It's also possible to display the prompt without referring to the <mvt:item name="BROK_AFFILIATES" param="pos_14" /> item. That item adds two necessary fields to the form. The field to collect the referral code


<input type="text" name="AFFIL" value="">

(note that if you're using some other referral varible than AFFIL you would use that in the placed of AFFIL). And the submit button:

<input type="submit" value="Submit">

(of course an image could be used instead). So the full form, without the need for the item would be:

<FORM METHOD="post" ACTION="&mvt:global:sessionurl;">
<INPUT TYPE="hidden" NAME="Screen" VALUE="OCST">
<INPUT TYPE="hidden" NAME="Store_Code" VALUE="&mvt:global:Store_Code;">
<input type="text" name="AFFIL" value=""> <input type="submit" value="Submit"> </FORM>



Last update: 2009-08-10 12:15
Author: Michael Brock
Revision: 1.1

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

Average rating: 0 out of 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry