Zen Cart Logo
Forums / Addon Language Packs / Added Russian Language and now having New Products doubled

Added Russian Language and now having New Products doubled

Locked

Views: 2,201

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
12 Mar 2009, 8:07 PM
#1
alyona avatar

alyona

New Zenner

Join Date:
Feb 2009
Posts:
12
Plugin Contributions:
0

Added Russian Language and now having New Products doubled

You can check the link.
http://hollywood-travel.com/travel/

In a New Products [more] sidebox (in the left) some of my added products show doubled - one in English, one in Russian.
I tried many things: reinstalled language pack several times, reinstalled ZenCart several times. Doesn't matter. As long as I add second language New Product box will show some products doubled randomly.

On the other hand if I delete second language, everything goes to normal.

I tried also Dutch package to test, the same thing happens, doubles product.

Can anybody suggest anything?

28 Mar 2009, 6:12 PM
#2
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Added Russian Language and now having New Products doubled

new products sidebox is not language aware. to fix this .. give this a try .

override the file whats_new.php
located in includes / modules / sideboxs folder
change the following code by adding language session .

$random_whats_new_sidebox_product_query = "select p.products_id, p.products_image, p.products_tax_class_id, p.products_price, pd.products_name,
p.master_categories_id
from (" . TABLE_PRODUCTS . " p
left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id )
where p.products_id = pd.products_id
and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
and p.products_status = 1 " . $display_limit;

hope this helps.

2 Apr 2009, 11:46 PM
#3
alyona avatar

alyona

New Zenner

Join Date:
Feb 2009
Posts:
12
Plugin Contributions:
0

Re: Added Russian Language and now having New Products doubled

Thank you very much, this helped.
Thanks!!!