Metadata-Version: 2.4
Name: ocyan.plugin.oscar_checkout
Version: 1.3.3rc1
Summary: MandelBlog Oscar one-step checkout integration.
Author-email: Mandel <info@mandelblog.com>
License-Expression: LicenseRef-Proprietary
Classifier: Framework :: Django
Classifier: Environment :: Plugins
Classifier: Programming Language :: Python :: 3.12
Requires-Python: <3.14,>=3.12
Description-Content-Type: text/markdown
Requires-Dist: ocyan.core<2,>=1.2.13
Requires-Dist: django-oscar-api<4,>=3
Requires-Dist: ocyan.plugin.oscar<3,>=2.0.5
Requires-Dist: ocyan.plugin.oscar_order<3,>=2.0.1
Requires-Dist: ocyan.plugin.oscar_shipping<2,>=1.3.1
Requires-Dist: ocyan.plugin.oscar_partner<2,>=1.3.1
Requires-Dist: ocyan.plugin.oscar_address<1,>=0.1.2
Requires-Dist: ocyan.plugin.wagtail<3,>=2.0.6
Requires-Dist: wagtail<8,>=7
Provides-Extra: test
Requires-Dist: ocyan.plugin.testing; extra == "test"
Requires-Dist: wheel; extra == "test"
Requires-Dist: empty_testproject; extra == "test"
Requires-Dist: pylint-django; extra == "test"
Requires-Dist: isort; extra == "test"
Requires-Dist: ruff; extra == "test"
Requires-Dist: vdt.versionplugin.wheel; extra == "test"
Requires-Dist: coverage; extra == "test"
Requires-Dist: ocyan.plugin.oscar_shipping; extra == "test"
Requires-Dist: ocyan.plugin.payment_dummy; extra == "test"
Requires-Dist: oxyan.themes; extra == "test"

Ocyan plugin Oscar Checkout 
===========================

The supported runtime is Python 3.12 with Django/Wagtail 5.2/7.x and the
bounded certified MandelBlog Oscar packages.  Install from a built wheel or
sdist; editable installs are for local development only and are not a release
validation path.  Payment providers remain owned by their provider plugins.

The checkout integration is export-free and does not perform deployment or
production operations.  Remove the package from `INSTALLED_APPS` and the
documented dependency list to uninstall it; no hidden startup migration is
required.

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

Usage
-----
The Oscar checkout plugin makes changes to the Oscar checkout page so that it creates a onestepcheckout. The onstepcheckout can consist of the following fields: 
* voucher/promo code form
* email address 
* radio buttons for (1) new customer as guest, (2) create account for new customer or (3) existing customer
* shipping address 
* optional billing address (other than shipping address)
* payment methods
* optional comments
* order details
* checkbox for terms and conditions
* checkbox for newsletter registration
* place order button

Customization
-------------
Change the OSCAR_REQUIRED_ADDRESS_FIELDS to change the required address fields
Change the OSCARAPI_USERADDRESS_FIELDS setting to remove/add fields
Change the OSCAR_SHIPPING_FORM_FIELD_ORDER to change the order of fields
Change the OSCAR_SHIPPING_FORM_FIELDS setting to remove/add fields
Change the OSCAR_BILLING_FORM_FIELDS to remove/add the billing address form fields  
Change the OSCAR_BILLING_FORM_FIELD_ORDER to change the order of the billing address fields 

Configuration
-------------
The following setting can be configured:
* show_voucher_block: Show the voucher block on the checkoutpage (onestep.html).

For example: 

```json
    "oscar_checkout": {
      "show_voucher_block": true
    },
```
