Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • anh-duc-le 38 posts 152 karma points
    Feb 03, 2023 @ 14:00
    anh-duc-le
    0

    Extending the Analytics view with more custom data queries

    Is it possible to exend this view with extra data queries?

    Our client wants to see statistics for orders where for example

    • the checkout price was Payment via [Vendr Checkout] Zero Value
    • the customer filled in companyName property on the billing info.

    I was going to make a custom umbraco dashboard, but I figured it would be wise to check whether it is also possible to just extend this existing view with extra data queries

    enter image description here

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Feb 03, 2023 @ 14:19
    Matt Brailsford
    100

    Yes you can.

    In App_Plugins\Vendr\config\analytics.dashboard.config.js you can add entries to your own angular widgets to display in the dashboard.

    It's up to you to implement the widget though so you'd need to be comfortable with angular js.

  • anh-duc-le 38 posts 152 karma points
    Feb 06, 2023 @ 12:06
    anh-duc-le
    2

    Is there also a way to extend the App_Plugins\Vendr\package.manifest with extra javascript registrations? Is there something similar for the manifest file, like with how the analytics dashboard config can be overridden by adding a file {my-proj-name}.analytics.dashboard.config.js?

    Edit: Made it work using the following setup:

    • Added the following config file App_Plugins\Vendr\Config\foobar.analytics.dashboard.config.js to override the dashboard config.
    • Added a new folder App_Plugins\VendrExtensions\
      • Added my controller extension like App_Plugins\VendrExtensions\backoffice\js\analytics.controller.js
      • Added my widget views under App_Plugins\VendrExtensions\backoffice\views\analytics\widgets\
      • Added package manifest under App_Plugins\VendrExtensions\package.manifest

    package manifest:

    json 
    {
        "javascript": [
            "~/App_Plugins/VendrExtensions/backoffice/js/analytics.controllers.js"
        ]
    }
    
Please Sign in or register to post replies

Write your reply to:

Draft