coupon_amount
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
Subject: {{site_name}} - You have recieved {{amount}} {{currency}} coupon
|
||||
Subject: {{site_name}} - You have recieved {{coupon_amount}} {{currency}} coupon
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
@@ -87,7 +87,7 @@ Hello {{firstname}},
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="bodycopy">
|
||||
You have recieved <b>{{amount}} {{currency}}</b> coupon
|
||||
You have recieved <b>{{coupon_amount}} {{currency}}</b> coupon
|
||||
<br>
|
||||
Log on to your account to reddem,
|
||||
</td>
|
||||
|
||||
@@ -266,7 +266,7 @@ wrenchboard=> SELECT substring(ca.code,0,4)||'XXXXXXXX' as code, ca.amount,m.ema
|
||||
*/
|
||||
case WRENCHBOARD_COUPON_ACTIVATE:
|
||||
REQ_LONG(in, "coupon_id", 1, -1);
|
||||
if (load_db_record(x, "SELECT substring(ca.code,0,4)||'XXXXXXXX' as code, ca.amount*0.01,m.email,m.firstname FROM coupons_allocation ca LEFT JOIN members m ON m.id=ca.member_id WHERE ca.id = %lu ", in["coupon_id"].Long())) {
|
||||
if (load_db_record(x, "SELECT substring(ca.code,0,4)||'XXXXXXXX' as code, ca.amount*0.01 AS coupon_amount,m.email,m.firstname FROM coupons_allocation ca LEFT JOIN members m ON m.id=ca.member_id WHERE ca.id = %lu ", in["coupon_id"].Long())) {
|
||||
vars2form(x, form);
|
||||
form.LetStr("email", x["email"].c_str());
|
||||
form.LetStr("currency", "Naira");
|
||||
|
||||
Reference in New Issue
Block a user