shuup.front package
Subpackages
- shuup.front.admin_module package
- Subpackages
- shuup.front.admin_module.carts package
- Subpackages
- shuup.front.admin_module.carts.views package
- Module contents
CartDetailViewCartListViewCartListView.__init__CartListView.default_columnsCartListView.format_finished_statusCartListView.format_taxful_total_priceCartListView.format_updated_dateCartListView.get_context_dataCartListView.get_object_abstractCartListView.get_querysetCartListView.mass_actions_provider_keyCartListView.modelCartListView.toolbar_buttons_provider_key
- Module contents
- shuup.front.admin_module.carts.views package
- Submodules
- shuup.front.admin_module.carts.form_parts module
- Module contents
- Subpackages
- shuup.front.admin_module.checkout package
- shuup.front.admin_module.companies package
- shuup.front.admin_module.sorts_and_filters package
- shuup.front.admin_module.translation package
- shuup.front.admin_module.carts package
- Submodules
- shuup.front.admin_module.forms module
- Module contents
- Subpackages
- shuup.front.apps package
- Subpackages
- shuup.front.apps.auth package
- Submodules
- shuup.front.apps.auth.forms module
- shuup.front.apps.auth.settings module
- shuup.front.apps.auth.urls module
- shuup.front.apps.auth.views module
LoginViewLogoutViewRecoverPasswordViewRecoverPasswordConfirmViewRecoverPasswordConfirmView.template_nameRecoverPasswordConfirmView.form_classRecoverPasswordConfirmView.token_generatorRecoverPasswordConfirmView.success_urlRecoverPasswordConfirmView.get_form_kwargsRecoverPasswordConfirmView.get_target_userRecoverPasswordConfirmView.dispatchRecoverPasswordConfirmView.form_valid
RecoverPasswordSentViewRecoverPasswordCompleteView
- Module contents
- shuup.front.apps.carousel package
- Subpackages
- Submodules
- shuup.front.apps.carousel.apps module
- shuup.front.apps.carousel.forms module
- shuup.front.apps.carousel.models module
CarouselModeLinkTargetTypeSlideQuerySetCarouselCarousel.shopsCarousel.nameCarousel.animationCarousel.intervalCarousel.pause_on_hoverCarousel.is_arrows_visibleCarousel.use_dot_navigationCarousel.image_widthCarousel.image_heightCarousel.arrows_colorCarousel.animation_class_nameCarousel.DoesNotExistCarousel.MultipleObjectsReturnedCarousel.get_animation_displayCarousel.idCarousel.objectsCarousel.slides
SlideSlide.carouselSlide.nameSlide.product_linkSlide.category_linkSlide.cms_page_linkSlide.orderingSlide.targetSlide.available_fromSlide.available_toSlide.inactive_dot_colorSlide.active_dot_colorSlide.translationsSlide.get_translated_fieldSlide.get_link_urlSlide.is_visibleSlide.get_link_targetSlide.easy_thumbnails_thumbnailerSlide.get_thumbnailSlide.objectsSlide.DoesNotExistSlide.MultipleObjectsReturnedSlide.captionSlide.caption_textSlide.carousel_idSlide.category_link_idSlide.cms_page_link_idSlide.external_linkSlide.get_target_displaySlide.idSlide.imageSlide.product_link_id
SlideTranslationSlideTranslation.DoesNotExistSlideTranslation.MultipleObjectsReturnedSlideTranslation.captionSlideTranslation.caption_textSlideTranslation.external_linkSlideTranslation.get_language_code_displaySlideTranslation.idSlideTranslation.imageSlideTranslation.image_idSlideTranslation.masterSlideTranslation.master_idSlideTranslation.objects
- shuup.front.apps.carousel.plugins module
- Module contents
- shuup.front.apps.customer_information package
- Submodules
- shuup.front.apps.customer_information.dashboard_items module
- shuup.front.apps.customer_information.forms module
- shuup.front.apps.customer_information.notify_events module
- shuup.front.apps.customer_information.settings module
- shuup.front.apps.customer_information.urls module
- shuup.front.apps.customer_information.views module
- Module contents
- shuup.front.apps.personal_order_history package
- shuup.front.apps.recently_viewed_products package
- shuup.front.apps.registration package
- Submodules
- shuup.front.apps.registration.forms module
- shuup.front.apps.registration.notify_events module
- shuup.front.apps.registration.settings module
- shuup.front.apps.registration.signals module
- shuup.front.apps.registration.urls module
- shuup.front.apps.registration.views module
- Module contents
- shuup.front.apps.saved_carts package
- shuup.front.apps.simple_order_notification package
- shuup.front.apps.simple_search package
- shuup.front.apps.auth package
- Module contents
- Subpackages
- shuup.front.basket package
- Submodules
- shuup.front.basket.command_dispatcher module
- shuup.front.basket.commands module
- shuup.front.basket.objects module
- shuup.front.basket.order_creator module
- shuup.front.basket.storage module
- shuup.front.basket.update_methods module
- Module contents
- shuup.front.checkout package
- Submodules
- shuup.front.checkout.addresses module
CompanyFormSavedAddressFormAddressesPhaseAddressesPhase.identifierAddressesPhase.titleAddressesPhase.template_nameAddressesPhase.address_form_classesAddressesPhase.company_form_classAddressesPhase.saved_address_form_classAddressesPhase.address_kindsAddressesPhase.get_formAddressesPhase.get_initialAddressesPhase.is_validAddressesPhase.form_validAddressesPhase.processAddressesPhase.get_context_data
- shuup.front.checkout.checkout_method module
CheckoutMethodChoicesChooseToRegisterFormCheckoutMethodPhaseCheckoutMethodPhase.identifierCheckoutMethodPhase.titleCheckoutMethodPhase.template_nameCheckoutMethodPhase.login_form_keyCheckoutMethodPhase.checkout_method_choice_keyCheckoutMethodPhase.get_formCheckoutMethodPhase.is_visible_for_userCheckoutMethodPhase.should_skipCheckoutMethodPhase.is_validCheckoutMethodPhase.form_validCheckoutMethodPhase.processCheckoutMethodPhase.get_initial_form_group_kwargs
RegisterPhase
- shuup.front.checkout.confirm module
- shuup.front.checkout.empty module
- shuup.front.checkout.methods module
- Module contents
BasicServiceCheckoutPhaseProviderCheckoutPhaseViewMixinCheckoutPhaseViewMixin.__init__CheckoutPhaseViewMixin.basketCheckoutPhaseViewMixin.checkout_processCheckoutPhaseViewMixin.finalCheckoutPhaseViewMixin.get_context_dataCheckoutPhaseViewMixin.get_success_urlCheckoutPhaseViewMixin.get_urlCheckoutPhaseViewMixin.identifierCheckoutPhaseViewMixin.is_validCheckoutPhaseViewMixin.is_visible_for_userCheckoutPhaseViewMixin.next_phaseCheckoutPhaseViewMixin.phasesCheckoutPhaseViewMixin.previous_phaseCheckoutPhaseViewMixin.processCheckoutPhaseViewMixin.requestCheckoutPhaseViewMixin.resetCheckoutPhaseViewMixin.should_skipCheckoutPhaseViewMixin.spawn_phasesCheckoutPhaseViewMixin.storageCheckoutPhaseViewMixin.title
CheckoutProcessCheckoutProcess.__init__CheckoutProcess.add_phase_attributesCheckoutProcess.basketCheckoutProcess.completeCheckoutProcess.get_current_phaseCheckoutProcess.get_next_phaseCheckoutProcess.get_phase_urlCheckoutProcess.get_previous_phaseCheckoutProcess.horizontal_templateCheckoutProcess.instantiate_phase_classCheckoutProcess.phasesCheckoutProcess.prepare_current_phaseCheckoutProcess.reset
ServiceCheckoutPhaseProviderVerticalCheckoutProcess
- shuup.front.forms package
- Submodules
- shuup.front.forms.order_forms module
- shuup.front.forms.product_list_modifiers module
FilterWidgetOneChoiceFilterWidgetCommaSeparatedListFieldSimpleProductListModifierSortProductListByNameSortProductListByName.is_active_keySortProductListByName.is_active_labelSortProductListByName.ordering_keySortProductListByName.ordering_labelSortProductListByName.get_fieldsSortProductListByName.get_choices_for_fieldsSortProductListByName.sort_products_querysetSortProductListByName.get_admin_fields
SortProductListByPriceSortProductListByPrice.is_active_keySortProductListByPrice.is_active_labelSortProductListByPrice.ordering_keySortProductListByPrice.ordering_labelSortProductListByPrice.get_fieldsSortProductListByPrice.get_choices_for_fieldsSortProductListByPrice.sort_products_querysetSortProductListByPrice.get_admin_fields
SortProductListByCreatedDateSortProductListByCreatedDate.is_active_keySortProductListByCreatedDate.is_active_labelSortProductListByCreatedDate.ordering_keySortProductListByCreatedDate.ordering_labelSortProductListByCreatedDate.get_fieldsSortProductListByCreatedDate.get_choices_for_fieldsSortProductListByCreatedDate.sort_products_querysetSortProductListByCreatedDate.get_admin_fields
SortProductListByAscendingCreatedDateSortProductListByAscendingCreatedDate.is_active_keySortProductListByAscendingCreatedDate.is_active_labelSortProductListByAscendingCreatedDate.ordering_keySortProductListByAscendingCreatedDate.ordering_labelSortProductListByAscendingCreatedDate.get_choices_for_fieldsSortProductListByAscendingCreatedDate.get_admin_fields
ManufacturerProductListFilterManufacturerProductListFilter.is_active_keyManufacturerProductListFilter.is_active_labelManufacturerProductListFilter.ordering_keyManufacturerProductListFilter.ordering_labelManufacturerProductListFilter.get_fieldsManufacturerProductListFilter.get_filtersManufacturerProductListFilter.get_admin_fields
CategoryProductListFilterLimitProductListPageSizeProductVariationFilterProductPriceFilterProductPriceFilter.is_active_keyProductPriceFilter.is_active_labelProductPriceFilter.ordering_keyProductPriceFilter.ordering_labelProductPriceFilter.range_min_keyProductPriceFilter.range_max_keyProductPriceFilter.range_size_keyProductPriceFilter.get_fieldsProductPriceFilter.get_products_querysetProductPriceFilter.get_admin_fields
AttributeProductListFilterAttributeProductListFilter.is_active_keyAttributeProductListFilter.is_active_labelAttributeProductListFilter.ordering_keyAttributeProductListFilter.product_attr_keyAttributeProductListFilter.get_fieldsAttributeProductListFilter.get_products_querysetAttributeProductListFilter.get_admin_fieldsAttributeProductListFilter.clean_hook
get_price_ranges
- shuup.front.forms.product_list_supplier_modifier module
SupplierProductListFilterSupplierProductListFilter.is_active_keySupplierProductListFilter.is_active_labelSupplierProductListFilter.ordering_keySupplierProductListFilter.ordering_labelSupplierProductListFilter.label_keySupplierProductListFilter.enable_multiselect_keySupplierProductListFilter.get_fieldsSupplierProductListFilter.get_filtersSupplierProductListFilter.get_admin_fields
- shuup.front.forms.widget module
- Module contents
- shuup.front.models package
- Submodules
- shuup.front.models.stored_basket module
generate_keyStoredBasketStoredBasket.keyStoredBasket.shopStoredBasket.supplierStoredBasket.customerStoredBasket.ordererStoredBasket.creatorStoredBasket.created_onStoredBasket.updated_onStoredBasket.persistentStoredBasket.deletedStoredBasket.finishedStoredBasket.titleStoredBasket.dataStoredBasket.taxful_total_priceStoredBasket.taxless_total_priceStoredBasket.taxless_total_price_valueStoredBasket.taxful_total_price_valueStoredBasket.currencyStoredBasket.prices_include_taxStoredBasket.product_countStoredBasket.productsStoredBasket.class_specStoredBasket.DoesNotExistStoredBasket.MultipleObjectsReturnedStoredBasket.creator_idStoredBasket.customer_idStoredBasket.get_next_by_created_onStoredBasket.get_next_by_updated_onStoredBasket.get_previous_by_created_onStoredBasket.get_previous_by_updated_onStoredBasket.idStoredBasket.objectsStoredBasket.orderer_idStoredBasket.shop_idStoredBasket.supplier_id
- Module contents
StoredBasketStoredBasket.DoesNotExistStoredBasket.MultipleObjectsReturnedStoredBasket.class_specStoredBasket.created_onStoredBasket.creatorStoredBasket.creator_idStoredBasket.currencyStoredBasket.customerStoredBasket.customer_idStoredBasket.dataStoredBasket.deletedStoredBasket.finishedStoredBasket.get_next_by_created_onStoredBasket.get_next_by_updated_onStoredBasket.get_previous_by_created_onStoredBasket.get_previous_by_updated_onStoredBasket.idStoredBasket.keyStoredBasket.objectsStoredBasket.ordererStoredBasket.orderer_idStoredBasket.persistentStoredBasket.prices_include_taxStoredBasket.product_countStoredBasket.productsStoredBasket.shopStoredBasket.shop_idStoredBasket.supplierStoredBasket.supplier_idStoredBasket.taxful_total_priceStoredBasket.taxful_total_price_valueStoredBasket.taxless_total_priceStoredBasket.taxless_total_price_valueStoredBasket.titleStoredBasket.updated_on
- shuup.front.notify_script_templates package
- shuup.front.providers package
- shuup.front.template_helpers package
- Submodules
- shuup.front.template_helpers.basket module
- shuup.front.template_helpers.category module
- shuup.front.template_helpers.general module
get_login_formget_listed_productsget_best_selling_productsget_newest_productsget_random_productsget_products_for_categoriesget_all_manufacturersget_root_categoriesget_pagination_variablesget_shop_language_choicesis_shop_adminis_company_registration_allowedcan_toggle_all_seeingget_admin_edit_urlget_powered_by_contentget_configis_authenticated
- shuup.front.template_helpers.order module
- shuup.front.template_helpers.product module
- shuup.front.template_helpers.urls module
- Module contents
- shuup.front.templatetags package
- shuup.front.themes package
- shuup.front.utils package
- Submodules
- shuup.front.utils.cache module
- shuup.front.utils.companies module
- shuup.front.utils.dashboard module
DashboardItemSizeDashboardItemDashboardItem.template_nameDashboardItem.titleDashboardItem.orderingDashboardItem.sizeDashboardItem.iconDashboardItem.view_textDashboardItem.__init__DashboardItem.requestDashboardItem.urlDashboardItem.get_contextDashboardItem.renderDashboardItem.css_classDashboardItem.show_on_menuDashboardItem.show_on_dashboard
- shuup.front.utils.order_source module
- shuup.front.utils.product module
- shuup.front.utils.product_statistics module
- shuup.front.utils.sorts_and_filters module
ProductListFormModifierProductListFormModifier.should_useProductListFormModifier.get_orderingProductListFormModifier.get_fieldsProductListFormModifier.get_choices_for_fieldsProductListFormModifier.sort_products_querysetProductListFormModifier.get_filtersProductListFormModifier.get_products_querysetProductListFormModifier.get_admin_fieldsProductListFormModifier.clean_hook
ProductListFormget_configurationset_configurationget_query_filterssort_productsbump_product_queryset_cacheget_product_querysetcached_product_querysetget_form_field_label
- shuup.front.utils.translation module
- shuup.front.utils.urls module
- shuup.front.utils.user module
- shuup.front.utils.views module
- Module contents
- shuup.front.views package
- Submodules
- shuup.front.views.basket module
- shuup.front.views.category module
- shuup.front.views.checkout module
- shuup.front.views.dashboard module
- shuup.front.views.index module
- shuup.front.views.misc module
- shuup.front.views.order module
- shuup.front.views.payment module
- shuup.front.views.product module
- shuup.front.views.upload module
- Module contents
Submodules
shuup.front.error_handlers module
- class shuup.front.error_handlers.FrontPageErrorHandler[source]
Bases:
ErrorPageHandlerPage Error handler for Shuup Front
- classmethod can_handle_error(request, error_status)[source]
Returns whether this object can handle the error.
- Return type:
shuup.front.middleware module
- shuup.front.middleware.ProblemMiddleware
alias of
ExceptionMiddleware
- class shuup.front.middleware.ShuupFrontMiddleware(get_response=None)[source]
Bases:
MiddlewareMixinHandle Shuup specific tasks for each request and response.
Set request attributes that rest of the Shuup front-end rely on.
Set Django’s timezone according to personal preferences (i.e. request.person.timezone).
Todo
Fallback to shop timezone?
Make sure that basket is saved before response is returned to the browser.
Attributes set for requests:
request.shopshuup.core.models.ShopCurrently active Shop.
request.personshuup.core.models.ContactPersonContactof currently logged in user orAnonymousContactif there is no logged-in user.request.customershuup.core.models.ContactCustomer contact used when creating Orders. This can be same as
request.person, but for example in B2B shops this is usually aCompanyContactwhereasrequest.personis aPersonContact.request.basketshuup.front.basket.objects.BaseBasketShopping basket in use.
shuup.front.notify_events module
- class shuup.front.notify_events.OrderReceived(**variable_values)[source]
Bases:
Event- identifier = 'order_received'
- name = 'Order Received'
- bindings = {}
- variables = {'customer_email': <shuup.notify.base.Variable object>, 'customer_phone': <shuup.notify.base.Variable object>, 'language': <shuup.notify.base.Variable object>, 'order': <shuup.notify.base.Variable object>, 'shop_email': <shuup.notify.base.Variable object>, 'shop_phone': <shuup.notify.base.Variable object>}
- class shuup.front.notify_events.OrderStatusChanged(**variable_values)[source]
Bases:
Event- identifier = 'order_status_changed'
- name = 'Order Status Changed'
- bindings = {}
- variables = {'customer_email': <shuup.notify.base.Variable object>, 'customer_phone': <shuup.notify.base.Variable object>, 'language': <shuup.notify.base.Variable object>, 'new_status': <shuup.notify.base.Variable object>, 'old_status': <shuup.notify.base.Variable object>, 'order': <shuup.notify.base.Variable object>, 'shop_email': <shuup.notify.base.Variable object>, 'shop_phone': <shuup.notify.base.Variable object>}
- class shuup.front.notify_events.ShipmentCreated(**variable_values)[source]
Bases:
Event- identifier = 'shipment_created'
- name = 'Shipment Created'
- bindings = {}
- variables = {'customer_email': <shuup.notify.base.Variable object>, 'customer_phone': <shuup.notify.base.Variable object>, 'language': <shuup.notify.base.Variable object>, 'order': <shuup.notify.base.Variable object>, 'shipment': <shuup.notify.base.Variable object>, 'shipment_status': <shuup.notify.base.Variable object>, 'shipment_tracking_code': <shuup.notify.base.Variable object>, 'shipment_tracking_url': <shuup.notify.base.Variable object>, 'shipping_status': <shuup.notify.base.Variable object>}
- class shuup.front.notify_events.ShipmentSent(**variable_values)[source]
Bases:
ShipmentCreated- identifier = 'shipment_sent'
- name = 'Shipment Sent'
- bindings = {}
- variables = {'customer_email': <shuup.notify.base.Variable object>, 'customer_phone': <shuup.notify.base.Variable object>, 'language': <shuup.notify.base.Variable object>, 'order': <shuup.notify.base.Variable object>, 'shipment': <shuup.notify.base.Variable object>, 'shipment_status': <shuup.notify.base.Variable object>, 'shipment_tracking_code': <shuup.notify.base.Variable object>, 'shipment_tracking_url': <shuup.notify.base.Variable object>, 'shipping_status': <shuup.notify.base.Variable object>}
- class shuup.front.notify_events.ShipmentDeleted(**variable_values)[source]
Bases:
Event- identifier = 'shipment_deleted'
- name = 'Shipment Deleted'
- bindings = {}
- variables = {'customer_email': <shuup.notify.base.Variable object>, 'customer_phone': <shuup.notify.base.Variable object>, 'language': <shuup.notify.base.Variable object>, 'order': <shuup.notify.base.Variable object>, 'shipment': <shuup.notify.base.Variable object>, 'shipping_status': <shuup.notify.base.Variable object>}
- class shuup.front.notify_events.PaymentCreated(**variable_values)[source]
Bases:
Event- identifier = 'payment_created'
- name = 'Payment Created'
- bindings = {}
- variables = {'customer_email': <shuup.notify.base.Variable object>, 'customer_phone': <shuup.notify.base.Variable object>, 'language': <shuup.notify.base.Variable object>, 'order': <shuup.notify.base.Variable object>, 'payment': <shuup.notify.base.Variable object>, 'payment_status': <shuup.notify.base.Variable object>}
- class shuup.front.notify_events.RefundCreated(**variable_values)[source]
Bases:
Event- identifier = 'refund_created'
- name = 'Refund Created'
- bindings = {}
- variables = {'customer_email': <shuup.notify.base.Variable object>, 'customer_phone': <shuup.notify.base.Variable object>, 'language': <shuup.notify.base.Variable object>, 'order': <shuup.notify.base.Variable object>, 'payment_status': <shuup.notify.base.Variable object>}
shuup.front.settings module
- shuup.front.settings.SHUUP_LOGIN_VIEW = 'shuup.front.apps.auth.views:LoginView'
This is used to get the login form for the login dropdown in navigation.jinja file.
- shuup.front.settings.SHUUP_BASKET_ORDER_CREATOR_SPEC = 'shuup.core.basket.order_creator:BasketOrderCreator'
Spec string for the class used to create Order from a Basket.
This is the easiest way to customize the order creation process without having to override a single URL or touch the
shuup.frontcode.
- shuup.front.settings.SHUUP_BASKET_VIEW_SPEC = 'shuup.front.views.basket:DefaultBasketView'
Spec string for the Django CBV (or an API-compliant class) for the basket view.
This view deals with
/basket/.
- shuup.front.settings.SHUUP_BASKET_COMMAND_DISPATCHER_SPEC = 'shuup.core.basket.command_dispatcher:BasketCommandDispatcher'
Spec string for the command dispatcher. Used when products are added/deleted/etc from the basket.
This view deals with commands
POST``ed to ``/basket/.
- shuup.front.settings.SHUUP_BASKET_UPDATE_METHODS_SPEC = 'shuup.front.basket.update_methods:BasketUpdateMethods'
Spec string for the update method dispatcher. Used when the basket is updated (usually on the basket page).
- shuup.front.settings.SHUUP_BASKET_CLASS_SPEC = 'shuup.front.basket.objects:BaseBasket'
Spec string for the basket class, used in the frontend.
This is used to customize the behavior of the basket for a given installation, for instance to modify prices of products based on certain condition.
- shuup.front.settings.SHUUP_BASKET_STORAGE_CLASS_SPEC = 'shuup.front.basket.storage:DatabaseBasketStorage'
The spec string, defining which basket storage class to use for the frontend.
Basket storages are responsible for persisting visitor basket state. The default stores the basket to database (
DatabaseBasketStorage). Custom storage backends could use caches, flat files, etc. if required.
- shuup.front.settings.SHUUP_CHECKOUT_VIEW_SPEC = 'shuup.front.views.checkout:DefaultCheckoutView'
Spec string for the Django CBV (or an API-compliant class) for the checkout view.
This is used to customize the behavior of the checkout process; most likely to switch in a view with a different
phase_specs.
- shuup.front.settings.SHUUP_FRONT_DEFAULT_SORT_CONFIGURATION = {'sort_products_by_name': True, 'sort_products_by_name_ordering': 1, 'sort_products_by_price': True, 'sort_products_by_price_ordering': 2}
Default product lists facet configuration.
This configuration will be used if the configuration is not set from admin.
- shuup.front.settings.SHUUP_FRONT_PRODUCT_CONTEXT_SPEC = 'shuup.front.utils.product:get_default_product_context'
Default product context for product detail view
Override this configuration for quick per project optimization or for adding something extra for your custom, templates, snippets and plugins.
- shuup.front.settings.SHUUP_TEMPLATE_HELPERS_CACHE_DURATION = 1800
Default cache duration for template helpers (in seconds).
Cache duration in seconds for front template helpers. Default: 30 minutes.
- shuup.front.settings.SHUUP_PERSON_CONTACT_FIELD_PROPERTIES = {}
A dictionary, defining properties to override the default field properties of the person contact form. Should map the field name (as a string) to a dictionary. The dictionary should contain the overriding Django form field properties, as in the following example (makes the
genderfield hidden):- SHUUP_PERSON_CONTACT_FIELD_PROPERTIES = {
“gender”: {“widget”: forms.HiddenInput()}
}
It should be noted, however, that overriding some of the settings (such as making a required field non-required) could create other validation issues.
- shuup.front.settings.SHUUP_CHECKOUT_CONFIRM_FORM_PROPERTIES = {}
A dictionary defining properties to override the default field properties of the
confirmform. Should map the field name (as a string) to a dictionary. The dictionary should contain the overriding Django form field properties, as in the following example (makes thegenderfield hidden):- SHUUP_CHECKOUT_CONFIRM_FORM_PROPERTIES = {
“marketing”: {“initial”: True}, “comment”: {“widget”: forms.HiddenInput()}
}
It should be noted, however, that overriding some of the settings (such as making a required field non-required) could create other validation issues.
- shuup.front.settings.SHUUP_FRONT_POWERED_BY_CONTENT = '<p class="powered">Powered by <a target="_blank" href="https://shuup.com">Shuup</a></p>'
The default “Shuup powered by” content. This content is rendered in theme bottom by default at
shuup.front.templates.shuup.front.macros.footer.jinja.
- shuup.front.settings.SHUUP_FRONT_OVERRIDE_SORTS_AND_FILTERS_LABELS_LOGIC = {}
Override sort and filters labels with your own.
Define dictionary with field identifier as key and new label as value.
- SHUUP_FRONT_OVERRIDE_SORTS_AND_FILTERS_LABELS_LOGIC = {
“manufacturers”: _(“Brands”), “suppliers”: _(“Filter by vendor”)
}
- shuup.front.settings.SHUUP_FRONT_MAX_UPLOAD_SIZE = 500000
Maximum allowed file size (in bytes) for uploads, when posting to
shuup.front.views.upload.media_upload.
shuup.front.signal_handlers module
shuup.front.signals module
shuup.front.urls module
Module contents
- class shuup.front.ShuupFrontAppConfig(*args, **kwargs)[source]
Bases:
AppConfig- name = 'shuup.front'
- verbose_name = 'Shuup Frontend'
- label = 'shuup_front'
- default_auto_field = 'django.db.models.BigAutoField'
- provides = {'admin_category_form_part': ['shuup.front.admin_module.sorts_and_filters.form_parts.ConfigurationCategoryFormPart'], 'admin_module': ['shuup.front.admin_module.CartAdminModule'], 'admin_shop_form_part': ['shuup.front.admin_module.sorts_and_filters.form_parts.ConfigurationShopFormPart', 'shuup.front.admin_module.checkout.form_parts.CheckoutShopFormPart', 'shuup.front.admin_module.companies.form_parts.RegistrationSettingsFormPart', 'shuup.front.admin_module.translation.form_parts.TranslationSettingsFormPart', 'shuup.front.admin_module.carts.form_parts.CartDelayFormPart'], 'front_extend_product_list_form': ['shuup.front.forms.product_list_modifiers.CategoryProductListFilter', 'shuup.front.forms.product_list_modifiers.LimitProductListPageSize', 'shuup.front.forms.product_list_modifiers.ProductPriceFilter', 'shuup.front.forms.product_list_modifiers.ProductVariationFilter', 'shuup.front.forms.product_list_modifiers.SortProductListByCreatedDate', 'shuup.front.forms.product_list_modifiers.SortProductListByAscendingCreatedDate', 'shuup.front.forms.product_list_modifiers.SortProductListByName', 'shuup.front.forms.product_list_modifiers.SortProductListByPrice', 'shuup.front.forms.product_list_modifiers.ManufacturerProductListFilter', 'shuup.front.forms.product_list_modifiers.AttributeProductListFilter', 'shuup.front.forms.product_list_supplier_modifier.SupplierProductListFilter'], 'front_model_url_resolver': ['shuup.front.utils.urls.model_url'], 'front_product_order_form': ['shuup.front.forms.order_forms:VariableVariationProductOrderForm', 'shuup.front.forms.order_forms:SimpleVariationProductOrderForm', 'shuup.front.forms.order_forms:SimpleProductOrderForm'], 'notify_event': ['shuup.front.notify_events:OrderReceived', 'shuup.front.notify_events:OrderStatusChanged', 'shuup.front.notify_events:ShipmentCreated', 'shuup.front.notify_events:ShipmentDeleted', 'shuup.front.notify_events:ShipmentSent', 'shuup.front.notify_events:PaymentCreated', 'shuup.front.notify_events:RefundCreated'], 'notify_script_template': ['shuup.front.notify_script_templates:PaymentCreatedEmailScriptTemplate', 'shuup.front.notify_script_templates:RefundCreatedEmailScriptTemplate', 'shuup.front.notify_script_templates:ShipmentDeletedEmailScriptTemplate', 'shuup.front.notify_script_templates:OrderConfirmationEmailScriptTemplate', 'shuup.front.notify_script_templates:ShipmentCreatedEmailScriptTemplate']}
See /provides for details about the
providesvariable.