-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add a coupon in my order? #38
Comments
@zedin27 Could you share some code that would let me reproduce your issue? Everything you need to do from |
@Gamagori sure thing. I knew what was my mistake after realizing I missed one tiny line in the code. I forgot to have an
Error message:
You can remove |
@zedin27 I see what's going on - this is a code issue, not a usage issue. In the You should be able to fix this locally by changing that line to |
I made a PR for that specifically. Let me know when it is all good :). Thank you! |
That still wont work as menu.coupons just returns a list of the coupon objects... |
I tried to use one of the coupons from the list. In this case, I'm using the coupon number 9175 which is "Any Large Specialty Pizza". The number is supposed to retrieve the product code; but, in the function,
add_coupon
from the object classOrder
saysmissing 1 required positional argument: 'code'
What am I missing in here?
The text was updated successfully, but these errors were encountered: