2

I have recently check my site in IE browser and notice there are no display the product block in order summary block. I added 2 custom attribute in order summary block which is work good in chrome, safari, and other browser issue are only with IE 11.

enter image description here

Can anyone help to please.

Thanks.

7

1 Answer 1

1
+50

As per our discussion, your JS file content should be like this:

/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

define([
    'uiComponent'
], function (Component) {
    'use strict';

    return Component.extend({
        defaults: {
            template: 'Magento_Checkout/summary/item/details'
        },
        /**
         * @param {Object} quoteItem
         * @return {String}
         */

        quoteItemData: function () {
            return window.checkoutConfig.quoteItemData;
        },
        getValue: function(quoteItem) {
            return quoteItem.name;
        },
        getItemTag: function(quoteItem) {
            var itemProduct = this.getItemProduct(quoteItem.item_id);
            return itemProduct.new;
        },
        getItemProduct: function(item_id) {
            var itemElement = null;
            _.each(this.quoteItemData, function(element, index) {
                if (element.item_id == item_id) {
                    itemElement = element;
                }
            });
            return itemElement;
        }
    });
});

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.