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


{docurl}

How can I display a "checkout" link on the basket page which points to the correct screen depending on whether or not the customer is logged in?

(2003/09/23)You can conditioanlly display the "checkout" button depending on whether or not the customer is logged in. There isn't a token for it yet but this should work:

%begin_if|len(BasketList.d.cust_id)|%
<a href="http://yourstore.com/Merchant2/merchant.mv?Store_Code=storecode&Screen=OINF&Order=1">Check out</a>
%end_if%

%begin_if|NOT len(BasketList.d.cust_id|%
<a href="http://yourstore.com/Merchant2/merchant.mv?Store_Code=storecode&Screen=LOGN&Order=1">Check out</a>
%end_if%

This will display one link (the first) if the customer is logged and a second link if the customer is not logged in.



Last update: 2009-01-09 09:15
Author: Support
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

Records in this category