Miva Merchant 4 Module FAQs » Other Page Templates (BROK_PAGETEMPLATES)


{docurl}

How do I modify the Custer Login screen so that the customer is redirected to the Account screen rather than the storefront?


(2004/08/20)Merchant uses the Screen varialbe to determine which screen to direct the customer to. In the "main template" of the Customer Login template is some code:

%begin_ifnotorder%
<INPUT TYPE="hidden" NAME="Screen" VALUE="SFNT">
%end_ifnotorder%
%begin_iforder%
<INPUT TYPE="hidden" NAME="Screen" VALUE="OINF">
%end_iforder%

If the customer is in the process of placing an order (and therefore %begin_iforder% evaluates to true) then the field will be added to set the Screen to OINF (the customer information scree). Otherwise, it will redirect them to teh SFNT (store front screen). This the default behvior of Merchant. To redirect the customer to the Account screen instead, change:

%begin_ifnotorder%
<INPUT TYPE="hidden" NAME="Screen" VALUE="SFNT">
%end_ifnotorder%

to

%begin_ifnotorder%
<INPUT TYPE="hidden" NAME="Screen" VALUE="ACNT">
%end_ifnotorder%



Last update: 2004-12-10 09:34
Author: Support
Revision: 1.0

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

Records in this category