简体   繁体   English

将订单分配给VirtoCommerce中的客户服务代表

[英]Assign an order to a customer service rep in VirtoCommerce

I'd like to assign each order to a customer service rep (CSR). 我想将每个订单分配给客户服务代表(CSR)。 That CSR will then be responsible to confirm any payment details, oversee shipment and answer any questions from the customer. 然后,该CSR将负责确认任何付款明细,监督发货并回答客户的任何问题。 Questions: 问题:

  • How do I do that in VirtoCommerce? 我该如何在VirtoCommerce中做到这一点?
  • Is there a way to do that automatically? 有没有一种方法可以自动执行此操作?
  • Is there a way for CSR to see orders assigned just to him personally? CSR是否有办法查看仅分配给他的订单?

CustomerOrder domain model has a properties EmployeeId and EmployeeName you may use it to store information about order responsible. CustomerOrder域模型具有EmployeeIdEmployeeName属性,您可以使用它来存储有关负责订单的信息。

VC expose multiple extension points and one of them is a Events http://docs.virtocommerce.com/display/vc2devguide/Extending+using+events . VC公开了多个扩展点,其中一个是事件http://docs.virtocommerce.com/display/vc2devguide/Extending+using+events In you custom module you should subscribe to OrderChange event 在自定义模块中,您应该订阅OrderChange事件

        //Subscribe to cart changes. Register in avalara  SalesInvoice transaction 
        _container.RegisterType<IObserver<OrderChangeEvent>, OrderTaxAdjustmentObserver>("PlacedOrderObserver");

And inside you event handler implement order responsible assignment logic. 并且在您内部的事件处理程序中实现顺序负责的分配逻辑。

To implement auto-assignment functionality you should create new module (any of VС extension should be only in custom modules to preventing merging hell on updates) 要实现自动分配功能,您应该创建新模块(VС扩展名中的任何扩展名都应仅位于自定义模块中,以防止在更新时合并地狱)

Concerning to assigned to UI and filtration we added issue in github https://github.com/VirtoCommerce/vc-platform/issues/559 because it is the overall order functionality and it should included in Order.Module and should be realized our team. 关于分配给 UI和过滤,我们在github https://github.com/VirtoCommerce/vc-platform/issues/559中添加了问题,因为它是整体订单功能,应该包含在Order.Module中,应该实现我们的团队。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM