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 e9626383954589bcbcfc330521fefd1f67eae44b..260773383e18d812cb26764d7773d3722dd691b4 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,
     ];