From: Christian Weiske Date: Sat, 25 Jan 2020 13:54:29 +0000 (+0100) Subject: Generate priceInCents in products because "God of Blades" needs it X-Git-Tag: v1.0.0~6 X-Git-Url: https://git.cweiske.de/stouyapi.git/commitdiff_plain/640eb314fdea7fa2eb9e66d00e8cae785a6cd218 Generate priceInCents in products because "God of Blades" needs it --- diff --git a/bin/import-game-data.php b/bin/import-game-data.php index e962638..2607733 100755 --- a/bin/import-game-data.php +++ b/bin/import-game-data.php @@ -386,6 +386,7 @@ function buildProduct($product) 'description' => $product->description ?? '', 'localPrice' => $product->localPrice, 'originalPrice' => $product->originalPrice, + 'priceInCents' => $product->originalPrice * 100, 'percentOff' => 0, 'currency' => $product->currency, ];