您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

customer.rst 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ========
  2. Customer
  3. ========
  4. The customer app bundles communication with customers. This includes models
  5. to record product alerts and sent emails. It also contains the views that
  6. allow a customer to manage their data (profile information, shipping addresses,
  7. etc.)
  8. Abstract models
  9. ---------------
  10. .. automodule:: oscar.apps.customer.abstract_models
  11. :members:
  12. Forms
  13. -----
  14. .. automodule:: oscar.apps.customer.forms
  15. :members:
  16. Views
  17. -----
  18. .. automodule:: oscar.apps.customer.views
  19. :members:
  20. Alerts
  21. ------
  22. The alerts module provides functionality that allows customers to sign up for
  23. email alerts when out-of-stock products come back in stock. A form for signing
  24. up is displayed on product detail pages when a product is not in stock.
  25. If the ``OSCAR_EAGER_ALERTS`` setting is ``True``, then alerts are sent as soon
  26. as affected stock records are updated. Alternatively, the management command
  27. ``oscar_send_alerts`` can be used to send alerts periodically.
  28. The context for the alert email body contains a ``hurry`` variable that is set
  29. to ``True`` if the number of active alerts for a product is greater than the
  30. quantity of the product available in stock.
  31. Alerts are sent using the Communication Event framework.