Skip to content
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

Use default shipping address instead custom form in view #148

Open
SalahAdDin opened this issue Aug 20, 2016 · 0 comments
Open

Use default shipping address instead custom form in view #148

SalahAdDin opened this issue Aug 20, 2016 · 0 comments

Comments

@SalahAdDin
Copy link

SalahAdDin commented Aug 20, 2016

Hi guys, i'm testing this package and use the full pay flow feature.

Making the Payment Detail View i can see that use a shipping address form, like if the user haven't select a shipping address before.

I think that will be better get default shipping address by default, and show these form in case user haven't a default shipping address; but, if user haven't a default shipping address, the first payment step requires full address form, so, put here a shipping address form hasn't reason to be.

We can get the user billing address and know if default:
UserAddress.objects.get(user=request.user).is_default_for_billing.

I see that is the billing address, not the shipping address. But, you can check if the user have a billing address first and put the form if billing address doesn't exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant