I am modifying the google base feed for my needs. Default Google base module doesn't include the language selection.
What langugage the feed will be, if there is more than one language?
How to define the feed language?
Using oc 1.4.9.5
What langugage the feed will be, if there is more than one language?
How to define the feed language?
Using oc 1.4.9.5
Last edited by guntis.e on Thu Sep 01, 2011 2:18 am, edited 2 times in total.
Guntis
Partneris.lv - opencart web site development and support
thanks, Simon. Can you also tell how to specify the language for the feed?
Guntis
Partneris.lv - opencart web site development and support
Not 100% on this, but a cookie is set in the main store with:
name = language
value = en
or value = lv (for your store when the Latvian flag is clicked)
How you would get that to work with the feed, I am unsure, would need to test.
name = language
value = en
or value = lv (for your store when the Latvian flag is clicked)
How you would get that to work with the feed, I am unsure, would need to test.
cookie is not an option, because the feed is used by another e-commerce site for product import and there must be a way to set the language programmatically, not from the user interface.
the google base feed calls the
public function getProducts()
which has query containing
is there an easy way to set this to the language i need without changing default language?
the google base feed calls the
public function getProducts()
which has query containing
Code: Select all
...WHERE pd.language_id = '" . (int)$this->config->get('config_language_id')....
Guntis
Partneris.lv - opencart web site development and support
looks like this is solving my problem:
Code: Select all
$this->config->set('config_language_id', 2);
Guntis
Partneris.lv - opencart web site development and support
Which you could pass in the $_GET params for the feed link and retrieve as such
$this->config->set('config_language_id', $this->request->get['lang_id']);
$this->config->set('config_language_id', $this->request->get['lang_id']);
thank you Simon again. Thats very good suggestion
Guntis
Partneris.lv - opencart web site development and support
Who is online
Users browsing this forum: No registered users and 2 guests