shuup.front.apps.customer_information package¶
Submodules¶
shuup.front.apps.customer_information.dashboard_items module¶
-
class
shuup.front.apps.customer_information.dashboard_items.
CustomerDashboardItem
(request)[source]¶ Bases:
shuup.front.utils.dashboard.DashboardItem
-
template_name
= 'shuup/customer_information/customer_dashboard_item.jinja'¶
-
title
= 'Customer Information'¶
-
icon
= 'fa fa-user'¶
-
shuup.front.apps.customer_information.forms module¶
-
class
shuup.front.apps.customer_information.forms.
PersonContactForm
(*args, **kwargs)[source]¶ Bases:
django.forms.models.ModelForm
-
class
Meta
[source]¶ Bases:
object
-
model
¶ alias of
PersonContact
-
fields
= ('first_name', 'last_name', 'phone', 'email', 'gender', 'language', 'marketing_permission', 'timezone', 'picture')¶
-
-
base_fields
= OrderedDict([('first_name', <django.forms.fields.CharField object>), ('last_name', <django.forms.fields.CharField object>), ('phone', <django.forms.fields.CharField object>), ('email', <django.forms.fields.EmailField object>), ('gender', <enumfields.forms.EnumChoiceField object>), ('language', <shuup.core.fields.LanguageFormField object>), ('marketing_permission', <django.forms.fields.BooleanField object>), ('timezone', <django.forms.fields.TypedChoiceField object>), ('picture', <filer.fields.image.AdminImageFormField object>)])¶
-
declared_fields
= OrderedDict([('language', <shuup.core.fields.LanguageFormField object>)])¶
-
media
¶
-
class
-
class
shuup.front.apps.customer_information.forms.
CompanyContactForm
(*args, **kwargs)[source]¶ Bases:
django.forms.models.ModelForm
-
class
Meta
[source]¶ Bases:
object
-
model
¶ alias of
CompanyContact
-
fields
= ('name', 'tax_number', 'phone', 'email', 'marketing_permission', 'picture')¶
-
-
clean_tax_number
()[source]¶ Clean Tax Number.
This is done because we want to prevent duplicates in the front-end.
-
base_fields
= OrderedDict([('name', <django.forms.fields.CharField object>), ('tax_number', <django.forms.fields.CharField object>), ('phone', <django.forms.fields.CharField object>), ('email', <django.forms.fields.EmailField object>), ('marketing_permission', <django.forms.fields.BooleanField object>), ('picture', <filer.fields.image.AdminImageFormField object>)])¶
-
declared_fields
= OrderedDict()¶
-
media
¶
-
class
-
class
shuup.front.apps.customer_information.forms.
SavedAddressForm
(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]¶ Bases:
django.forms.forms.Form
-
base_fields
= OrderedDict([('title', <django.forms.fields.CharField object>), ('role', <enumfields.forms.EnumChoiceField object>), ('status', <enumfields.forms.EnumChoiceField object>)])¶
-
declared_fields
= OrderedDict([('title', <django.forms.fields.CharField object>), ('role', <enumfields.forms.EnumChoiceField object>), ('status', <enumfields.forms.EnumChoiceField object>)])¶
-
media
¶
-
-
class
shuup.front.apps.customer_information.forms.
CustomerInformationFormGroup
(*args, **kwargs)[source]¶ Bases:
shuup.utils.form_group.FormGroup
-
address_forms
= ['billing', 'shipping']¶
-
-
class
shuup.front.apps.customer_information.forms.
CompanyInformationFormGroup
(*args, **kwargs)[source]¶ Bases:
shuup.utils.form_group.FormGroup
-
address_forms
= ['billing', 'shipping']¶
-
-
class
shuup.front.apps.customer_information.forms.
AddressBookFormGroup
(*args, **kwargs)[source]¶ Bases:
shuup.utils.form_group.FormGroup
-
saved_address_form
¶ alias of
SavedAddressForm
-
shuup.front.apps.customer_information.notify_events module¶
-
class
shuup.front.apps.customer_information.notify_events.
CompanyAccountCreated
(**variable_values)[source]¶ Bases:
shuup.notify.base.Event
-
identifier
= 'company_account_created'¶
-
bindings
= {}¶
-
name
= 'Company Account Created'¶
-
variables
= {'contact': <shuup.notify.base.Variable object>, 'customer_email': <shuup.notify.base.Variable object>}¶
-
shuup.front.apps.customer_information.settings module¶
-
shuup.front.apps.customer_information.settings.
SHUUP_CUSTOMER_INFORMATION_EDIT_FORM
= 'shuup.front.apps.customer_information.forms:CustomerInformationFormGroup'¶ The default customer information edit form
-
shuup.front.apps.customer_information.settings.
SHUUP_COMPANY_INFORMATION_EDIT_FORM
= 'shuup.front.apps.customer_information.forms:CompanyInformationFormGroup'¶ The default company information edit form
-
shuup.front.apps.customer_information.settings.
SHUUP_ADDRESS_BOOK_EDIT_FORM
= 'shuup.front.apps.customer_information.forms:AddressBookFormGroup'¶ The default address book edit form
-
shuup.front.apps.customer_information.settings.
SHUUP_CUSTOMER_INFORMATION_ALLOW_PICTURE_UPLOAD
= False¶ Allow customers to upload profile picture
shuup.front.apps.customer_information.urls module¶
shuup.front.apps.customer_information.views module¶
-
class
shuup.front.apps.customer_information.views.
CustomPasswordChangeView
(**kwargs)[source]¶ Bases:
django.contrib.auth.views.PasswordChangeView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
template_name
= 'shuup/customer_information/change_password.jinja'¶
-
success_url
= '/customer/'¶
-
form_class
¶ alias of
PasswordChangeForm
-
-
class
shuup.front.apps.customer_information.views.
CustomerEditView
(**kwargs)[source]¶ Bases:
shuup.front.views.dashboard.DashboardViewMixin
,django.views.generic.edit.FormView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
template_name
= 'shuup/customer_information/edit_customer.jinja'¶
-
-
class
shuup.front.apps.customer_information.views.
CompanyEditView
(**kwargs)[source]¶ Bases:
shuup.front.views.dashboard.DashboardViewMixin
,django.views.generic.edit.FormView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
template_name
= 'shuup/customer_information/edit_company.jinja'¶
-
-
class
shuup.front.apps.customer_information.views.
AddressBookView
(**kwargs)[source]¶ Bases:
shuup.front.views.dashboard.DashboardViewMixin
,django.views.generic.base.TemplateView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
template_name
= 'shuup/customer_information/addressbook/index.jinja'¶
-
-
class
shuup.front.apps.customer_information.views.
AddressBookEditView
(**kwargs)[source]¶ Bases:
shuup.front.views.dashboard.DashboardViewMixin
,django.views.generic.edit.FormView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
template_name
= 'shuup/customer_information/addressbook/edit.jinja'¶
-
instance
= None¶
-
Module contents¶
-
class
shuup.front.apps.customer_information.
AppConfig
(*args, **kwargs)[source]¶ Bases:
shuup.apps.AppConfig
-
name
= 'shuup.front.apps.customer_information'¶
-
verbose_name
= 'Shuup Frontend - Customer Information Editing'¶
-
label
= 'shuup_front.customer_information'¶
-
provides
= {'front_urls': ['shuup.front.apps.customer_information.urls:urlpatterns'], 'customer_dashboard_items': ['shuup.front.apps.customer_information.dashboard_items:CustomerDashboardItem', 'shuup.front.apps.customer_information.dashboard_items:CompanyDashboardItem', 'shuup.front.apps.customer_information.dashboard_items:AddressBookDashboardItem'], 'notify_event': ['shuup.front.apps.customer_information.notify_events:CompanyAccountCreated']}¶
-