I'm configuring my shopping cart to give customers a discount based on the coupon hack on www.agoracart.com. I can find and change the code on my authorizenet order form and agora.setup.db per the instructions. But I cannot find the code I need to change in my Authorize-order_lib.pl file. The hacks tells me to:
"In your xxxx-order_lib.pl file, modify the following lines. The only
thing you "have" to modify below is the lines with "Coupon:" in it.
The first line just displays the coupon discount on the verification
page and the second line adds it to the email so it would display the
total amount of the discount to the customer.
--------------------------------------------------------------------
if ($final_discount > 0)
{
$final_discount = &format_price($final_discount);
$pass_final_discount = &format_price($final_discount);
$final_discount = &display_price($final_discount);
print "<CENTER>$cart_font_style Coupon: -
$final_discount</FONT></CENTER>\n";
$text_of_cart .= &format_text_field("Coupon:") .
"= $final_discount\n\n";
}
--------------------------------------------------------------------
I've searched the Authorize-order_lib.pl and have yet to locate the code suggested above. Has anyone been successful at implementing the disount code for Authorizenet. Thanks in advance for all suggestions.