Models

class shopkit.stock.simple.models.StockedCartItemMixin

Bases: shopkit.stock.models.StockedItemBase, shopkit.stock.models.StockedCartItemBase

Mixin class for CartItem‘s containing items for which stock is kept.

class shopkit.stock.simple.models.StockedCartMixin

Bases: shopkit.stock.models.StockedCartBase

Mixin 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.StockedItemBase

Item 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 CartItemBase subclasses.

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.StockedOrderItemBase

Mixin class for OrderItem‘s containing items for which stock is kept.

class shopkit.stock.simple.models.StockedOrderMixin

Bases: shopkit.stock.models.StockedOrderBase

Mixin class for Order‘s containing items for which stock is kept.