A * denotes a required field.
importCoupon(&$coupon) – Import a Coupon.
Input:
Array (
*[id] => 1
[code] => DISCOUNT
[discount] => 5.00
[used] => 0
[max] => 10
[start] => 2008-01-01 12:59:59
[end] => 2008-02-01 12:59:59
[active] => 1
)
Returns:NULL
Definition:
- [id] – Coupon ID.
- [code] – Coupon code.
- [discount] – Discount percentage.
- [used] – Count of how many of these coupons have been used.
- [max] – Maximum number of these coupons to allow.
- [start] – Date/time to begin allowing this coupon.
- [end] – Date/time to stop allowing this coupon.
- [active] – Active status (1 – active, 0 – inactive).
Import Methods