Newer
Older
TillQliro / view / frontend / web / js / mixins / shipping.js
@Jonas Jonsson Jonas Jonsson on 2 Apr 2024 426 bytes Initial
/**
 * Copyright © Qliro AB. All rights reserved.
 * See LICENSE.txt for license details.
 *
 * Remove template rendering for this component
 */

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

    return function (shippingFunction) {
        var result = {};
        if (window.checkoutConfig.qliro.enabled) {
            result = {defaults: {template: ''}};
        }
        return shippingFunction.extend(result);
    }
});