Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Google base


 Share

Recommended Posts

Решил освоить Гугл мерчант.

Все нормально выгрузилось, только есть непонятки. Через расширенный сервис проверки проверяю все нормально отображается, но выгружается, икое ощуещёние что рублевые этоны переводит в доллары. Приходится через сервис замены атрибутов умножать на коэффициент. Скажите может у кого есть нормальный файл google base или кто знает как править?

Спойлер

$currencies = array(
                            'RUB',
                            'USD',
                            'EUR',
                            'GBP'
                        );

                        if (in_array($this->session->data['currency'], $currencies)) {
                            $currency_code = $this->session->data['currency'];
                            $currency_value = $this->currency->getValue($this->session->data['currency']);
                        } else {
                            $currency_code = 'USD';
                            $currency_value = $this->currency->getValue('USD');
                        }

                        if ((float)$product['special']) {
                            $output .= '  <g:price>' .  $this->currency->format($this->tax->calculate($product['special'], $product['tax_class_id']), $currency_code, $currency_value, false) . '</g:price>';
                        } else {
                            $output .= '  <g:price>' . $this->currency->format($this->tax->calculate($product['price'], $product['tax_class_id']), $currency_code, $currency_value, false) . '</g:price>';
                        }

 

Link to comment
Share on other sites


Згдесь

4 часа назад, slava088 сказал:

                            $currency_code = 'USD';
                            $currency_value = $this->currency->getValue('USD');

 

замените USD на RUB. Чтобы было вот ик:

$currency_code = 'RUB';
$currency_value = $this->currency->getValue('RUB');

 

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.