shuup.customer_group_pricing package¶
Submodules¶
shuup.customer_group_pricing.admin_form_part module¶
-
class
shuup.customer_group_pricing.admin_form_part.
CustomerGroupPricingForm
(**kwargs)[source]¶ Bases:
django.forms.forms.Form
-
base_fields
= OrderedDict()¶
-
declared_fields
= OrderedDict()¶
-
media
¶
-
-
class
shuup.customer_group_pricing.admin_form_part.
CustomerGroupDiscountForm
(**kwargs)[source]¶ Bases:
django.forms.forms.Form
-
base_fields
= OrderedDict()¶
-
declared_fields
= OrderedDict()¶
-
media
¶
-
-
class
shuup.customer_group_pricing.admin_form_part.
CustomerGroupPricingFormPart
(request, object=None)[source]¶ Bases:
shuup.admin.form_part.FormPart
-
priority
= 10¶
-
shuup.customer_group_pricing.models module¶
-
class
shuup.customer_group_pricing.models.
CgpBase
(*args, **kwargs)[source]¶ Bases:
django.db.models.base.Model
Parameters: - product (ForeignKey to
shuup.core.models.Product
) – Product - shop (ForeignKey to
shuup.core.models.Shop
) – Shop - group (ForeignKey to
shuup.core.models.ContactGroup
) – Contact group
-
product
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
-
shop
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
-
group
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
-
class
Meta
[source]¶ Bases:
object
-
abstract
= False¶
-
unique_together
= (('product', 'shop', 'group'),)¶
-
-
group_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
product_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
shop_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- product (ForeignKey to
-
class
shuup.customer_group_pricing.models.
CgpPrice
(id, product, shop, group, price_value)[source]¶ Bases:
shuup.utils.properties.MoneyPropped
,shuup.customer_group_pricing.models.CgpBase
Parameters: - id (AutoField) – Id
- product (ForeignKey to
shuup.core.models.Product
) – Product - shop (ForeignKey to
shuup.core.models.Shop
) – Shop - group (ForeignKey to
shuup.core.models.ContactGroup
) – Contact group - price_value (MoneyValueField) – Price
-
price
¶ Property for Price object.
Similar to
MoneyProperty
, but also hasincludes_tax
field.Operaters with
TaxfulPrice
andTaxlessPrice
objects.
-
price_value
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
group
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
objects
= <django.db.models.manager.Manager object>¶
-
product
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
-
shop
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
-
class
shuup.customer_group_pricing.models.
CgpDiscount
(id, product, shop, group, discount_amount_value)[source]¶ Bases:
shuup.utils.properties.MoneyPropped
,shuup.customer_group_pricing.models.CgpBase
Parameters: - id (AutoField) – Id
- product (ForeignKey to
shuup.core.models.Product
) – Product - shop (ForeignKey to
shuup.core.models.Shop
) – Shop - group (ForeignKey to
shuup.core.models.ContactGroup
) – Contact group - discount_amount_value (MoneyValueField) – Discount amount
-
discount_amount
¶ Property for Price object.
Similar to
MoneyProperty
, but also hasincludes_tax
field.Operaters with
TaxfulPrice
andTaxlessPrice
objects.
-
discount_amount_value
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
group
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
objects
= <django.db.models.manager.Manager object>¶
-
product
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
-
shop
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
shuup.customer_group_pricing.module module¶
-
class
shuup.customer_group_pricing.module.
CustomerGroupPricingModule
[source]¶ Bases:
shuup.core.pricing.PricingModule
-
identifier
= 'customer_group_pricing'¶
-
name
= 'Customer Group Pricing'¶
-
shuup.customer_group_pricing.signal_handers module¶
-
shuup.customer_group_pricing.signal_handers.
handle_cgp_discount_post_save
(sender, instance, **kwargs)[source]¶
-
shuup.customer_group_pricing.signal_handers.
handle_cgp_price_post_save
(sender, instance, **kwargs)[source]¶
Module contents¶
-
class
shuup.customer_group_pricing.
CustomerGroupPricingAppConfig
(*args, **kwargs)[source]¶ Bases:
shuup.apps.AppConfig
-
name
= 'shuup.customer_group_pricing'¶
-
verbose_name
= 'Shuup Customer Group Pricing'¶
-
label
= 'shuup_customer_group_pricing'¶
-
provides
= {'pricing_module': ['shuup.customer_group_pricing.module:CustomerGroupPricingModule'], 'discount_module': ['shuup.customer_group_pricing.module:CustomerGroupDiscountModule'], 'admin_product_form_part': ['shuup.customer_group_pricing.admin_form_part:CustomerGroupPricingFormPart', 'shuup.customer_group_pricing.admin_form_part:CustomerGroupPricingDiscountFormPart']}¶
-