Metadata-Version: 2.4
Name: ocyan.plugin.oscar_basket
Version: 0.2.3
Summary: Oscar basket extensions for MandelBlogStack
Author-email: Mandel <info@mandelblog.com>
License-Expression: LicenseRef-Proprietary
Classifier: Framework :: Ocyan
Classifier: Environment :: Plugins
Classifier: Programming Language :: Python :: 3.12
Requires-Python: <3.13,>=3.12
Description-Content-Type: text/markdown
License-File: COPYRIGHT
Requires-Dist: ocyan.core<2,>=1.2.13
Requires-Dist: ocyan.main<3,>=2.0.2
Requires-Dist: ocyan.plugin.oscar<3,>=2.0.5
Requires-Dist: ocyan.plugin.oscar_catalogue<3,>=2.0.4
Requires-Dist: django<5.3,>=5.2
Requires-Dist: wagtail<8,>=7
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: pytest-django; extra == "test"
Requires-Dist: ruff; extra == "test"
Requires-Dist: coverage; extra == "test"
Requires-Dist: wheel; extra == "test"
Dynamic: license-file

Ocyan plugin oscar_basket
=========================

Installation
------------
Add `ocyan.plugin.oscar_basket` to your projects dependencies.

Usage
-----
This plugin fixes some bugs in oscar's basket app, required until fixed upstream.

This app provides the following features:

1. Enforcing of ``OSCAR_MAX_BASKET_QUANTITY_THRESHOLD`` even when a user logs in
   and baskets are being merged.
2. The way an option is displayed can be changed by overriding the function
   ``get_class("basket.utils", "option_display_value")``
3. Cleans up product description in the basket by not showing all these options
   rendered comma separated.
4. implemented ``DataPriceWidgetMixin`` which allows passing price data to
   form widgets, this enables updating the price with javascript when a child
   product is selected from the dropdown.
