Kwf.onContentReady(function() {
    Ext.select('.kwcForm', true).each(function(form) {
        form.kwcForm.on('submitSuccess', function(r) {
            Ext.select('.kwcShopBoxCartLink').each(function(el) {
                var url = '/kwf/util/kwc/render';
                if (Kwf.Debug.rootFilename) url = Kwf.Debug.rootFilename + url;
                Ext.Ajax.request({
                    params: { componentId: el.dom.id },
                    url: url,
                    success: function(response, options) {
                        this.replaceWith({ html: response.responseText });
                        Kwf.callOnContentReady();
                    },
                    scope: el
                });

            }, this);
        }, this);
    });
});

Kwf.onContentReady(function() {
    Ext.select('.kwcForm', true).each(function(form) {
        if (form.shopBoxCartInitDone) return;
        form.shopBoxCartInitDone = true;
        form.kwcForm.on('submitSuccess', function(r) {
            Ext.select('.kwcShopBoxCartLink').each(function(el) {
                var url = '/kwf/util/kwc/render';
                if (Kwf.Debug.rootFilename) url = Kwf.Debug.rootFilename + url;
                Ext.Ajax.request({
                    params: { componentId: el.dom.id },
                    url: url,
                    success: function(response, options) {
                        this.replaceWith({ html: response.responseText });
                        Kwf.callOnContentReady();
                    },
                    scope: el
                });

            }, this);
        }, this);
    });
});

initialize only once