如何在 Shopware 6 中查找已付款的订单? (可以分期付款吗?)
在 Shopware 6 中查找全额付款订单的正确方法是什么?
我们正在使用这段代码:
$criteria = new Criteria();
$criteria->addFilter(new EqualsFilter('transactions.stateMachineState.technical_name', 'paid'));
...
$this->orderRepository->search($criteria, $context)->getEntities()
这似乎通常有效。但如果一个订单有多个交易怎么办?我相信这会发现仍然部分支付的交易。
一个订单可以有多个交易吗?如何在前端创建该案例?
What is the right way to find full-paid orders in Shopware 6?
We are using this code:
$criteria = new Criteria();
$criteria->addFilter(new EqualsFilter('transactions.stateMachineState.technical_name', 'paid'));
...
$this->orderRepository->search($criteria, $context)->getEntities()
This seems to work in general. But what if an order has multiple transactions? I believe this would find still partially paid transactions.
Can an orders even have multiple transactions? How would that case be created in the frontend?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有一种名为
paid_partially
的状态,因此它们不会成为paid
状态的一部分。可以部分付款,就像部分运输和部分付款一样。退款。但是,据我所知,在前端,没有默认的支付方式可以进行部分支付。您需要找到一个合适的插件才能在前端工作。There is a status called
paid_partially
, so they would not be part of thepaid
status. Partial payment are possible, just like partial shipping & refunding. However, as far as I know, on the frontend, there is no default payment method that can do partial payments. You will need to find a suitable plugin for this to work on the frontend.