ashishnitinpatil / django-oscar-cash-on-delivery

Cash on delivery for django-oscar
Other
4 stars 4 forks source link

==================== COD for django-oscar

Cash on delivery payment module for django-oscar

Installation

.. code-block:: python

from cashondelivery.dashboard.app import application as cod_app

url(r'^dashboard/cod/', include(cod_app.urls)),

.. code-block:: python

# settings
OSCAR_DASHBOARD_NAVIGATION = [
    ...
    {
        'label': _('Fulfilment'),
        'icon': 'icon-shopping-cart',
        'children': [
            ...
            {
                'label': _('COD transactions'),
                'url_name': 'cashondelivery-transaction-list',
            },
            ...
    ...

.. code-block:: python

# file: <project>/checkout/app.py -- forked checkout app

# replace default checkout app with cashondelivery app
from oscar.apps.checkout import app
from cashondelivery.app import application as cod_app

app.application = cod_app

.. code-block:: python

# your checkout/app.py
from oscar.apps.checkout import app
from .views import PaymentDetailsView

class CheckoutApplication(app.CheckoutApplication):
    payment_details_view = PaymentDetailsView

application = CheckoutApplication()