如何在 Shopware 6 中查找已付款的订单? (可以分期付款吗?)

发布于 2025-01-13 05:35:15 字数 373 浏览 1 评论 0原文

在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情绪失控 2025-01-20 05:35:15

有一种名为 paid_partially 的状态,因此它们不会成为 paid 状态的一部分。可以部分付款,就像部分运输和部分付款一样。退款。但是,据我所知,在前端,没有默认的支付方式可以进行部分支付。您需要找到一个合适的插件才能在前端工作。

There is a status called paid_partially, so they would not be part of the paid 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文