下单后付款/不同订单状态
我正在建立一个 drupal 商务网站,我希望有一个功能可以让管理员处理订单并更改订单状态,然后用户收到一个电子邮件链接,将他重定向到付款页面。八个 drupal commerce 或 ubercart 可能实现这样的事情吗?
注意:uc_payafter 在 7.x 中不起作用
Im setting up a drupal commerce website and i would like the functionality to let an admin handle an order and change the order status, then the user recieves an email link which redirects him to the payment page. Is such a thing possible with eighter drupal commerce or ubercart?
Note: uc_payafter does not work in 7.x
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您可以结合使用 Drupal Commerce 和规则,或许还可以进行一些调整来做到这一点。
据我了解,您的场景是这样的:
商务部管理员已编辑订单状态。然后,您可以在发送付款电子邮件的规则中捕获该事件。最大的挑战将是干预结帐过程,阻止用户下订单后立即付款。
为此,您必须创建两个新的订单状态。有关以下信息,请参阅 http://www.drupalcommerce.org/faq/order-states如何做到这一点。我们将这些状态称为“等待批准”和“已批准”。
其余的应该更容易,不涉及编码:
创建一个页面,通知用户他的订单将很快得到审核和批准。
创建一个页面
创建规则来注入我们的新状态:
创建规则以阻止用户结帐:
现在,当用户尝试结账时,订单会被标记为等待批准,并且用户会被引导到信息页面。管理员现在可以自由编辑订单并将其状态更改为“已批准”。我会推荐:
创建所有处于等待批准状态的订单的视图,包括“编辑”链接。
然后,要完成该过程:
创建一条规则,通知用户其订单已获批准付款:
创建允许用户付款的规则:
从这里开始,结帐过程将照常进行,直至完成。
请注意,如果用户在任何时候在结帐过程中点击“取消”,订单将恢复为购物车状态,并且需要管理员再次批准。如果您不希望这种情况发生,您可以将“取消”链接主题设置为优雅的“消失”。
I think you can do this with a combination of Drupal Commerce and Rules and perhaps some tweaking.
As I understand it, your scenario goes like this:
Commerce already the admin edit the order's status. You can then catch that event in a Rule that sends out the payment email. The greatest challenge will be intervening in the checkout process, to stop the user from paying right after placing his order.
For this, you'll have to create two new Order Statuses. See http://www.drupalcommerce.org/faq/order-states for information on how to do that. Let's call these statuses "Awaiting Approval" and "Approved".
The rest should be easier, with no coding involved:
Create a page informing the user that his order will be reviewed and approved soon.
Create a Rule to inject our new status:
Create a Rule to prevent the user going to checkout:
Now when the user tries to check out, the order gets marked as Awaiting Approval, and the user gets shunted to the information page. The admin is now free to edit the order and change its status to Approved. I would recommend:
Create a view of all orders in Awaiting Approval status, including "edit" links.
Then, to complete the process:
Create a Rule informing the user his order was approved for payment:
Create a Rule allowing the user to pay:
From here, the checkout process will proceed as usual until it's done.
Note that if at any point, the user hits "Cancel" on the checkout process, the order will revert to Shopping Cart status and will need to be approved again by the admin. If you don't want this happening, you can theme the "cancel" link to elegantly "disappear".