Miva Merchant 4 Module FAQs » Gift Certificate Manager (BROK_CERTIFICATES)


{docurl}

Integrating with OPT

Integrating Gift Certificate Manager with Other Page Templates

The Gift Certificate Manager needs to be registered on the template module's "third party tokens" tab. Aftering registering it, the instructions link will explain where to place the necessary tokens to display the redemption field on the "shipping/billing selection" page.

However, the abiltiy of the Gift Certificate Manager to "bypass shipping and payment selection" for $0.00 orders cannot be accomplished with %module tokens alone. To enable that feature follow these instructions:

In the template that you have assigned to the OSEL screen (the pre-installed template intended for this page is the "Checkout: Shipping/Payment Selection" template) replace the token:

%beginform|OSEL|%

with:

%begin_if|g.BrokCerts_OSEL_suppress|%
<FORM METHOD="post" ACTION="%var|g.secure_sessionurl|%">

<INPUT TYPE="hidden" NAME="Action" VALUE="AUTH">
<INPUT TYPE="hidden" NAME="Screen" VALUE="INVC">
<INPUT TYPE="hidden" NAME="Store_Code" VALUE="%var|g.Store_Code|%">
<INPUT TYPE="hidden" NAME="ShippingMethod" VALUE="">
<INPUT TYPE="hidden" NAME="PaymentMethod" VALUE="">
%else%
<FORM METHOD="post" ACTION="%var|g.secure_sessionurl|%">
<INPUT TYPE = "hidden" NAME = "Action" VALUE = "SHIP,CTAX">
<INPUT TYPE = "hidden" NAME = "Screen" VALUE = "OPAY">
<INPUT TYPE = "hidden" NAME = "ShopTax_Select" VALUE = "%var|g.ShopTax_Select|%">

<INPUT TYPE="hidden" NAME="Store_Code" VALUE="%var|g.Store_Code|%">

this is, by default, right above a <table tag. Right below the matching </table> tag for this table, place:

%end_if%

and replace the %endform% token with </form>

In the template that you have assigned to the OPAY screen (the pre-installed template intended for this page is the "Checkout: Payment" template) replace the token:

%beginform|OPAY|%

with:

%module1|BROK_CERTIFICATES|OPAY_message|%
%begin_if|g.BrokCerts_OPAY_suppress|%
<FORM METHOD="post" ACTION="%var|g.secure_sessionurl|%">
<INPUT TYPE="hidden" NAME="Action" VALUE="AUTH">
<INPUT TYPE="hidden" NAME="Screen" VALUE="INVC">
<INPUT TYPE="hidden" NAME="Store_Code" VALUE="%var|g.Store_Code|%">

<INPUT TYPE="hidden" NAME="PaymentMethod" VALUE="">
%else%
<FORM METHOD = "post" ACTION = "%var|g.OPAY_url|%">
<INPUT TYPE = "hidden" NAME = "Action" VALUE = "AUTH">
<INPUT TYPE = "hidden" NAME = "Screen" VALUE = "INVC">
<INPUT TYPE = "hidden" NAME = "Store_Code" VALUE = "%var|g.Store_Code|%">
<INPUT TYPE = "hidden" NAME = "PaymentMethod" VALUE = "%var|g.PaymentMethod|%">

(NOTE that the token %module1|BROK_CERTIFICATES|OPAY_message|% displays the "payment information message", but this token is REQUIRED as it sets the necessary variables. IF you do not want to display any message, clear out the field in the Gift Certificate Manager admin)

there are two tables right below this point, the second table contains teh %paymentfields% token. Right below that table, place:

%end_if%

and replace the %endform% token with </form>



Last update: 2004-12-09 05:53
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