-
Notifications
You must be signed in to change notification settings - Fork 83
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
Shipping address default #42
Comments
Add PR #43 |
Hi I agree that some way to create Orders from the wagtail admin is required. This can either be by:
For now, a work around would be to create an address manually in the django shell:: from longclaw.longclawshipping.models import Address
address = Address(name='test', line_1='test', city='test', postcode='test', country='test')
address.save() The address will then be available in the wagtail admin. To implement unit tests, you can submit a blank address in the request data, something like:
data = {
'address': {
'shipping_name': '',
'shipping_address_line_1': '',
'shipping_address_city': '',
'shipping_address_zip': '',
'shipping_address_country': '',
'billing_name': '',
'billing_address_line_1': '',
'billing_address_city': '',
'billing_address_zip': '',
'billing_address_country': ''
},
'email': 'test@test.com',
'shipping_rate': 0
}
self.client.post(reverse('checkout'), data) |
Add to default SHIPPING ADDRESS - Goods shall be shipped to the Buyer on Ex–warehouse delivery terms.
The problem is that the shipping address field is mandatory. If there is not a single field, then it's impossible to create an order.
Adding an address will solve the problem of creating test orders.
The text was updated successfully, but these errors were encountered: