[ic] refer to a friend

Gur interchange-users@interchange.redhat.com
Sat Feb 23 16:23:01 2002


Hi José,

>From what I can see you haven't closed the form tag for your order button
and you need to create a new form "area" for your recommend to friend
function.
it should look something like this:
<FORM ACTION="[area order]" METHOD=POST>
	<INPUT TYPE=hidden  NAME="mv_order_item"  VALUE="[item-code]">
	<input type=hidden name=mv_session_id value="[data session id]">
	[product details .....]
</form>

<form action="[process-target]" method="POST">
	<input type="hidden" name="mv_doit" value="return">
	<input type="hidden" name="mv_nextpage" value="emailafriend"> <input
	type="hidden" name="friend_code" value="[item-code]"> <input
	type="hidden" name="friend_title" value="[item-field description]">
	<input type="hidden" name="friend_author" value="[item-field author]">
	<input type="hidden" name="friend_covertype" value="[item-field
	covertype]"> <input type="hidden" name="friend_price" value="[item-field
	price]"> <input type="hidden" name="friend_save_dollars"
	value="[calc][item-field retail]-[item-field price][/calc]"> <input
	type="hidden" name="friend_save_percent" value="[perl arg=sub
	interpolate=1] you_save_percent ([item-field retail], [item-field
	price])[/perl]"> <input type="image" name="submit"
	src="/pics/anirec.gif" width="160" height="31" border="0"
	value="Recommend A Friend-->>" align="center"><br>
</form>

-Gur

> -----Original Message-----
> From: interchange-users-admin@interchange.redhat.com
> [mailto:interchange-users-admin@interchange.redhat.com]On Behalf Of José
> Mª Revuelto
> Sent: Saturday, February 23, 2002 1:45 AM
> To: interchange-users@interchange.redhat.com
> Subject: RV: RE: [ic] refer to a friend
>
>
> Hi,
>
> I know this is a litlle old, but I´ve added this enhancement getting the
> following problem:
>
> I press the Recomend to a friend button, and get into emailafriend.html,
> but there are no variable values passed. Could anyone tell me what I
> have done wrong. This is my flypage.html:
>
> ========================================================================
> ============
> [fly-list code="[data session arg]"]
> [set cross_category][item-field category][/set]
> [set upsell][item-data merchandising upsell_to][/set]
> [set cross_codes][item-data merchandising cross_sell][/set]
>
>   <FORM ACTION="[area order]" METHOD=POST>
>   <INPUT TYPE=hidden  NAME="mv_order_item"  VALUE="[item-code]">
>   <input type=hidden name=mv_session_id value="[data session id]">
>
>   <table width="70%" border="0" cellspacing="0" cellpadding="5">
>
> #bla bla bla bla.... The same that foundation flypage.
>
>           </td>
>           <td align="right">
>
>             <input type="image" src="__THEME_IMG_DIR__buynow.png"
> border="0" value="Comprar">
>
>           </td>
>         </tr>
>         </table>
>
>     </td>
>   </tr>
>   </table>
>
> #I have pasted this here
> <br>
> <input type="hidden" name="mv_doit" value="return">
> <input type="hidden" name="mv_nextpage" value="emailafriend"> <input
> type="hidden" name="friend_code" value="[item-code]"> <input
> type="hidden" name="friend_title" value="[item-field description]">
> <input type="hidden" name="friend_author" value="[item-field author]">
> <input type="hidden" name="friend_covertype" value="[item-field
> covertype]"> <input type="hidden" name="friend_price" value="[item-field
> price]"> <input type="hidden" name="friend_save_dollars"
> value="[calc][item-field retail]-[item-field price][/calc]"> <input
> type="hidden" name="friend_save_percent" value="[perl arg=sub
> interpolate=1] you_save_percent ([item-field retail], [item-field
> price])[/perl]"> <input type="image" name="submit"
> src="/pics/anirec.gif" width="160" height="31" border="0"
> value="Recommend A Friend-->>" align="center"> <br> #End of my paste.
>
> [/fly-list]
> ========================================================================
>
>
> Thanks in advance.
>
> José Mª Revuelto
>
> >Sure.  This includes 3 email address enter fields, logging to a text
> >file, and a link to return to the original page.
> >
> >Russ Mann
> >
> >
> >on flypage.html I use this code:
> >----------------------------------------------------------------------
> >**********************************************************************
> >----------------------------------------------------------------------
> ><input type="hidden" name="mv_doit" value="return">
> ><input type="hidden" name="mv_nextpage" value="emailafriend"> <input
> >type="hidden" name="friend_code" value="[item-code]"> <input
> >type="hidden" name="friend_title" value="[item-field description]">
> ><input type="hidden" name="friend_author" value="[item-field author]">
> ><input type="hidden" name="friend_covertype" value="[item-field
> >covertype]"> <input type="hidden" name="friend_price"
> >value="[item-field price]"> <input type="hidden"
> >name="friend_save_dollars" value="[calc][item-field retail]-[item-field
>
> >price][/calc]"> <input type="hidden" name="friend_save_percent"
> >value="[perl arg=sub interpolate=1] you_save_percent ([item-field
> >retail], [item-field
> <price])[/perl]">
> <<input type="image" name="submit" src="/pics/anirec.gif" width="160"
> >height="31" border="0" value="Recommend A Friend-->>" align="center">
> >----------------------------------------------------------------------
> >**********************************************************************
> >----------------------------------------------------------------------
> >(some of the you_save stuff is custom.)
>
>
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users
>