{docurl}
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
Records in this category
- How to Configure a Gift Certificate to Charge Shipping to Redeemer, but Shipping Will be Paid by Gift Certificate
- How to Sell Gift Certificates Within Your Store
- Collecting a Recipient's Name, Email Address, Etc.
- How to Automatically Send Emails to the Recipient
- Unable to get Attributes to Collect the Customer's Data
- Integrating with OPT
- I am using OUISM and need to display the error messages returned by the Gift Certificate Manager. How can I do that?
- 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?
- The "redemption" field is not showing up during checkout. What am I doing wrong?
- How can I display the remaining certificate balance to the customer?
- Can I display the gift certificate that I created with the "certificate template" to the customer?
- I'd like to be able to have my customers visit my site to view their certificate. How can I go about this?
- When attempting to view the certificates in admin I get a "404 file not found" error (or some other server error).
- How do I prevent shipping from being charged when someone purchases a gift certificate?
- How do I restrict the use of a certificate to a particular product (or How do limit a certificate so that it cannot be used on a particular product)?
- Can I display the certificate redemption field in the Phone Order Manager (http://vikingcoders.com/go.mv?ID=BROK_PHONEORDERS) interface?














