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


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

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