Skip to content

Instantly share code, notes, and snippets.

@eserge
eserge / modifiers.py
Created September 23, 2011 16:45
Example cart modifier for django-shop
# -*- coding: utf-8 -*-
import decimal
from django.conf import settings
from shop.cart.cart_modifiers_base import BaseCartModifier
class FixedShippingCosts(BaseCartModifier):
# """
# This will add a fixed amount of money for shipping costs.
# """