Page 1 of 1

i want change this code to only check if the cart have items will show the shipping info (shipping) and if was empty no

Posted: Mon Jun 06, 2022 5:10 pm
by answerhappygod
i want change this code to only check if the cart have items
will show the shipping info (shipping) and if was empty no
showing that
this code in django
I Want Change This Code To Only Check If The Cart Have Items Will Show The Shipping Info Shipping And If Was Empty No 1
I Want Change This Code To Only Check If The Cart Have Items Will Show The Shipping Info Shipping And If Was Empty No 1 (8.99 KiB) Viewed 20 times
@property def shipping (self): shipping = False orderitems = self.orderitem_set.all() for i in orderitems: if i.product.digital == False: shipping = True return shipping