Miva Merchant 5 Module FAQs » Gift Certificate Manager 5.x (BROK_CERTIFICATES5)


I would like to display to my customers an explanation of why they have to select a payment method even though the balance is zero (I do not have the module configured to bypass shipping & payment for $0.00 orders since I need to charge tax on the order). Is this possible?

Yes, you can do this by adding tokens to the "Redemption button setup" (on the module's Options/Options tab). Using conditional tokens you can test whether or not the basket total is $0.00 (the module sets a global variable g.BrokCert_BasketTotal for the basket total after a certificate is redeemed) and whether or not a gift certificate has been redeemed. So you can display a message only if the gift certificate was redeemed and the total is $0.00 with:


%begin_if|(NOT g.BrokCert_BasketTotal) AND g.BrokCert_Redeemed|%
The total is $0.00 and your gift certificate was sufficient to cover the product subtotal. However, there may be a shipping and/or tax to be paid. Please select a shipping and payment method and click on "continue".
%end_if%

Note that you can also use the %else% option to suppress the redemption field for $0.00 orders at the same time:

%begin_if|(NOT g.BrokCert_BasketTotal) AND g.BrokCert_Redeemed|%
The total is $0.00 and your gift certificate was sufficient to cover the product subtotal. However, there may be a shipping and/or tax to be paid. Please select a shipping and payment method and click on "continue".
%else%


%error%Gift Certificate: %box% %button%

%end_if%

This will display the redemption field only if the balance isn't 0.00 and a certificate was redeemed.



Last update: 2007-09-19 18:28
Author: Brok
Revision: 1.0

Print this record Send to a friend Show this as PDF file
Please rate this entry:

Average rating: 0 out of 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry