Post by bhy » Mon Jul 29, 2019 9:12 pm

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ň

bhy
New member

Posts

Joined
Fri Jul 17, 2015 7:28 pm

Post by bhy » Tue Aug 06, 2019 10:42 pm

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.)

bhy
New member

Posts

Joined
Fri Jul 17, 2015 7:28 pm
Who is online

Users browsing this forum: No registered users and 41 guests