Hi Jason,
When I apply the calculation you describe above in eCart calculations box, all it is doing is creating this error:
Parse error: syntax error, unexpected '[' in /home/barkerde/public_html/WA_eCart/stonehouse_PHP.php on line 10
This is without adding any changes to the cart display at this stage.
Line 10 looks like this: $itmObj->TotalPrice = ((abs($itmObj->Rugs == '51') * ($itmObj->Price - ($itmObj->Price*[0.01]))) + (abs($itmObj->Rugs != '51') * $itmObj->Price)) * $itmObj->Quantity;//c
Since we started this thread, we have changed the discount to Rugs instead of drills and the column name in eCart has been setup as Rugs. Also, The SubCatID is 51. How do I assign the column to SubcatID.
Do I do this through the add to cart button?
Thanks
Paul