Models¶
-
class
shopkit.stock.simple.models.StockedCartItemMixin¶ Bases:
shopkit.stock.models.StockedItemBase,shopkit.stock.models.StockedCartItemBaseMixin class for CartItem‘s containing items for which stock is kept.
-
class
shopkit.stock.simple.models.StockedCartMixin¶ Bases:
shopkit.stock.models.StockedCartBaseMixin class for Cart‘s containing items for which stock is kept.
-
class
shopkit.stock.simple.models.StockedItemMixin(*args, **kwargs)¶ Bases:
django.db.models.base.Model,shopkit.stock.models.StockedItemBaseItem with a simple stock selection mechanism: the possible options for the available stock field signify certain stock states, some of which correspond to an item being orderable.
This could be associated with a Product, a Variation or some other property that pertains to the specific state of
CartItemBasesubclasses.-
is_available(quantity=None)¶ Method used to determine whether or not the current item is in an orderable state.
-
-
class
shopkit.stock.simple.models.StockedOrderItemMixin¶ Bases:
shopkit.stock.models.StockedItemBase,shopkit.stock.models.StockedOrderItemBaseMixin class for OrderItem‘s containing items for which stock is kept.
-
class
shopkit.stock.simple.models.StockedOrderMixin¶ Bases:
shopkit.stock.models.StockedOrderBaseMixin class for Order‘s containing items for which stock is kept.