Generate priceInCents in products because "God of Blades" needs it
authorChristian Weiske <cweiske@cweiske.de>
Sat, 25 Jan 2020 13:54:29 +0000 (14:54 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Sat, 25 Jan 2020 13:54:29 +0000 (14:54 +0100)
bin/import-game-data.php

index e962638..2607733 100755 (executable)
@@ -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,
     ];