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
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=())[source]
media
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 = <django.utils.functional.lazy.<locals>.__proxy__ object>
ordering_key = 'sort_products_by_name_ordering'
ordering_label = <django.utils.functional.lazy.<locals>.__proxy__ object>
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 = <django.utils.functional.lazy.<locals>.__proxy__ object>
ordering_key = 'sort_products_by_price_ordering'
ordering_label = <django.utils.functional.lazy.<locals>.__proxy__ object>
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 = <django.utils.functional.lazy.<locals>.__proxy__ object>
ordering_key = 'sort_products_by_date_created_ordering'
ordering_label = <django.utils.functional.lazy.<locals>.__proxy__ object>
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 = <django.utils.functional.lazy.<locals>.__proxy__ object>
ordering_key = 'sort_products_by_ascending_created_date_ordering'
ordering_label = <django.utils.functional.lazy.<locals>.__proxy__ object>
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 = <django.utils.functional.lazy.<locals>.__proxy__ object>
ordering_key = 'filter_products_by_manufacturer_ordering'
ordering_label = <django.utils.functional.lazy.<locals>.__proxy__ object>
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 = <django.utils.functional.lazy.<locals>.__proxy__ object>
ordering_key = 'filter_products_by_category_ordering'
ordering_label = <django.utils.functional.lazy.<locals>.__proxy__ object>
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 = <django.utils.functional.lazy.<locals>.__proxy__ object>
ordering_key = 'limit_product_list_page_size_ordering'
ordering_label = <django.utils.functional.lazy.<locals>.__proxy__ object>
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 = <django.utils.functional.lazy.<locals>.__proxy__ object>
ordering_key = 'filter_products_by_variation_value_ordering'
ordering_label = <django.utils.functional.lazy.<locals>.__proxy__ object>
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 = <django.utils.functional.lazy.<locals>.__proxy__ object>
ordering_key = 'filter_products_by_price_ordering'
ordering_label = <django.utils.functional.lazy.<locals>.__proxy__ object>
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]
shuup.front.forms.product_list_modifiers.get_price_ranges(shop, min_price, max_price, range_step)[source]

Module contents