shuup.front.apps.personal_order_history package
Submodules
shuup.front.apps.personal_order_history.dashboard_items module
- class shuup.front.apps.personal_order_history.dashboard_items.OrderHistoryItem(request)[source]
Bases:
DashboardItem
- title = 'Order history'
Sequence number of dashboard item
- template_name = 'shuup/personal_order_history/dashboard.jinja'
Title shown in dashboard menu and in dashboard
- icon = 'fa fa-sticky-note-o'
Text for dashboard
If your dashboard item shows single object,
Edit
is just fine but if you are listing objects,Show All
might be better.
- view_text = 'Show all'
shuup.front.apps.personal_order_history.urls module
shuup.front.apps.personal_order_history.views module
- class shuup.front.apps.personal_order_history.views.OrderListView(**kwargs)[source]
Bases:
DashboardViewMixin
,OrderViewMixin
,ListView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- template_name = 'shuup/personal_order_history/order_list.jinja'
- context_object_name = 'orders'
- class shuup.front.apps.personal_order_history.views.OrderDetailView(**kwargs)[source]
Bases:
DashboardViewMixin
,OrderViewMixin
,DetailView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- template_name = 'shuup/personal_order_history/order_detail.jinja'
- context_object_name = 'order'
Module contents
- class shuup.front.apps.personal_order_history.AppConfig(*args, **kwargs)[source]
Bases:
AppConfig
- name = 'shuup.front.apps.personal_order_history'
- verbose_name = 'Shuup Frontend - Personal Order History'
- label = 'shuup_front_personal_order_history'
- provides = {'customer_dashboard_items': ['shuup.front.apps.personal_order_history.dashboard_items:OrderHistoryItem'], 'front_urls': ['shuup.front.apps.personal_order_history.urls:urlpatterns']}
See /provides for details about the
provides
variable.