Line 93 of your Creations18.php file reads:
$totalDiscount += ($this->ConditionalTotal("Price", "Salecode", "D") * .3);//Result
I think it should be:
$totalDiscount += ($this->ConditionalTotal("Price", "Salecode", "D") * 0.3);//Result
Other than that, if it still doesn't work, make sure you are saving the "D" in the Salecode properly in the shopping cart. Maybe display it on the cart page to confirm that it is set correctly.


