We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb27ac2 commit 10f880cCopy full SHA for 10f880c
app/code/Magento/Checkout/view/frontend/web/js/view/shipping-information.js
@@ -29,8 +29,15 @@ define([
29
*/
30
getShippingMethodTitle: function () {
31
var shippingMethod = quote.shippingMethod();
32
+ var shippingMethodTitle = '';
33
- return shippingMethod ? shippingMethod['carrier_title'] + ' - ' + shippingMethod['method_title'] : '';
34
+ if (typeof shippingMethod['method_title'] !== 'undefined') {
35
+ shippingMethodTitle = ' - ' + shippingMethod['method_title'];
36
+ }
37
+
38
+ return shippingMethod ? shippingMethod['carrier_title'] + shippingMethodTitle : shippingMethod['carrier_title'];
39
40
+ //return shippingMethod ? shippingMethod['carrier_title'] + ' - ' + shippingMethod['method_title'] : '';
41
},
42
43
/**
0 commit comments