It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
Thanks for the script and great work!

I've got however a feature request and a bug report:

· Feature: Could you please add comma separators to the shown values? (Yeah, I've spent much more than 1,000€ on GOG (and the Original Total Price is also over 10,000€) :P

· Bug: When summing over all pages of orders It seems as sometimes if the script doesn't wait for a new page to fully load and it repeats the same values from the previous page. In average it seems to happen with about 20% of the pages (i.e. if I had 10 pages of orders, 2 of them would be duplicates of 2 others). Could you make it so the script waits until a new page has been loaded before adding up the amounts?
Seems like the script really doesn't like gifts, on page 4 it says I spent 892$, so checked it out, turn out on that page actually I haven't spent anything it was all free stuff and some gifts.
avatar
juraj.obchod: Yeh, that is true.
Any idea how to fix it easily, please?

--------------

Thanks. Fixed.
--------------

New plugin version 1.5:
- fix, do not sum wallet funds, only game purchases, now
I did hardcode the exchange rate, but in theory it works like this:
function getConversion(index) {
currency = getCurrencySymbol(index);
conversion = 1.00;
if (currency == "€")
conversion = 1.16;
return conversion;
}
Probably you can get the accurate conversions from somewhere. Then you can simply call:
sum = sum + parseFloat(price || 0.0) * getConversion(index);
avatar
blotunga: Probably you can get the accurate conversions from somewhere.
Probably better and definitely simpler approach would be to have different totals per every encountered currency. Converting between currencies is too complex.
avatar
nooffence: Probably better and definitely simpler approach would be to have different totals per every encountered currency. Converting between currencies is too complex.
Why would it be, you just need GOG's exchange rate.
avatar
nooffence: Probably better and definitely simpler approach would be to have different totals per every encountered currency. Converting between currencies is too complex.
avatar
blotunga: Why would it be, you just need GOG's exchange rate.
Any idea where to get the GOG's exchange rate.
Or I can take exchange rate from some bank or so.
avatar
juraj.obchod: Any idea where to get the GOG's exchange rate.
Or I can take exchange rate from some bank or so.
That or maybe use the values from here but then you'd have to parse the thread. Otherwise maybe the guys like mrkgnao have an idea, magog keeps track of the regional prices somehow.
avatar
juraj.obchod: Any idea where to get the GOG's exchange rate.
Or I can take exchange rate from some bank or so.
avatar
blotunga: That or maybe use the values from here but then you'd have to parse the thread. Otherwise maybe the guys like mrkgnao have an idea, magog keeps track of the regional prices somehow.
I see exchange rate calculation is not easy here on GOG.
Sum every currency separately is better approach, I think.