Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2009
    Posts
    12
    Plugin Contributions
    0

    red flag 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?

  2. #2
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

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

  3. #3
    Join Date
    Feb 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: Added Russian Language and now having New Products doubled

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

 

 

Similar Threads

  1. added a new language and I get BOX_HEADING instead of text
    By usavape in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 10 Mar 2012, 01:51 PM
  2. Replies: 2
    Last Post: 25 Jan 2012, 10:56 PM
  3. Added gk language pack and now cart not showing!
    By barbs666 in forum Addon Language Packs
    Replies: 3
    Last Post: 9 Dec 2011, 04:34 AM
  4. Added new sidebox banner but has doubled up
    By annav in forum Customization from the Admin
    Replies: 1
    Last Post: 25 Oct 2010, 10:51 AM
  5. Added a new Mod to the Site and now it is not Functioning proberly
    By CoolCarPartsOnline in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 3 Aug 2008, 03:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR