{* $Id: coupons.tpl,v 1.8.2.1 2003/03/28 13:59:24 svowl Exp $ *} {include file="location.tpl" last_location="Store coupons"} {include file="main/popup_product_js.tpl"} This page allows you to define coupons that you wish to accept for your store. Each coupon allows a customer to receive a discount when he/she orders products from your store.

If a customer enters a valid coupon code during checkout, the store will deduct the discount amount from their order total.

{capture name=dialog}

{if $coupons ne ""} {section name=prod_num loop=$coupons} {/section}
CouponStatusDisc.Min.TimesExpires
{$coupons[prod_num].coupon} {if $coupons[prod_num].coupon_type eq "absolute"}{include file="currency.tpl" value=$coupons[prod_num].discount}{elseif $coupons[prod_num].coupon_type eq "percent"}{$coupons[prod_num].discount}%{else}Free ship.{/if} {include file="currency.tpl" value=$coupons[prod_num].minimum} {$coupons[prod_num].times_used}/{$coupons[prod_num].times} {$coupons[prod_num].expire|date_format:"%b/%d/%Y"}
This coupon applies on orders {if $coupons[prod_num].productid ne 0} which contain product #{$coupons[prod_num].productid} {elseif $coupons[prod_num].categoryid ne 0} which contain product(s) from category #{$coupons[prod_num].categoryid} {else} greater than {include file="currency.tpl" value=$coupons[prod_num].minimum} {/if}


{/if} Add new coupon
Coupon #
Times to use
Status
Discount
Coupon type
Expires {html_select_date prefix="new_" start_year=$config.Company.start_year end_year=$config.Company.end_year month_format="%b"}
Apply to
order total, {$config.General.currency_symbol}
one product
 
one category

{/capture} {include file="dialog.tpl" title="Store coupons" content=$smarty.capture.dialog extra="width=100%"}