Configuration

The following configuration options are available

BASKY_AGE

Integer.

The timedelta at which baskets will be deleted by the management command.

Default value is settings.SESSION_COOKIE_AGE

BASKY_SESSION_KEY_NAME

String.

Defines the name of the key that will be used to attach the basket object to the session.

Default value is 'basket'

BASKY_MAX_ITEMS

Integer.

Defines a maximum amount of items that a basket can hold.

Default value is 9999999

BASKY_SINGLE_QUANTITY

Boolean

If set to True the basket will only allow a quantity of one on each item and will not add another product to the basket if it already exists.

Default value is False

BASKY_CACHE_PREFIX

String

The prefix for all of the cache keys used in the basket.

Default value is BASKY

BASKY_CACHE_TIMEOUT

Integer

The length of time the basky cache should live.

Default value is 0 - unlimited