Post by georgekaf » Wed Sep 14, 2011 2:53 am

In the versions after 1.4.9.6 there is a problem with other languages than english.

When we are in the product grid/list and try to change the store's language, the products' description don't change.

The problem is located in catalog\model\catalog\product.php at " public function getProducts($data = array()) { "

The following lines

Code: Select all

$product_data = $this->cache->get('product.' . $cache . '.' . $customer_group_id);

Code: Select all

$this->cache->set('product.' . $cache . '.' . $customer_group_id, $product_data);
Should be changed to:

Code: Select all

$product_data = $this->cache->get('product.' . $cache . '.' . $customer_group_id.'.'.$this->config->get('config_language_id'));

Code: Select all

$this->cache->set('product.' . $cache . '.' . $customer_group_id.'.'.$this->config->get('config_language_id'), $product_data);
In order to include the $this->config->get('config_language_id') parameter and correct any language related problems.
Last edited by georgekaf on Fri Nov 11, 2011 6:03 am, edited 1 time in total.

New member

Posts

Joined
Fri Jun 17, 2011 10:46 pm

Post by i2Paq » Wed Sep 14, 2011 5:50 am

This was a bug in early 1.5.x releases and fixed in the current 1.5.1.x.

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by georgekaf » Wed Sep 14, 2011 4:22 pm

I don't know about 1.5.1.2 but in 1.5.1.1 there was still present.

New member

Posts

Joined
Fri Jun 17, 2011 10:46 pm

Post by sekmo » Fri Nov 11, 2011 1:41 am

A BIG THANK FOR THIS SOLUTION! :) :) :) :)

User avatar
Newbie

Posts

Joined
Mon Sep 26, 2011 9:50 pm

Post by georgekaf » Fri Nov 11, 2011 6:05 am

sekmo wrote:A BIG THANK FOR THIS SOLUTION! :) :) :) :)
:)

New member

Posts

Joined
Fri Jun 17, 2011 10:46 pm
Who is online

Users browsing this forum: No registered users and 3 guests