Skip to content

Commit 58d4492

Browse files
committed
there is some changes in django-shop
now need send state param in all cart modifiers (from 27 July)
1 parent bbe5e9d commit 58d4492

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shop_simplevariations/cart_modifier.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class ProductOptionsModifier(BaseCartModifier):
77
This modifier adds an extra field to the cart to let the lineitem "know"
88
about product options and their respective price.
99
'''
10-
def process_cart_item(self, cart_item):
10+
def process_cart_item(self, cart_item, state):
1111
'''
1212
This adds a list of price modifiers depending on the product options
1313
the client selected for the current cart_item (if any)
@@ -28,7 +28,7 @@ class TextOptionsModifier(BaseCartModifier):
2828
This price modifier appends all the text options it finds in the database for
2929
a given cart item to the item's extra_price_fields.
3030
"""
31-
def process_cart_item(self, cart_item):
31+
def process_cart_item(self, cart_item, state):
3232
text_options = CartItemTextOption.objects.filter(cartitem=cart_item)
3333
for text_opt in text_options:
3434
price = text_opt.text_option.price

0 commit comments

Comments
 (0)