Discount Codes
Hi Jason
Thanks for the feedback, I have the code working manually, still got to tie it in with the database.
I have a different Discount Question.
I have a client side cart where they take phone orders
They want a free text box where they can input discounts (numerically) for friends an family
I've set this up adding a session 'FriendsDiscount' on the cart page
if (!session_id()) session_start();
if((((isset($_POST["FriendsDiscount"]))?$_POST["FriendsDiscount"]:"") != "")) {
$_SESSION["FriendsDiscount"] = "".$_SESSION['FriendsDiscount'] ."";
}
however I'm having problems with the discount code.
I have the following:
Condition: Total number of items > 0
Calculation: Based on the cart subtotal -minus- $_SESSION['FriendsDiscount']
If I type a discount of 10.00 into my FriendsDiscount text field for a product costing £50.00 I get a total (after discount) of £10.00
Any suggestions
thanks
Alf