git.cweiske.de
/
stouyapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4240f98
)
Generate priceInCents in products because "God of Blades" needs it
author
Christian Weiske
<cweiske@cweiske.de>
Sat, 25 Jan 2020 13:54:29 +0000
(14:54 +0100)
committer
Christian Weiske
<cweiske@cweiske.de>
Sat, 25 Jan 2020 13:54:29 +0000
(14:54 +0100)
bin/import-game-data.php
patch
|
blob
|
history
diff --git
a/bin/import-game-data.php
b/bin/import-game-data.php
index e9626383954589bcbcfc330521fefd1f67eae44b..260773383e18d812cb26764d7773d3722dd691b4 100755
(executable)
--- 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,
];