Skip to content

Commit 9523fd2

Browse files
author
Oleksii Korshenko
authored
MAGETWO-87934: Cast handling fee to float #13680
2 parents 94a9fab + 069dad6 commit 9523fd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Shipping/Model/Carrier/AbstractCarrier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ protected function _updateFreeMethodQuote($request)
454454
*/
455455
public function getFinalPriceWithHandlingFee($cost)
456456
{
457-
$handlingFee = $this->getConfigData('handling_fee');
457+
$handlingFee = (float)$this->getConfigData('handling_fee');
458458
$handlingType = $this->getConfigData('handling_type');
459459
if (!$handlingType) {
460460
$handlingType = self::HANDLING_TYPE_FIXED;

0 commit comments

Comments
 (0)