I have a module which collects data during checkout but when a customer clicks on "redeem" to redeem a certificatethe data collected by my module is lost. What's happenging and can I fix it?
(2004/10/26)What's happening is that your module passes it's data from one checkout page to the next via hidden form fields. But the Gift Certificate Manager has it's own form on the page and your module's fields are not being included in that form. When you click on "redeem", the customer is returned to that page but since the Gift Certificate Manager's form did not include hte module's data, it was lost.
There is now a work-around for this. On the Gift Certificate Manager's "options" tab there is now an option for "Fields to add to redemption form:". In this field you can add form fields that will be added to the "redemption" form. Unfortunately, since the Gift Certificate Manager has no way of knowing what fields need to be added, it's something you'll need to figure out, either by doing a "view source" on the preceeding page and finding the field names that are being added or by contacting the developer of your module.
You can use the %var|expression|% token in this field to represent the value of the variables being passed. For example, let's assume that your module passes 2 fields, named "data1" and "data2", from the previous page (the "customer information" page), you can add these fields to the redemption form, by adding to hte "Fields to add to redmeption form" field:
<input type="hidden" name="data1" value="%var|g.data1|%" />
<input type="hidden" name="data2" value="%var|g.data2|%" />
The "g." prefix in Miva script represents a "global" variable and form fields are passed by Miva script as globals so you should use this prefix in the "%var|expression|%" token.
Last update: 2004-12-09 12:55
Author: Support
Revision: 1.0
You cannot comment on this entry
Most Recent FAQ Entries: 
- Alternate ways to display the product and attribute data ... (2008-09-02 18:40)
- Adding both "Add All to Basket" and "Add to ... (2008-09-01 09:46)
- When adding a product to the basket from an ... (2008-08-27 19:02)
- I have the module configured to add the key ... (2008-08-13 14:50)
- What is the format for the htaccess file if ... (2008-08-12 14:50)
Top 10 
- 2939 views:
Adding Tokens to Evaluate Expressions - 2867 views:
Is there a way to "Limit" the number of ... - 2791 views:
Why won't you call me for technical support? I ... - 2678 views:
Are license keys valid for more than one store? ... - 2577 views:
I'm trying to enter a license key and get ... - 2566 views:
How do I install a module? - 2409 views:
How do I check for a module upgrade? - 2372 views:
How can display and change the parameters of an ... - 2217 views:
The total on my checkout pages are not correct. ... - 2016 views:
I have select and radio type attributes in my ...
















