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


{docurl}

How do I make the Login screen compatible with the Order Status Manager (http://vikingcoders.com/go.mv?ID=BROK_ORDERSTATUS) and Order Status - Login (http://vikingcoders.com/go.mv?ID=BROK_ORDERLOGIN)?

(2004/01/07)Several simple modifications need to be made to the "Account Login" template:

Somewhere between the %beginform|customerlogin|% and %endform% tokens place:

for compatibility with Order Status Manager:

%begin_if|g.ScreenStatus|%
<input type="hidden" name="OrderScreen" value="STATUS">
%end_if%

for compatibility with Order Stauts Login:

%begin_if|g.FromLogin|%
<INPUT TYPE="hidden" NAME="OrderScreen" VALUE="STATUS">
<INPUT TYPE="hidden" NAME="FromLogin" VALUE="1">
%end_if%

Also, the "create an account" link needs to be suppressed for modules. Place the conditional (for compatibility for both modules):

%begin_notif|g.ScreenStatus OR g.FromLogin|%
**link here**
%end_notif%

around the link itself, so it might look like this:

%begin_notif|g.ScreenStatus OR g.FromLogin|%
<FONT FACE="Arial,Helvetica" SIZE="-1">
<A HREF="%newaccounturl%">Create New Account</A><BR></FONT>
%end_notif%

If you have already added this conditional for other modules, for example the Affiliate Manager, then you would simply add:

OR g.ScreenStatus OR g.FromLogin to the conditional, so it might look like:

%begin_notif|g.ScreenAffil OR g.ScreenStatus OR g.FromLogin|%
<FONT FACE="Arial,Helvetica" SIZE="-1">
<A HREF="%newaccounturl%">Create New Account</A><BR></FONT>

%end_notif%

That's it.

In addition, If you want to conditionally display the "login header" for the Order Status Manager, then place this near the current %logn_hdr% token (assumes that the Order Status Manager is registered as a "third party module" with the token BROK_ORDERSTATUS):

%begin_if|g.ScreenStatus|%
%module|BROK_ORDERSTATUS|LOGN_header|%
%end_if%

To make sure that the %logn_hdr% token does not display for the login page if the person is logging in to view their order status then surround the %logn_hdr% token so that it looks like:

%begin_notif|g.ScreenStatus|%
%logn_hdr%
%end_if%

Similarly, you can display the footer with:

%begin_if|g.ScreenStatus|%
%module|BROK_ORDERSTATUS|LOGN_footer|%
%end_if%

To make sure that the %logn_ftr% token does not display for the login page if the person is logging in to view their order status then surround the %logn_ftr% token so that it looks like:

%begin_notif|g.ScreenStatus|%
%logn_ftr%
%end_if%

As with the above example, if you have already added this conditional for some other module, then you can simply add the:

OR g.ScreenStatus

to it. For example:

%begin_notif|g.ScreenAffil OR g.ScreenStatus|%
%logn_hdr%
%end_if%



Last update: 2004-12-10 09:51
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