Hi - wow you are fast today!
i did kind of figure things out. but i have an issue with it.
lets say someone adds the item we want on sale, in a size 6 and a size 10. it shows up as 2 items separately in the cart.
when it calculates the discount total, it only calculates for 1 of them, not both. so - i need to add qty to the calculation. how do i grab the total quantity of that item in the cart. (not the qty of total items in cart)
Here is my code so far.....
//eCart Rule
function WAEC_JULES_LUCKY6() {
$totalDiscount = 0;
if (true && ((sizeof($this->Items) > 0) && ($this->InCart("SS2411") == true)) && (((isset($_SESSION['discount_code'])?$_SESSION['discount_code']:"") == "LUCKY6") OR ((isset($_SESSION['discount_code'])?$_SESSION['discount_code']:"") == "lucky6"))) {
$totalDiscount += (floatval($this->GetInfo("SS2411", "TotalPrice")) * .3);//Result
}
return WA_eCart_FormatNumber($totalDiscount, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule