We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Since #2511, the checkout requires a valid token, to complete the order.
We're struggling with two issues here:
Possible Solution: #2539 (comment)
Or migrate it:
protected function execute(InputInterface $input, OutputInterface $output): int { $listing = new CoreShopOrder\Listing(); $listing->setUnpublished(true); $listing->addConditionParam('token = "" OR token IS NULL'); $listing->addConditionParam(sprintf('saleState = "%s"', OrderSaleStates::STATE_CART )); foreach ($listing->getObjects() as $cart) { $token = $this->tokenGenerator->generate(10); $output->writeln(sprintf('<comment>Set missing token %s for cart %d', $token, $cart->getId())); $cart->setToken($token); $cart->save(); } return Command::SUCCESS; }
The text was updated successfully, but these errors were encountered:
@solverat a migration can be very heavy on the database. So I'd rather use the fallback approach, WDYT?
Sorry, something went wrong.
I'd prefer a migration anyway ;).
:D yes, probably a fallback would be smoother
follow up ticket for uniqueness check: #2546
dpfaffenbauer
No branches or pull requests
Since #2511, the checkout requires a valid token, to complete the order.
We're struggling with two issues here:
Possible Solution: #2539 (comment)
Or migrate it:
The text was updated successfully, but these errors were encountered: