1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Ecommerce / Customize Order Info Backend

Customize Order Info Backend

1 posts, 0 answered
  1. Will
    Will avatar
    0 posts
    Registered:
    25 Sep 2014
    28 Nov 2016
    Link to this post

    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);
            }
        }
    }

1 posts, 0 answered