Chap 9-10
E-commerce
Discount codes
Discount codes are a great way to both entice new customers into a store, and also to help retain customers with special discounts. The discount code should work by allowing the customer to enter a code, which will then be verified by the store, and then a discount will be applied to the order.
The following are discount options we may wish to have available in our store:
Discount codes data
we need to store and account for:
Discount codes data
Discount codes Functionality
Authentication
When the customer has reviewed their basket and made any necessary changes, we need to allow them to supply their delivery address. Before they can do that; however, we must consider authentication.
If the customer is logged in, then we can simply send them to the "delivery address" page, where they will be presented with their default delivery address based on their user account details. If the customer is not logged in, we need to allow them to either log in, or enter their details to sign up to the store.
To make this process as seamless as possible, there are a few things we should consider:
Authentication
The answer to all three of these points is no. If we do any of these things, then we are creating an unnecessary barrier between the customer and them completing their order. Some believe that even requiring the customer to create a user account is a step too far. As we are going to require the customer to make their own account, we should make this less intrusive by allowing them to enter all of their details on one page, with only a few additions as opposed to if they were just supplying their delivery address
Confirmation
The final stage, before payment, is to allow the customer to confirm their order. This involves displaying the order to the customer along with the selected shipping method, payment method, and delivery address. When the customer is happy with the order, we then must:
Storing orders in the database