Page 1 of 1

2.3.0.2. - Google Base feed generates prices without currency

Posted: Mon Jul 29, 2019 9:12 pm
by bhy
Hello, I am using the default Google Base product feed included with OC 2.3.0.2. The default currency (and the only one used) is CZK - Czech koruna.
The feed only displays the price as a number without decimal places or the currency code (i.e. <g:price>659</g:price>). This is not accepted by Google.
I tried appending the currency info to the feed URL like this: https://www.bio-krasa.cz/index.php?rout ... rrency=CZK
This doesn't help and prices are still without currency (or the decimal places).
I also tried adding 'CZK' to the array of currencies in catalog/controller/extension/feed/google_base.php but that doesn't change anything either (no matter if I append the currency info to the URL or not).
Is there any better solution than hardcoding the currency?
Thank you very much
Petr Břeň

Re: 2.3.0.2. - Google Base feed generates prices without currency

Posted: Tue Aug 06, 2019 10:42 pm
by bhy
Since I didn't find a more elegant solution, I just changed both occurrences of '</g:price>' to '.00 CZK </g:price>' in the aforementioned file. The feed is in correct format now. (Of course, the downside is that I can't use any other currencies in my shop, but in my case that's not a problem.)