Another Coupon Question
If I want to add product types to the items that can allocated to a coupon I can handle the database and form side of thing but in the WA_Cart_Coupons_PHP.php file in lines 110 - 117
while ($row_couponProducts) { // create array from product restrictions
$couponProductsArray[] = $row_couponProducts["ProductID"];
$row_couponProducts = mysql_fetch_assoc($couponProducts);
}
$appliedCoupon[] = array($nextCoupon,0,$couponProductsArray);
if (sizeof($couponProductsArray) > 0) { // if this is a product-restricted coupon
for ($n=0; $n<sizeof($cart->Items); $n++) {
if (in_array($cart->Items[$n]->ID,$couponProductsArray)) {
can I just create another array to check and replicate that entire block of code ?