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


{docurl}

How do I make the module compatible with the List Manager (http://vikingcoders.com/go.mv?ID=BROK_WISHLIST) module?

(2004/01/05)First make sure that the List Manager module is registered on the template module's "Third party tokens" tab.

After that, there are several modifications that need to be made to the "Account Login" template and to the "Missing Attributes" template. If you're not using the module to display one or the other of those two pages then you need make the modification only to the template you're using.

"Account Login" template:

Somewhere near the top of the "Main template" (before the %begin_form token) place the token:

%module|BROK_WISHLIST|LOGN_top|%

If you want to conditionally display the "login header" for the List Manager, then place this near the current %logn_hdr% token:

%begin_if|g.Wish|%
%module|BROK_WISHLIST|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 add the product to their wish list then surround the %logn_hdr% token so that it looks like:

%begin_notif|g.Wish|%
%logn_hdr%
%end_notif%

Similarly, you can display the footer with:

%begin_if|g.Wish|%
%module|BROK_WISHLIST|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 add the product to their wish list then surround the %logn_ftr% token so that it looks like:

%begin_notif|g.Wish|%
%logn_ftr%
%end_notif%

Since new customers can create a new account from the login screen, that needs to be accounted for. To do this, surround the portion of the template which displays the "create new account" link with the conditional that displays it only if the customer is not in the process of adding a product to their list:

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

NOTE: if you have modified the module so that it is compatible with other modules, then this conditional already exists and you need to add 'OR g.Wish' to the conditional instead of placing it again. For example, if you are making the template compatible with the Affiliate Manager, the conditional would look like:

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

Right below (or above) that insert the conditional:

%begin_if|g.Wish|%
<FONT FACE="Arial,Helvetica" SIZE="-1">
<A HREF="javascript:NewAccount()">Create New Account</A><BR>
</FONT>
%end_if%

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

%begin_if|g.Wish|%
%module|BROK_WISHLIST|LOGN_form|%
%end_if%

For the "Missing Attributes" template:

In the "Main template", between the %beginform|missingattributes|% and %endform% tokens place:

%module|BROK_WISHLIST|MISSATTR_form|%



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