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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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 18 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply