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
Records in this category
- The total on my checkout pages are not correct. Why?
- How do I display the "thank you" message on the invoice page?
- On the basket pages I would like to display the total w/ the shipping included but NOT with the tax included. Is this possible?
- Is there a way to "Limit" the number of characters that can be entered into the "address" or any other field of the ACNT and OINF pages?
- What are the tokens for displaying the basket attributes?
- Hello, I am using the Affiliate Login module and the other page templates module. How do I get the affilate LOGN_header to show up for the login included in the other page templates module?
- How do I modify the Custer Login screen so that the customer is redirected to the Account screen rather than the storefront?
- The footer of my basket page has %OUI% in it and various OpenUI tokens. However, when I display it on the Other Page Templates generated basket page with the %bask_ftr% token, the %OUI% and other OpenUI tokens show in the page. How do I fix this?
- I'm using the %baskettotalallF% token on the OSEL screen but it is not displaying the correct total. Why?
- How do I consolidate the checkout screens so that the "shipping and billing selection" lists are on the "Customer Information" page?
- I'm designing checkout with OPT, and am wondering if there's any way to get the %prompt_foo% tokens to render different text? I don't want to simply replace them with HTML as I'd still like the form validation to work correctly (unfilled required fields appearing in red).
- I'm running into problems in that some of my tokens are not being processed correctly. For example, I'm trying to do this:%begin_if|%module|modcode:position%|%...%end_if%but it just generates errors or the %module simply shows up on the page. What could be wrong?
- Can I display the "related products" of the products in the basket in a single listing?
- Is it possible to display a "checkout" link on the basket page?
- Is it possible to display a "continue shopping" link on the basket page?
- How do I make the "Account Login" screen compatible with other modules such as the Order Status Manager and Affiliate Manager?
- The %logn_hdr% does not display the correct header when the customer is logging out.
- The "Missing Attributes" screen is acting like the Product Listing screen! Help!?
- How do I display the attributes in the basket?
- 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?
- I'm using the Affiliate Manager (http://vikingcoders.com/go.mv?ID=BROK_PAGETEMPLATES) and I would like to display the "Login Header", "Login Footer", "Account Header", and "Account Footer" on the customer login and account pages for affiliates signing up to be affiliates. How do I do this?
- How do I make the checkout screens compatible with the Gift Certificate Manager (http://vikingcoders.com/go.mv?ID=BROK_CERTIFICATES)?
- How do I make the Customer Account screen compatible with List Manager?
- How do I make the Login screen compatible with the Order Status Manager (http://vikingcoders.com/go.mv?ID=BROK_ORDERSTATUS) and Order Status - Login (http://vikingcoders.com/go.mv?ID=BROK_ORDERLOGIN)?
- How do I make the module compatible with the List Manager (http://vikingcoders.com/go.mv?ID=BROK_WISHLIST) module?
- How do I make the Login screen compatible with the Affiliate Manager (http://vikingcoders.com/go.mv?ID=BROK_AFFILIATES) and Affiliate Manager- Login (http://vikingcoders.com/go.mv?ID=BROK_AFFILATELOGIN)?
- How do I set the time zone so that the %time% and %date% tokens reflect the time zone of my store and not my server?
















