You're probably right, but for now, I've already added the auto inserting function which inserts into two separate (for rule and for function). It actually has been working. However, I can't 'include()" the file under the rules functions (below)...
//eCart Rule
function WAEC_eCart1_QuantityDiscount1022() {
$totalDiscount = 0;
if (true && ($this->ConditionalTotal("Quantity", "ID", "4910") >= 21)) {
$totalDiscount += (floatval($this->GetInfo("4910", "TotalPrice")) * 0.15);//Result
}
return WA_eCart_FormatNumber($totalDiscount, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
BECAUSE, it says 'unexpected include....'. Do you know how I can use the "include' the file under that?
So, I've been just been copying and pasting them. These are auto inserted when a salesperson writes a quote which happens a handful of times every day, so I have to copy once a day (before the client places the order (adds to cart with quantity changed) from an Auto Quote (electronic quote).
Thanks.