Commit 44988772 authored by Skia's avatar Skia

Small fix on counters

parent f600e174
Pipeline #54 failed with stage
in 44 seconds
......@@ -154,7 +154,8 @@ class CounterClick(DetailView):
def add_product(self, request, q = 1, p=None):
""" Add a product to the basket """
pid = p or str(request.POST['product_id'])
pid = p or request.POST['product_id']
pid = str(pid)
price = self.get_price(pid)
total = self.sum_basket(request)
if self.customer.amount < (total + q*float(price)):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment