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

[CoreBundle] Fix the problem when none shipping method match the current user shipping address #808

Merged
merged 1 commit into from
Jan 9, 2014

Conversation

stloyd
Copy link
Contributor

@stloyd stloyd commented Jan 9, 2014

Also fix fixtures for countries

@stloyd
Copy link
Contributor Author

stloyd commented Jan 9, 2014

@pjedrzejewski I was not sure about what to use to show that message... Should it be directly in template (where current form should show-up) or in flash like right now?

'order' => $order,
'form' => $form->createView(),
'context' => $context,
'isZoneMatched' => null !== $this->zone,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we just check the length of the form in template? (if there is zero child forms, no method is available)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really, I tried to do check on those variables in template, but it ended always with rendering the
sylius - modern ecommerce for symfony2 2014-01-09 14-45-07

@stloyd
Copy link
Contributor Author

stloyd commented Jan 9, 2014

@pjedrzejewski Ok, I have changed the approach a bit and now I think it's better. It will redirect back to addressing with flash message if user address zone was not matched against shipping zones.

@ghost ghost assigned stloyd Jan 9, 2014
@stloyd
Copy link
Contributor Author

stloyd commented Jan 9, 2014

@pjedrzejewski It's ready to merge, the bug was fixed, aswell the Behat features now cover this bug too.

…ent user shipping address

Also fix fixtures for countries
pjedrzejewski pushed a commit that referenced this pull request Jan 9, 2014
[CoreBundle] Fix the problem when none shipping method match the current user shipping address
@pjedrzejewski pjedrzejewski merged commit c05357c into Sylius:master Jan 9, 2014
@pjedrzejewski
Copy link
Member

Perfect, thanks for figuring this out!

@stloyd stloyd deleted the bugfix/checkout_zone_matching branch January 9, 2014 21:29
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

Successfully merging this pull request may close these issues.

None yet

2 participants