[ic] Gift-Certificates
mail
lists at gmnet.net
Wed Jun 13 13:05:47 EDT 2007
On Thu, 2007-06-14 at 03:22 +1200, Peter wrote:
> On 14/06/07 02:59, Lyn St George wrote:
> > On Wed, 13 Jun 2007 15:35:03 +0100, graham hadgraft wrote:
> >
> > If you want to give customers the option of setting their own
> > values then this will not be automatically handled.
>
> Just set the price of the GC to $1.00 and instruct the customer to enter
> the amount they want (in dollars) in the quantity field.
> [tmp donation][item-field donation][/tmp]
> Peter
>
I also modified my results_buylist, and carts to show it..
I did the same thing for donations by adding a "donation" field to the
products table...
here is a chunk from my buylist:
[tmp donation][item-field donation][/tmp]
[tmp gift_cert][item-field gift_cert][/tmp]
[if scratch gift_cert]
<td colspan="2" align="right">[L]Amount of gift[/L]: </td>
<td align="center">$<input type=hidden
name="mv_oi[item-increment]" value=""><input type=text name=mv_ord
er_quantity size=7 value=""></td>
<td align="center">
<input type=submit value="[L]BUY
NOW[/L]" onClick="this.form.mv_oi[item-incremen
t].value='[item-code]'" class="button2">
</td>
[elsif scratch donation]
<td colspan="2" align="right">[L]Amount of
donation[/L]:</td>
<td align="center">$<input type=hidden
name="mv_oi[item-increment]" value=""><input type=text name=mv_ord
er_quantity size=7 value=""></td>
<td align="center">
<input type=submit value="[L]DONATE[/L]"
onClick="this.form.mv_oi[item-increment].value='[item-code]'"
class="button2">
</td>
[/elsif]
[else]
<td align="center">
[item-calc]
my $q = q{[item-data inventory quantity]};
if($q > 0) {
return <<EOF;
<font __FFACE__ size="1" color="#008000"><b>[L]Yes[/L]</b></font>
EOF
}
else {
return <<EOF;
<a href="[area function/stock_alert [item-code]]"
class="resultslink"><b>[L]No[/L]</b></a>
EOF
}
[/item-calc]
</td>
[if-item-field sale_price]
<td align="center"><del>[item-field price]</del><br>
[L]On Sale[/L]: <B>[item-price]</B>
</td>
[else]
<td align="center">[item-price]</td>
[/else]
[/if-item-field]
<td align="center"><input type=hidden name="mv_oi[item-increment]"
value=""><input type=text name=mv_order
_quantity size=2 value=""></td>
<td align="center">
<input type=submit value="[L]BUY
NOW[/L]" onClick="this.form.mv_oi[item-incremen
t].value='[item-code]'" class="button2">
</td>
[/else]
[/if]
Hope that helps
rick
More information about the interchange-users
mailing list