shuup.front.forms package

Submodules

shuup.front.forms.order_forms module

class shuup.front.forms.order_forms.ProductOrderForm(request, context, product, language, **kwargs)[source]

Bases: django.views.generic.edit.FormView

template_name = 'shuup/front/product/forms/product_order_form.jinja'
engine = None
priority = 0
render()[source]
is_compatible()[source]
class shuup.front.forms.order_forms.VariableVariationProductOrderForm(request, context, product, language, **kwargs)[source]

Bases: shuup.front.forms.order_forms.ProductOrderForm

is_compatible()[source]
class shuup.front.forms.order_forms.SimpleVariationProductOrderForm(request, context, product, language, **kwargs)[source]

Bases: shuup.front.forms.order_forms.ProductOrderForm

is_compatible()[source]
class shuup.front.forms.order_forms.SimpleProductOrderForm(request, context, product, language, **kwargs)[source]

Bases: shuup.front.forms.order_forms.ProductOrderForm

is_compatible()[source]

shuup.front.forms.product_list_modifiers module

class shuup.front.forms.product_list_modifiers.FilterWidget(attrs=None, choices=())[source]

Bases: django.forms.widgets.SelectMultiple

render(name, value, attrs=None, choices=(), renderer=None)[source]
media
class shuup.front.forms.product_list_modifiers.OneChoiceFilterWidget(attrs=None, choices=())[source]

Bases: django.forms.widgets.Select

render(name, value, attrs=None, choices=(), renderer=None)[source]
media
class shuup.front.forms.product_list_modifiers.CommaSeparatedListField(*, max_length=None, min_length=None, strip=True, empty_value='', **kwargs)[source]

Bases: django.forms.fields.CharField

to_python(value)[source]
prepare_value(value)[source]
class shuup.front.forms.product_list_modifiers.SimpleProductListModifier[source]

Bases: shuup.front.utils.sorts_and_filters.ProductListFormModifier

is_active_key = ''
is_active_label = ''
ordering_key = ''
ordering_label = ''
should_use(configuration)[source]
get_ordering(configuration)[source]
get_admin_fields()[source]
class shuup.front.forms.product_list_modifiers.SortProductListByName[source]

Bases: shuup.front.forms.product_list_modifiers.SimpleProductListModifier

is_active_key = 'sort_products_by_name'
is_active_label = 'Sort products by name'
ordering_key = 'sort_products_by_name_ordering'
ordering_label = 'Ordering for sort by name'
get_fields(request, category=None)[source]
get_choices_for_fields()[source]
sort_products(request, products, data)[source]
get_admin_fields()[source]
class shuup.front.forms.product_list_modifiers.SortProductListByPrice[source]

Bases: shuup.front.forms.product_list_modifiers.SimpleProductListModifier

is_active_key = 'sort_products_by_price'
is_active_label = 'Sort products by price'
ordering_key = 'sort_products_by_price_ordering'
ordering_label = 'Ordering for sort by price'
get_fields(request, category=None)[source]
get_choices_for_fields()[source]
sort_products(request, products, data)[source]
get_admin_fields()[source]
class shuup.front.forms.product_list_modifiers.SortProductListByCreatedDate[source]

Bases: shuup.front.forms.product_list_modifiers.SimpleProductListModifier

is_active_key = 'sort_products_by_date_created'
is_active_label = 'Sort products by date created'
ordering_key = 'sort_products_by_date_created_ordering'
ordering_label = 'Ordering for sort by date created'
get_fields(request, category=None)[source]
get_choices_for_fields()[source]
sort_products(request, products, data)[source]
get_admin_fields()[source]
class shuup.front.forms.product_list_modifiers.SortProductListByAscendingCreatedDate[source]

Bases: shuup.front.forms.product_list_modifiers.SortProductListByCreatedDate

is_active_key = 'sort_products_by_ascending_created_date'
is_active_label = 'Sort products by date created - oldest first'
ordering_key = 'sort_products_by_ascending_created_date_ordering'
ordering_label = 'Ordering for sort by date created - oldest first'
get_choices_for_fields()[source]
get_admin_fields()[source]
class shuup.front.forms.product_list_modifiers.ManufacturerProductListFilter[source]

Bases: shuup.front.forms.product_list_modifiers.SimpleProductListModifier

is_active_key = 'filter_products_by_manufacturer'
is_active_label = 'Filter products by manufacturer'
ordering_key = 'filter_products_by_manufacturer_ordering'
ordering_label = 'Ordering for filter by manufacturer'
get_fields(request, category=None)[source]
get_filters(request, data)[source]
get_admin_fields()[source]
class shuup.front.forms.product_list_modifiers.CategoryProductListFilter[source]

Bases: shuup.front.forms.product_list_modifiers.SimpleProductListModifier

is_active_key = 'filter_products_by_category'
is_active_label = 'Filter products by category'
ordering_key = 'filter_products_by_category_ordering'
ordering_label = 'Ordering for filter by category'
get_fields(request, category=None)[source]
get_filters(request, data)[source]
get_admin_fields()[source]
class shuup.front.forms.product_list_modifiers.LimitProductListPageSize[source]

Bases: shuup.front.forms.product_list_modifiers.SimpleProductListModifier

is_active_key = 'limit_product_list_page_size'
is_active_label = 'Limit page size'
ordering_key = 'limit_product_list_page_size_ordering'
ordering_label = 'Ordering for limit page size'
get_fields(request, category=None)[source]
get_choices_for_fields()[source]
get_admin_fields()[source]
class shuup.front.forms.product_list_modifiers.ProductVariationFilter[source]

Bases: shuup.front.forms.product_list_modifiers.SimpleProductListModifier

is_active_key = 'filter_products_by_variation_value'
is_active_label = 'Filter products by variation'
ordering_key = 'filter_products_by_variation_value_ordering'
ordering_label = 'Ordering for filter by variation'
get_fields(request, category=None)[source]
get_queryset(queryset, data)[source]
get_admin_fields()[source]
class shuup.front.forms.product_list_modifiers.ProductPriceFilter[source]

Bases: shuup.front.forms.product_list_modifiers.SimpleProductListModifier

is_active_key = 'filter_products_by_price'
is_active_label = 'Filter products by price'
ordering_key = 'filter_products_by_price_ordering'
ordering_label = 'Ordering for filter by price'
range_min_key = 'filter_products_by_price_range_min'
range_max_key = 'filter_products_by_price_range_max'
range_size_key = 'filter_products_by_price_range_size'
get_fields(request, category=None)[source]
filter_products(request, products, data)[source]
get_admin_fields()[source]
class shuup.front.forms.product_list_modifiers.AttributeProductListFilter[source]

Bases: shuup.front.forms.product_list_modifiers.SimpleProductListModifier

is_active_key = 'filter_products_by_products_attribute'
is_active_label = 'Filter products by its attributes'
ordering_key = 'filter_products_by_attribute_ordering'
product_attr_key = 'filter_products_by_product_attribute_field'
get_fields(request, category=None)[source]
get_queryset(queryset, data)[source]
get_admin_fields()[source]
clean_hook(form)[source]
shuup.front.forms.product_list_modifiers.get_price_ranges(shop, min_price, max_price, range_step)[source]

shuup.front.forms.product_list_supplier_modifier module

class shuup.front.forms.product_list_supplier_modifier.SupplierProductListFilter[source]

Bases: shuup.front.forms.product_list_modifiers.SimpleProductListModifier

is_active_key = 'filter_products_by_supplier'
is_active_label = 'Filter products by supplier'
ordering_key = 'filter_products_by_supplier_ordering'
ordering_label = 'Ordering for filter by supplier'
label_key = 'filter_products_by_supplier_label'
enable_multiselect_key = 'filter_products_by_supplier_multiselect_enabled'
get_fields(request, category=None)[source]
get_filters(request, data)[source]
get_admin_fields()[source]

shuup.front.forms.widget module

class shuup.front.forms.widget.PictureDnDUploaderWidget(attrs=None, kind='images', upload_path='/contacts', clearable=False, browsable=True, upload_url=None, dropzone_attrs={})[source]

Bases: django.forms.widgets.Widget

render(name, value, attrs={}, renderer=None)[source]
media

Module contents