Copied to clipboard

Flag this post as spam?

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


  • Gordon Saxby 1465 posts 1887 karma points
    Oct 07, 2024 @ 16:14
    Gordon Saxby
    1

    Add Bulk action to Umbraco Commerce

    I am trying to add a Bulk Action to Umbraco Commerce with Umbraco v13, as per https://docs.umbraco.com/umbraco-commerce/13.commerce.latest-lts/key-concepts/bulk-actions

    However, I am getting this error

    angular.js:99 Uncaught Error: [$injector:nomod] http://errors.angularjs.org/1.8.3/$injector/nomod?p0=umbracoCommerce
        at angular.js:99:1
        at angular.js:2331:17
        at b (angular.js:2252:38)
        at Object.module (angular.js:2329:14)
        at umbraco-commerce-bulk-actions-config.js?d=638639141800000000:1:9
    

    package.manifest:

    {
      "javascript": [
        "~/App_Plugins/nmmtBulkActions/js/umbraco-commerce-bulk-actions-config.js"
      ]
    }
    

    umbraco-commerce-bulk-actions-config.js

    angular.module('umbracoCommerce')
        .config(['umbracoCommerceActionsProvider', function (umbracoCommerceActionsProvider) {
            umbracoCommerceActionsProvider.bulkActions.push(['myResource', function (myResource) {
                return {
                    name: 'My Action',
                    icon: 'icon-box',
                    itemAction: function (bulkItem) {
                        return myResource.doAction(bulkItem.id);
                    },
                    condition: function (ctx) {
                        return ctx.entityType == 'Order'
                    },
                    sortOrder: 110
                }
            }]);
        }]);
    

    Any clues on how I make it work?

  • Jesse van Duijne 2 posts 72 karma points
    Oct 09, 2024 @ 08:31
    Jesse van Duijne
    0

    Encountered the same issue, opened an issue in Github for it: https://github.com/umbraco/Umbraco.Commerce.Issues/issues/563

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies