Leonardo Ecommerce built on top of Django-Oscar solution
pip install leonardo-storepip install leonardo-store[cod,api,paypal]or as leonardo bundle
pip install django-leonardo["store"]Add extra config spec into local_settings.py
- LEONARDO_CONF_SPEC = {
- 'store_profile_actions': [],
}
Add leonardo_store to leonardo APPS list, in the local_settings.py:
APPS = [
...
'leonardo_store',
...
]
Load new template to db
python manage.py sync_allpip install leonardo-store[api]Leonardo Store has simple Plugable Payment System for Django Oscar which is basically inspired from shipping method.
Inherit from leonardo_store.payments.PaymentMethod and define your Payment Method details.
call override_checkout from leonardo_store.payments.utils for example in app.ready method.
Thats all, your Payment Method will be available in payment method view
pip install leonardo-store[paypal]pip install leonardo-store[cod]pip install leonardo-store[banktransfer]Leonardo Store uses leonardo_store.shipping.repository.ModelRepository as default Shipping provider. This Repository gets all WeightBased ship methods and provides it. For shipping discount uses offers which affects Basket.
Generate image from model:
python manage.py graph_models --pygraphviz -g -o store.png catalogue checkout order customer brand partner address analytics basket offer payment promotions shipping voucher wishlists