Extending Your Shop
In the previous chapter, you learned how to integrate a payment gateway into your shop. You also learned how to generate CSV and PDF files.
In this chapter, you will add a coupon system to your shop and create a product recommendation engine.
This chapter will cover the following points:
- Creating a coupon system
- Applying coupons to the shopping cart
- Applying coupons to orders
- Creating coupons for Stripe Checkout
- Storing products that are usually bought together
- Building a product recommendation engine with Redis
The source code for this chapter can be found at https://github.com/PacktPublishing/Django-4-by-example/tree/main/Chapter10.
All the Python packages used in this chapter are included in the requirements.txt
file in the source code for the chapter. You can follow the instructions to install each Python package in the following sections, or you can install all the requirements at once with the...