@@ -965,6 +965,7 @@ public function collectShippingRates()
965
965
966
966
/**
967
967
* Request shipping rates for entire address or specified address item
968
+ *
968
969
* Returns true if current selected shipping method code corresponds to one of the found rates
969
970
*
970
971
* @param \Magento\Quote\Model\Quote\Item\AbstractItem $item
@@ -1002,7 +1003,7 @@ public function requestShippingRates(\Magento\Quote\Model\Quote\Item\AbstractIte
1002
1003
/**
1003
1004
* Store and website identifiers specified from StoreManager
1004
1005
*/
1005
- $ request ->setStoreId ($ this ->storeManager ->getStore ()->getId ());
1006
+ $ request ->setStoreId ($ this ->getQuote ()-> getStoreId () ?? $ this -> storeManager ->getStore ()->getId ());
1006
1007
$ request ->setWebsiteId ($ this ->storeManager ->getWebsite ()->getId ());
1007
1008
$ request ->setFreeShipping ($ this ->getFreeShipping ());
1008
1009
/**
@@ -1348,31 +1349,31 @@ public function getAllBaseTotalAmounts()
1348
1349
/******************************* End Total Collector Interface *******************************************/
1349
1350
1350
1351
/**
1351
- * { @inheritdoc}
1352
+ * @inheritdoc
1352
1353
*/
1353
1354
protected function _getValidationRulesBeforeSave ()
1354
1355
{
1355
1356
return $ this ->validator ;
1356
1357
}
1357
1358
1358
1359
/**
1359
- * { @inheritdoc}
1360
+ * @inheritdoc
1360
1361
*/
1361
1362
public function getCountryId ()
1362
1363
{
1363
1364
return $ this ->getData (self ::KEY_COUNTRY_ID );
1364
1365
}
1365
1366
1366
1367
/**
1367
- * { @inheritdoc}
1368
+ * @inheritdoc
1368
1369
*/
1369
1370
public function setCountryId ($ countryId )
1370
1371
{
1371
1372
return $ this ->setData (self ::KEY_COUNTRY_ID , $ countryId );
1372
1373
}
1373
1374
1374
1375
/**
1375
- * { @inheritdoc}
1376
+ * @inheritdoc
1376
1377
*/
1377
1378
public function getStreet ()
1378
1379
{
@@ -1381,207 +1382,207 @@ public function getStreet()
1381
1382
}
1382
1383
1383
1384
/**
1384
- * { @inheritdoc}
1385
+ * @inheritdoc
1385
1386
*/
1386
1387
public function setStreet ($ street )
1387
1388
{
1388
1389
return $ this ->setData (self ::KEY_STREET , $ street );
1389
1390
}
1390
1391
1391
1392
/**
1392
- * { @inheritdoc}
1393
+ * @inheritdoc
1393
1394
*/
1394
1395
public function getCompany ()
1395
1396
{
1396
1397
return $ this ->getData (self ::KEY_COMPANY );
1397
1398
}
1398
1399
1399
1400
/**
1400
- * { @inheritdoc}
1401
+ * @inheritdoc
1401
1402
*/
1402
1403
public function setCompany ($ company )
1403
1404
{
1404
1405
return $ this ->setData (self ::KEY_COMPANY , $ company );
1405
1406
}
1406
1407
1407
1408
/**
1408
- * { @inheritdoc}
1409
+ * @inheritdoc
1409
1410
*/
1410
1411
public function getTelephone ()
1411
1412
{
1412
1413
return $ this ->getData (self ::KEY_TELEPHONE );
1413
1414
}
1414
1415
1415
1416
/**
1416
- * { @inheritdoc}
1417
+ * @inheritdoc
1417
1418
*/
1418
1419
public function setTelephone ($ telephone )
1419
1420
{
1420
1421
return $ this ->setData (self ::KEY_TELEPHONE , $ telephone );
1421
1422
}
1422
1423
1423
1424
/**
1424
- * { @inheritdoc}
1425
+ * @inheritdoc
1425
1426
*/
1426
1427
public function getFax ()
1427
1428
{
1428
1429
return $ this ->getData (self ::KEY_FAX );
1429
1430
}
1430
1431
1431
1432
/**
1432
- * { @inheritdoc}
1433
+ * @inheritdoc
1433
1434
*/
1434
1435
public function setFax ($ fax )
1435
1436
{
1436
1437
return $ this ->setData (self ::KEY_FAX , $ fax );
1437
1438
}
1438
1439
1439
1440
/**
1440
- * { @inheritdoc}
1441
+ * @inheritdoc
1441
1442
*/
1442
1443
public function getPostcode ()
1443
1444
{
1444
1445
return $ this ->getData (self ::KEY_POSTCODE );
1445
1446
}
1446
1447
1447
1448
/**
1448
- * { @inheritdoc}
1449
+ * @inheritdoc
1449
1450
*/
1450
1451
public function setPostcode ($ postcode )
1451
1452
{
1452
1453
return $ this ->setData (self ::KEY_POSTCODE , $ postcode );
1453
1454
}
1454
1455
1455
1456
/**
1456
- * { @inheritdoc}
1457
+ * @inheritdoc
1457
1458
*/
1458
1459
public function getCity ()
1459
1460
{
1460
1461
return $ this ->getData (self ::KEY_CITY );
1461
1462
}
1462
1463
1463
1464
/**
1464
- * { @inheritdoc}
1465
+ * @inheritdoc
1465
1466
*/
1466
1467
public function setCity ($ city )
1467
1468
{
1468
1469
return $ this ->setData (self ::KEY_CITY , $ city );
1469
1470
}
1470
1471
1471
1472
/**
1472
- * { @inheritdoc}
1473
+ * @inheritdoc
1473
1474
*/
1474
1475
public function getFirstname ()
1475
1476
{
1476
1477
return $ this ->getData (self ::KEY_FIRSTNAME );
1477
1478
}
1478
1479
1479
1480
/**
1480
- * { @inheritdoc}
1481
+ * @inheritdoc
1481
1482
*/
1482
1483
public function setFirstname ($ firstname )
1483
1484
{
1484
1485
return $ this ->setData (self ::KEY_FIRSTNAME , $ firstname );
1485
1486
}
1486
1487
1487
1488
/**
1488
- * { @inheritdoc}
1489
+ * @inheritdoc
1489
1490
*/
1490
1491
public function getLastname ()
1491
1492
{
1492
1493
return $ this ->getData (self ::KEY_LASTNAME );
1493
1494
}
1494
1495
1495
1496
/**
1496
- * { @inheritdoc}
1497
+ * @inheritdoc
1497
1498
*/
1498
1499
public function setLastname ($ lastname )
1499
1500
{
1500
1501
return $ this ->setData (self ::KEY_LASTNAME , $ lastname );
1501
1502
}
1502
1503
1503
1504
/**
1504
- * { @inheritdoc}
1505
+ * @inheritdoc
1505
1506
*/
1506
1507
public function getMiddlename ()
1507
1508
{
1508
1509
return $ this ->getData (self ::KEY_MIDDLENAME );
1509
1510
}
1510
1511
1511
1512
/**
1512
- * { @inheritdoc}
1513
+ * @inheritdoc
1513
1514
*/
1514
1515
public function setMiddlename ($ middlename )
1515
1516
{
1516
1517
return $ this ->setData (self ::KEY_MIDDLENAME , $ middlename );
1517
1518
}
1518
1519
1519
1520
/**
1520
- * { @inheritdoc}
1521
+ * @inheritdoc
1521
1522
*/
1522
1523
public function getPrefix ()
1523
1524
{
1524
1525
return $ this ->getData (self ::KEY_PREFIX );
1525
1526
}
1526
1527
1527
1528
/**
1528
- * { @inheritdoc}
1529
+ * @inheritdoc
1529
1530
*/
1530
1531
public function setPrefix ($ prefix )
1531
1532
{
1532
1533
return $ this ->setData (self ::KEY_PREFIX , $ prefix );
1533
1534
}
1534
1535
1535
1536
/**
1536
- * { @inheritdoc}
1537
+ * @inheritdoc
1537
1538
*/
1538
1539
public function getSuffix ()
1539
1540
{
1540
1541
return $ this ->getData (self ::KEY_SUFFIX );
1541
1542
}
1542
1543
1543
1544
/**
1544
- * { @inheritdoc}
1545
+ * @inheritdoc
1545
1546
*/
1546
1547
public function setSuffix ($ suffix )
1547
1548
{
1548
1549
return $ this ->setData (self ::KEY_SUFFIX , $ suffix );
1549
1550
}
1550
1551
1551
1552
/**
1552
- * { @inheritdoc}
1553
+ * @inheritdoc
1553
1554
*/
1554
1555
public function getVatId ()
1555
1556
{
1556
1557
return $ this ->getData (self ::KEY_VAT_ID );
1557
1558
}
1558
1559
1559
1560
/**
1560
- * { @inheritdoc}
1561
+ * @inheritdoc
1561
1562
*/
1562
1563
public function setVatId ($ vatId )
1563
1564
{
1564
1565
return $ this ->setData (self ::KEY_VAT_ID , $ vatId );
1565
1566
}
1566
1567
1567
1568
/**
1568
- * { @inheritdoc}
1569
+ * @inheritdoc
1569
1570
*/
1570
1571
public function getCustomerId ()
1571
1572
{
1572
1573
return $ this ->getData (self ::KEY_CUSTOMER_ID );
1573
1574
}
1574
1575
1575
1576
/**
1576
- * { @inheritdoc}
1577
+ * @inheritdoc
1577
1578
*/
1578
1579
public function setCustomerId ($ customerId )
1579
1580
{
1580
1581
return $ this ->setData (self ::KEY_CUSTOMER_ID , $ customerId );
1581
1582
}
1582
1583
1583
1584
/**
1584
- * { @inheritdoc}
1585
+ * @inheritdoc
1585
1586
*/
1586
1587
public function getEmail ()
1587
1588
{
@@ -1594,63 +1595,63 @@ public function getEmail()
1594
1595
}
1595
1596
1596
1597
/**
1597
- * { @inheritdoc}
1598
+ * @inheritdoc
1598
1599
*/
1599
1600
public function setEmail ($ email )
1600
1601
{
1601
1602
return $ this ->setData (self ::KEY_EMAIL , $ email );
1602
1603
}
1603
1604
1604
1605
/**
1605
- * { @inheritdoc}
1606
+ * @inheritdoc
1606
1607
*/
1607
1608
public function setRegion ($ region )
1608
1609
{
1609
1610
return $ this ->setData (self ::KEY_REGION , $ region );
1610
1611
}
1611
1612
1612
1613
/**
1613
- * { @inheritdoc}
1614
+ * @inheritdoc
1614
1615
*/
1615
1616
public function setRegionId ($ regionId )
1616
1617
{
1617
1618
return $ this ->setData (self ::KEY_REGION_ID , $ regionId );
1618
1619
}
1619
1620
1620
1621
/**
1621
- * { @inheritdoc}
1622
+ * @inheritdoc
1622
1623
*/
1623
1624
public function setRegionCode ($ regionCode )
1624
1625
{
1625
1626
return $ this ->setData (self ::KEY_REGION_CODE , $ regionCode );
1626
1627
}
1627
1628
1628
1629
/**
1629
- * { @inheritdoc}
1630
+ * @inheritdoc
1630
1631
*/
1631
1632
public function getSameAsBilling ()
1632
1633
{
1633
1634
return $ this ->getData (self ::SAME_AS_BILLING );
1634
1635
}
1635
1636
1636
1637
/**
1637
- * { @inheritdoc}
1638
+ * @inheritdoc
1638
1639
*/
1639
1640
public function setSameAsBilling ($ sameAsBilling )
1640
1641
{
1641
1642
return $ this ->setData (self ::SAME_AS_BILLING , $ sameAsBilling );
1642
1643
}
1643
1644
1644
1645
/**
1645
- * { @inheritdoc}
1646
+ * @inheritdoc
1646
1647
*/
1647
1648
public function getCustomerAddressId ()
1648
1649
{
1649
1650
return $ this ->getData (self ::CUSTOMER_ADDRESS_ID );
1650
1651
}
1651
1652
1652
1653
/**
1653
- * { @inheritdoc}
1654
+ * @inheritdoc
1654
1655
*/
1655
1656
public function setCustomerAddressId ($ customerAddressId )
1656
1657
{
@@ -1681,20 +1682,15 @@ public function setSaveInAddressBook($saveInAddressBook)
1681
1682
//@codeCoverageIgnoreEnd
1682
1683
1683
1684
/**
1684
- * {@inheritdoc}
1685
- *
1686
- * @return \Magento\Quote\Api\Data\AddressExtensionInterface|null
1685
+ * @inheritdoc
1687
1686
*/
1688
1687
public function getExtensionAttributes ()
1689
1688
{
1690
1689
return $ this ->_getExtensionAttributes ();
1691
1690
}
1692
1691
1693
1692
/**
1694
- * {@inheritdoc}
1695
- *
1696
- * @param \Magento\Quote\Api\Data\AddressExtensionInterface $extensionAttributes
1697
- * @return $this
1693
+ * @inheritdoc
1698
1694
*/
1699
1695
public function setExtensionAttributes (\Magento \Quote \Api \Data \AddressExtensionInterface $ extensionAttributes )
1700
1696
{
@@ -1712,7 +1708,7 @@ public function getShippingMethod()
1712
1708
}
1713
1709
1714
1710
/**
1715
- * { @inheritdoc}
1711
+ * @inheritdoc
1716
1712
*/
1717
1713
protected function getCustomAttributesCodes ()
1718
1714
{
0 commit comments