Skip to content

Commit 8d739a3

Browse files
authored
Merge pull request #6 from cesargb/fix_shipping_price
Refactor shipping price with new property
2 parents d8a09b2 + 045d3f9 commit 8d739a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Google/Merchant/Services/Products/Transformer/ProductTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ private static function offer($productData): ?float
8080

8181
private static function shippingCost($productData): float
8282
{
83-
$price = (float)($productData['extra']['data']['lowest_shipping_cost'] ?? 0) * 1.21;
83+
$price = $productData['shipping_details']['price_with_tax'] ?? 0;
8484

8585
return (float)number_format($price, 2, '.', '');
8686
}

0 commit comments

Comments
 (0)