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
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
@property def shipping (self): shipping = False orderitems = self.orderitem_set.all() for i in orderitems: if i.product.digital == False: shipping = True return shipping
will show the shipping info (shipping) and if was empty no
showing that
this code in django
@property def shipping (self): shipping = False orderitems = self.orderitem_set.all() for i in orderitems: if i.product.digital == False: shipping = True return shipping