Miva Merchant 5 Module FAQs » Gift Certificate Manager 5.x (BROK_CERTIFICATES5)


{docurl}

I'd like to be able to have my customers visit my site to view their certificate. How can I go about this?

The page can be linked to with a url of the form:

http://yoursite.com/Merchant2/merchant.mvc?Store_Code=code&View_Key=key&Screen=VIEWCERT

or

http://yoursite.com/mm5/merchant.mvc?Store_Code=code&View_Key=key&Screen=VIEWCERT


where, "code" is your store's code (unnecessary if there is only one store in the mall and "key" is the certificate key to be viewed. You can display this link to the customer in the emails sent by the module with the token %certlink%.

The format of the page is determined by the content of the templates on the "certificate page" tab (under "options"). The page can be displayed with a frame by including the


%begin_frame|top_frame|%


You are viewing certificate %key%   

Balance: %balance%   
Expires on: %expire%   
%print|bottom_frame|%


%end_frame%

%begin_frame|bottom_frame|%


%certificate%


%end_frame%


Will display a page w/ two frames, the top 50 pixels wide and containing the contents of the first pair of %begin_frame|top_frame|%...%end_frame% and a bottom frame including the contents of the second pair of %begin_frame|bottom_frame|%...%end_frame%

The same tokens available in the "certificate template" are also available in the "main page template". In addition, the following tokens have special use:

%begin_frame|name|%...%end_frame% (designates the contents of a frame which will have a as set by the "name" field)

%print% (displays a "print" button using the alternate text and image configured on the "certificate page" tab; prints the current window)

%print|frame|% (displays a "print" button using the alternate text and image configured on the "certificate page" tab; will print the contents of the frame named "frame". In the above example, the %print|bottom_frame|% in the top frame will print the contents of the frame named "bottom_frame".

%certificate% (inserts the contents of the "certificate template")

An example of a "main page template" which does NOT use frames (note that not using frames puts the "print" button and header into the printed page):



You are viewing certificate %key%   
Balance: %balance%   
Expires on: %expire%   
%print%


%certificate%




Categories for this entry

Last update: 2009-09-23 22:28
Author: Support
Revision: 1.1

Print this record Send FAQ to a friend Show this as PDF file
Please rate this FAQ:

Average rating: 1 out of 5 (2 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry