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 ...

Get Django 4 By Example - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.