Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

Integration between django-oscar and the CCH Sales Tax Office SOAP API.

Project description

This package is to handle integration between django-oscar based e-commerce sites and the CCH Sales Tax Office SOAP API.


  1. You must fork the order application from Oscar to enable tax calculation as part of placing an order.
  2. Persistence of tax details, while optional, requires that your project uses PostgreSQL. It relies on the HStore field.


  1. Install the instrumented-soap and django-oscar-cch packages.:

    $ pip install git+
    $ pip install git+
  2. Add cch to your INSTALLED_APPS:

    # myproject/
    ] + get_core_apps([
  3. Add some attributes to to configure how the application should connect to CCH.:

    # myproject/
    # Add this is you need to connect to the SOAP API through an HTTP Proxy
    SOAP_PROXY_URL = ...
    # Configure the CCH WSDL location, entity, and division code
    CCH_WSDL = ...
    CCH_ENTITY = ...
    CCH_DIVISION = ...
    # Provide either a product SKU or a product group and item to send to CCH when calculating taxes
  4. Install extra fields on order.models.Order and order.models.Line (see also How to fork Oscar apps).:

    # order/
    from cch.mixins import CCHOrderMixin, CCHOrderLineMixin
    from oscar.apps.order.abstract_models import AbstractOrder, AbstractLine
    class Order(CCHOrderMixin, AbstractOrder):
    class Line(CCHOrderLineMixin, AbstractLine):
    from oscar.apps.order.models import *  # noqa
  5. Create and run migrations for the order app.:

    $ python makemigrations order
    $ python migrate
  6. Add the CCH mixin to order.utils.OrderCreator.:

    # order/
    from cch.mixins import CCHOrderCreatorMixin
    from oscar.apps.order import utils
    class OrderCreator(CCHOrderCreatorMixin, utils.OrderCreator):


1.0.0 (2016-01-25)

Initial release.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-oscar-cch, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size django_oscar_cch-1.0.0-py3-none-any.whl (13.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-oscar-cch-1.0.0.tar.gz (8.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page