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

Set shipment state to onhold before process payment. #1063

Merged
merged 1 commit into from
Feb 17, 2014

Conversation

kayue
Copy link
Contributor

@kayue kayue commented Feb 17, 2014

See: https://github.com/Sylius/Sylius/wiki/Status

In the "Checkout finished (not paid)" step, shipment state should be changed to "onhold".

@@ -93,8 +107,7 @@ public function updateShipmentStatesReady(GenericEvent $event)
{
$this->shippingProcessor->updateShipmentStates(
$this->getOrder($event)->getShipments(),
ShipmentInterface::STATE_READY,
ShipmentInterface::STATE_CHECKOUT
ShipmentInterface::STATE_READY
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed the ShipmentInterface::STATE_CHECKOUT because shipment state might change from STATE_ONHOLD to STATE_READY.

@stloyd stloyd added this to the 1.0.0-BETA1 milestone Feb 17, 2014
@kayue
Copy link
Contributor Author

kayue commented Feb 17, 2014

/cc @winzou the Sylius state expert.

@winzou
Copy link
Contributor

winzou commented Feb 17, 2014

+1!

pjedrzejewski pushed a commit that referenced this pull request Feb 17, 2014
Set shipment state to onhold before process payment.
@pjedrzejewski pjedrzejewski merged commit 3d4a1ac into Sylius:master Feb 17, 2014
@pjedrzejewski
Copy link
Member

Thanks Ka Yue!

@kayue kayue deleted the patch/order-shipping-state branch July 29, 2014 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants