Skip to content

Commit

Permalink
Fix last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
johnfraney committed Oct 5, 2014
1 parent 07fa886 commit 5cc0731
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shop_simplevariations/cart_modifier.py
Expand Up @@ -16,7 +16,7 @@ def process_cart_item(self, cart_item, request):
for selected_opt in selected_options:
option_obj = selected_opt.option
price = option_obj.price * cart_item.quantity
data = ('%s: "%s"' % (text_opt.text_option.name,text_opt.text), price)
data = ('%s: "%s"' % (option_obj.group.name, option_obj.name), price)
# Don't forget to update the running total!
cart_item.current_total = cart_item.current_total + price
cart_item.extra_price_fields.append(data)
Expand All @@ -32,7 +32,7 @@ def process_cart_item(self, cart_item, request):
text_options = CartItemTextOption.objects.filter(cartitem=cart_item)
for text_opt in text_options:
price = text_opt.text_option.price
data = ('%s: "%s"' % (text_opt.text_option.name,text_opt.text), price)
data = ('%s: "%s"' % (text_opt.text_option.name, text_opt.text), price)
# Don't forget to update the running total!
cart_item.current_total = cart_item.current_total + price
#Append to the cart_item's list now.
Expand Down

0 comments on commit 5cc0731

Please sign in to comment.