<reponame>okfish/django-oscar-shipping<filename>oscar_shipping/defaults.py
# -*- coding: utf-8 -*-
from decimal import Decimal as D

OSCAR_SHIPPING_WEIGHT_PRECISION = D('0.000')

OSCAR_SHIPPING_VOLUME_PRECISION = D('0.000') 

# per product defaults
# 0.1m x 0.1m x 0.1m
OSCAR_SHIPPING_DEFAULT_BOX = {'width': float('0.1'),
                              'height': float('0.1'),
                              'length': float('0.1')}

# 1 Kg 
OSCAR_SHIPPING_DEFAULT_WEIGHT = 1 

# basket volume * VOLUME_RATIO = estimated container(s) volume
# very simple method
OSCAR_SHIPPING_VOLUME_RATIO = D('1.3')

# default city of origin to calculate shipping cost via APIs
OSCAR_SHIPPING_DEFAULT_ORIGIN = u'Санкт-Петербург'

OSCAR_SHIPPING_API_ENABLED = ['pecom', 'emspost']

# Workaround for javascripted form fields (such as KLADR) which should be cleaned before, e.g. "г. Москва" -> "Москва"
OSCAR_CITY_PREFIX_SEPARATOR = '. '

# for black and white lists packed in TextField
OSCAR_SHIPPING_LIST_SEPARATOR = ';'

# allow users to choose city of destination manually if no code found during calculation
OSCAR_SHIPPING_CHANGE_DESTINATION = True

# is method available or not if no destination's code found for charge calculation
OSCAR_SHIPPING_IF_NOT_FOUND = True
# -*- coding: utf-8 -*-
from decimal import Decimal as D

OSCAR_SHIPPING_WEIGHT_PRECISION = D('0.000')

OSCAR_SHIPPING_VOLUME_PRECISION = D('0.000') 

# per product defaults
# 0.1m x 0.1m x 0.1m
OSCAR_SHIPPING_DEFAULT_BOX = {'width': float('0.1'),
                              'height': float('0.1'),
                              'length': float('0.1')}

# 1 Kg 
OSCAR_SHIPPING_DEFAULT_WEIGHT = 1 

# basket volume * VOLUME_RATIO = estimated container(s) volume
# very simple method
OSCAR_SHIPPING_VOLUME_RATIO = D('1.3')

# default city of origin to calculate shipping cost via APIs
OSCAR_SHIPPING_DEFAULT_ORIGIN = u'Санкт-Петербург'

OSCAR_SHIPPING_API_ENABLED = ['pecom', 'emspost']

# Workaround for javascripted form fields (such as KLADR) which should be cleaned before, e.g. "г. Москва" -> "Москва"
OSCAR_CITY_PREFIX_SEPARATOR = '. '

# for black and white lists packed in TextField
OSCAR_SHIPPING_LIST_SEPARATOR = ';'

# allow users to choose city of destination manually if no code found during calculation
OSCAR_SHIPPING_CHANGE_DESTINATION = True

# is method available or not if no destination's code found for charge calculation
OSCAR_SHIPPING_IF_NOT_FOUND = True
# -*- coding: utf-8 -*- # per product defaults # 0.1m x 0.1m x 0.1m # 1 Kg # basket volume * VOLUME_RATIO = estimated container(s) volume # very simple method # default city of origin to calculate shipping cost via APIs # Workaround for javascripted form fields (such as KLADR) which should be cleaned before, e.g. "г. Москва" -> "Москва" # for black and white lists packed in TextField # allow users to choose city of destination manually if no code found during calculation # is method available or not if no destination's code found for charge calculation