Customize Order Info Backend - Ecommerce - Ecommerce - Progress Community

Customize Order Info Backend

 Ecommerce

Customize Order Info Backend

  • Customize Order Info Backend
  • I'm trying to customize the product titles displayed on the Order Info screen in the backend.  I have created a new class that does nothing but extend from Telerik.Sitefinity.Modules.Ecommerce.Orders.Web.UI.Fields.OrderField and I have changed the OrdersBackendDetail field settings to use this new class.  After making this change and browsing to an order in the backend, none of the order details are showing up and there's an error in the javascript console on the page that says the following:

    ReferenceError: MyCompany is not defined

    MyCompany is the namespace my custom order field is in.  The error is occurring in the following javascript file:

    /Sitefinity/Dialog/ContentViewEditDialog?ControlDefinitionName=OrdersBackend&ViewName=OrdersBackendDetail

    If I override OnLoad and set a breakpoint I can see that it is using my class.

    What am I doing wrong?  I would expect that simply overriding the class already in use would at least continue to work.

     

    namespace MyCompany

        public class MyOrderField : Telerik.Sitefinity.Modules.Ecommerce.Orders.Web.UI.Fields.OrderField
        
            protected override void OnLoad(EventArgs e)
            
                base.OnLoad(e);