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
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
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
Payment via [Vendr Checkout] Zero Value
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
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.
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:
App_Plugins\Vendr\Config\foobar.analytics.dashboard.config.js
to override the dashboard config.App_Plugins\VendrExtensions\
App_Plugins\VendrExtensions\backoffice\js\analytics.controller.js
App_Plugins\VendrExtensions\backoffice\views\analytics\widgets\
App_Plugins\VendrExtensions\package.manifest
package manifest:
is working on a reply...