-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Make it possible to have no shipping methods for Order fixtures #10489
Make it possible to have no shipping methods for Order fixtures #10489
Conversation
|
||
for ($i = 0; $i < $numberOfItems; ++$i) { | ||
/** @var OrderItemInterface $item */ | ||
$item = $this->orderItemFactory->createNew(); | ||
|
||
$product = $this->faker->randomElement($products); | ||
$variant = $this->faker->randomElement($product->getVariants()->toArray()); | ||
$variant->setShippingRequired($shippingMethodsAvailable); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Later, we should improve these fixtures and allow for configuration from yaml file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I improve the issue description and we keep it open or should I create a new issue for making it configurable?
And welcome to our contributors :) |
Co-Authored-By: Łukasz Chruściel <lchrusciel@gmail.com>
Thank you, Pascal! 🎉 |
…rder fixtures" (lchrusciel) This PR was merged into the 1.4 branch. Discussion ---------- Reverts #10489 Ref. 608546b#r34204877 Commits ------- ed1f72f Revert "Make it possible to have no shipping methods for Order fixtures"
Currently it's not possible to have fixture suites with no shipping methods (a.k.a. virtual shipping only). This PR makes it possible.