Discount items added before date
From MediaSell
|
This script will apply a 15% discount to items added to FillZ prior to July 2006. Date 2006-07-01 (yyyy-mm-dd) can be changed as needed. discount = 0.15;
price = item.basePrice;
openDate = item.open_date;
if (openDate < '2006-07-01') {
return price * (1 - discount);
}
|

