Categories
CMS Magento Mastering Development

Magento 2 Hide Shipping Price on Checkout with Mixin

I have added a mixin for checkout shipping.js: requirejs-config.js var config = { config: { mixins: { ‘Magento_Checkout/js/view/shipping’: { ‘Vendor_Modulename/js/view/checkout/shipping’: true } } } }; shipping.js define([ ‘jquery’, ‘uiComponent’ ], function ($, Component) { ‘use strict’; var mixin = { defaults: { shippingMethodListTemplate: ‘Vendor_Modulename/checkout/shipping-address/shipping-method-list’, shippingMethodItemTemplate: ‘Vendor_Modulename/checkout/shipping-address/shipping-method-item’ }, canShowShippingPrice: function () { console.log(“CAN SHOW SHIPPING:”, false); […]