Skip to content

Commit

Permalink
Merge pull request #34 from ErhanCitil/issue/local-variable-shipping-…
Browse files Browse the repository at this point in the history
…price

🐛 [#33] Set shipping_price outside the if statement
  • Loading branch information
ErhanCitil committed Nov 8, 2023
2 parents d2c0a82 + b8d25b4 commit bf4b95b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bobvance/base/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ def get(self, request, *args, **kwargs):
[product.price * cart[str(product.id)] for product in cart_items]
)

shipping_price = 25
if total_price <= 500:
shipping_price = 25
total_price += shipping_price

context = {
Expand Down

0 comments on commit bf4b95b

Please sign in to comment.