How do I make the checkout screens compatible with the Gift Certificate Manager (http://vikingcoders.com/go.mv?ID=BROK_CERTIFICATES)?
(2004/03/09)The Gift Certificate Manager can now be registered on the template module's "third party tokens" tab. After 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 ability 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-10 09:49
Author: Support
Revision: 1.0
You cannot comment on this entry
Most Recent FAQ Entries: 
- I have the UPS Custom Integration configured so that ... (2008-07-11 10:21)
- I would like to conditionally display something for a ... (2008-07-03 17:37)
- Is there any way to configure specific global headers ... (2008-06-02 18:28)
- I pay my affiliates with gift certificates from your ... (2008-05-29 10:42)
- Is there any way to add a negative number ... (2008-05-22 13:51)
Top 10 
- 2521 views:
Adding Tokens to Evaluate Expressions - 2510 views:
Why won't you call me for technical support? I ... - 2489 views:
Is there a way to "Limit" the number of ... - 2402 views:
Are license keys valid for more than one store? ... - 2308 views:
I'm trying to enter a license key and get ... - 2270 views:
How do I install a module? - 2133 views:
How do I check for a module upgrade? - 2132 views:
How can display and change the parameters of an ... - 1960 views:
The total on my checkout pages are not correct. ... - 1843 views:
I have select and radio type attributes in my ...
















