shoop.themes.classic_gray package

Submodules

shoop.themes.classic_gray.plugins module

class shoop.themes.classic_gray.plugins.ProductHighlightPlugin(config)[source]

Bases: shoop.xtheme.TemplatedPlugin

Instantiate a Plugin with the given config dictionary.

Parameters:config (dict) – Dictionary of freeform configuration data
identifier = 'classic_gray.product_highlight'
name = <django.utils.functional.lazy.<locals>.__proxy__ object>
template_name = 'classic_gray/highlight_plugin.jinja'
fields = [('title', <shoop.xtheme.plugins.forms.TranslatableField object at 0x7f52fe63fac8>), ('type', <django.forms.fields.ChoiceField object at 0x7f52ffc80a90>), ('count', <django.forms.fields.IntegerField object at 0x7f52fe668550>), ('orderable_only', <django.forms.fields.BooleanField object at 0x7f52fe5c3940>)]
get_context_data(context)[source]
class shoop.themes.classic_gray.plugins.ProductCrossSellsPlugin(config)[source]

Bases: shoop.xtheme.TemplatedPlugin

identifier = 'classic_gray.product_cross_sells'
name = <django.utils.functional.lazy.<locals>.__proxy__ object>
template_name = 'classic_gray/cross_sells_plugin.jinja'
required_context_variables = ['product']
fields = [('title', <shoop.xtheme.plugins.forms.TranslatableField object at 0x7f52fe5c3160>), ('type', <enumfields.forms.EnumChoiceField object at 0x7f52fe6403c8>), ('count', <django.forms.fields.IntegerField object at 0x7f52fe640c18>), ('orderable_only', <django.forms.fields.BooleanField object at 0x7f52fe640e80>)]
get_context_data(context)[source]

Module contents

class shoop.themes.classic_gray.ClassicGrayTheme(settings_obj=None)[source]

Bases: shoop.xtheme.Theme

Initialize this theme, with an optional ThemeSettings object

Parameters:settings_obj (ThemeSettings|None) – A theme settings object for this theme, if one exists. Passing this in will avoid extraneous database queries.
identifier = 'shoop.themes.classic_gray'
name = 'Shoop Classic Gray Theme'
author = 'Juha Kujala'
template_dir = 'classic_gray/'
fields = [('show_welcome_text', <django.forms.fields.BooleanField object at 0x7f530614eba8>)]
get_configuration_form(form_kwargs)[source]
get_view(view_name)[source]
class shoop.themes.classic_gray.ClassicGrayThemeAppConfig(*args, **kwargs)[source]

Bases: shoop.apps.AppConfig

name = 'shoop.themes.classic_gray'
verbose_name = 'Shoop Classic Gray Theme'
label = 'shoop.themes.classic_gray'
provides = {'xtheme': 'shoop.themes.classic_gray:ClassicGrayTheme', 'xtheme_plugin': ['shoop.themes.classic_gray.plugins:ProductHighlightPlugin', 'shoop.themes.classic_gray.plugins:ProductCrossSellsPlugin']}