Skip to Content
author's profile photo Former Member
Former Member

CS Cockpit Customization widget not shown.

I get the following warn message when trying to display a custom widget in CS Cockpit:INFO [Thread-16] [AbstractWidgetContentBrowser] Widget with code 'voucherWidget' mapped but not available in layout template. Ignoring... Also my widget is not displayed in the CS Cockpit even thoug it is declared in the zul file. Does anybody know how to fix that? Any help whould be appreciated. Thank you.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 20, 2015 at 12:15 PM

    I guess you need to make entries in 3 files - one is the updated zul file in your extension , one is the widget.xml with the widget code and one is the web.xml where you override the browserarea and then a buildcall back needs to be done to ensure the zul file is copied to the cockpit extension

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 03, 2015 at 04:24 PM

    Steps To add a widget to Order browser ...May be this will help you to understand full flow

    Step1: Create testcscockpit-spring-widgets.xml file in the resource folder of testcscockpit extension. Step2: Make entry of testcscockpit-spring-widgets.xml in web.xml file as below. Step3: Add widget to CS Order browser bean of testcscockpit-web-spring.xml as below. Add below line in the CsOrderBrowser bean inside map tag

     <entry key="testOrderWidget" value     ref="testcscockpitOrderWidgetConfig"/>
         
    

    Step4: Adding Position of the widget Add below line in the CsOrderBrowser bean inside widgetFocusOrder tag. Main Column testOrderWidget

    Step5: Create testOrderLayout.zul in the below Directory /testcscockpit/templates/ Copy content from defaultOrderLayout.zul and add it to testOrderLayout.zul . Add below line in testOrderLayout.zul, inside div id csMainContent

    Step7: Creating renderer class for the Custom Test widget. Now we create a renderer class mentioned in custom widget . Renderer class extends OrderManagementActionsWidgetRenderer In renderer class we overrides createContentInternal method which returns HtmlBasedComponent component, which creates GUI. Class Name : TestOrderManagementActionsWidgetRenderer In the above renderer class custom button and action on those button is added.

    Step8: Build your extension by perfort clean all

    Step9: Start Hybris server and update your custom extension so added custom widget will get reflected inside order browser of the custom cscockpit.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 02, 2015 at 08:32 AM

    I want to customize the default behavior of CSCockpit BasketCartWidget. The default behavior shows like the following :

    FIred Promtoion | Consumed Cart Line iem | Potential Promotion

    Suppose for product A , 10 quantities are added and they qualify for multibuy promotion then all the cart items are shown in separate line items which overflows the cart. I want to group the consumed cart items and show the unconsumed ones separately.

    I need help with the touchpoints for this customization.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.