0

I am new in Magento and i am trying to add a special validation in the checkout page of magento2. for that, I created one more tab in checkout page. I need to show that custom tab only when cart product contains a special attribute like prescription for that, I fetch product details in the custom tab. how can I check this in js page.

initialize: function () {
            this._super();
           //fetch cart items
            var items = quote.getItems();
            console.log(items);
          //How to check teese product conatins attribute prescription
            // register your step
            stepNavigator.registerStep(
                this.stepCode,

                null,
                this.stepTitle,

                this.isVisible,

                _.bind(this.navigate, this),


                15
            );

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.