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
i want change this code to only check if the cart have items will show the shipping info (shipping) and if was empty no
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am