shoop.customer_group_pricing package

Submodules

shoop.customer_group_pricing.admin_form_part module

class shoop.customer_group_pricing.admin_form_part.CustomerGroupPricingForm(**kwargs)[source]

Bases: django.forms.forms.Form

save()[source]
get_shop_group_field(shop, group)[source]
base_fields = OrderedDict()
declared_fields = OrderedDict()
media
class shoop.customer_group_pricing.admin_form_part.CustomerGroupPricingFormPart(request, object=None)[source]

Bases: shoop.admin.form_part.FormPart

priority = 10
get_form_defs()[source]
form_valid(form)[source]

shoop.customer_group_pricing.api module

shoop.customer_group_pricing.api.populate_customer_group_pricing_api(router)[source]
Parameters:router (rest_framework.routers.DefaultRouter) – Router

shoop.customer_group_pricing.models module

class shoop.customer_group_pricing.models.CgpPrice(id, product, shop, group, price_value)[source]

Bases: shoop.utils.properties.MoneyPropped, django.db.models.base.Model

product
shop
group
price

Property for Price object.

Similar to MoneyProperty but also has includes_tax field.

Operaters with TaxfulPrice and TaxlessPrice objects.

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception CgpPrice.MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

CgpPrice.objects = <django.db.models.manager.Manager object>

shoop.customer_group_pricing.module module

class shoop.customer_group_pricing.module.CustomerGroupPricingModule[source]

Bases: shoop.core.pricing.PricingModule

identifier = 'customer_group_pricing'
name = <django.utils.functional.lazy.<locals>.__proxy__ object>
get_price_info(context, product, quantity=1)[source]

Module contents

class shoop.customer_group_pricing.CustomerGroupPricingAppConfig(*args, **kwargs)[source]

Bases: shoop.apps.AppConfig

name = 'shoop.customer_group_pricing'
verbose_name = <django.utils.functional.lazy.<locals>.__proxy__ object>
label = 'shoop_customer_group_pricing'
provides = {'pricing_module': ['shoop.customer_group_pricing.module:CustomerGroupPricingModule'], 'api_populator': ['shoop.customer_group_pricing.api:populate_customer_group_pricing_api'], 'admin_product_form_part': ['shoop.customer_group_pricing.admin_form_part:CustomerGroupPricingFormPart']}