Before you begin: Join our book community on Discord
Give your feedback straight to the author himself and chat to other readers on the book's dedicated Discord server (find the "early-access-fifth-edition" channel under "FEEDBACK AND SUGGESTIONS").

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
Figure 10.1 shows a representation of the views, templates and functionalities that will be built in this chapter:
