Results 1 to 9 of 9
  1. #1
    Join Date
    Apr 2009
    Location
    Katowice, Poland
    Posts
    9
    Plugin Contributions
    0

    Default New products on main page - language problem

    Hi,
    I've problem with displaing new product on main page.
    I'm getting both polish and english descriptions displayed for the same products.
    The forum is great and I've found solutions for the same case in products_new sidebox, and products_new listing, but can't find help in that point.

    My site: http://fotoobrazy.immago.pl

    I've instaled:
    -ZenCart 1.3.8
    - template 12541
    - polish localization
    - column_layout_grid_for_product_listing_1-3-8.zip
    - ultimate_seo_urls_2-107.zip
    - zen_lightbox_1-5.zip

    I'll appreciate any help.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: New products on main page - language problem

    You might run through the Known Bug Fixes for v1.3.8 ...
    http://www.zen-cart.com/forum/showthread.php?p=697924
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Apr 2009
    Location
    Katowice, Poland
    Posts
    9
    Plugin Contributions
    0

    Default Re: New products on main page - language problem

    Thank you, Ajeh

    I've looked throught Bug Fixes and there is nothing about "new product on main page".

    As I wrote, I've found solution for What's New sidebox on forum earlier. I used the fix also for New Products listing.
    But new products on main page seems to be programmed differently.

    I can't cope with that

    Please, help!
    I can't even find the file responsible for the bug

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,155
    Plugin Contributions
    11

    Default Re: New products on main page - language problem

    Welcome to the not-so-wonderful world of Template Monster.

    You may find some help by googling the template number here in the forum.

    It's going to take someone who can see the core files to fix the problem.

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: New products on main page - language problem

    Turn off the SEO stuff ... does that help?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Apr 2009
    Location
    Katowice, Poland
    Posts
    9
    Plugin Contributions
    0

    Default Re: New products on main page - language problem

    Quote Originally Posted by dbltoe View Post
    Welcome to the not-so-wonderful world of Template Monster.
    Yop, it's not so wonderfull


    Quote Originally Posted by Ajeh View Post
    Turn off the SEO stuff ... does that help?
    Multilanguage new products where present before instalation of SEO.

    But...
    Classic template is free of this problem.
    So, I've copied modules/new_products.php from template_default to MY_TEMPLATE_DIR and problem solved

    Worse, that in 12541 template there is possibility to change positions of name, image, description, etc in admin and now everything is set in php file. Styling also is not so good.
    But I'll try to merge files to display data as in 12541 but functions of classic leaving intact.
    I'll let you know if I get positive efects.

    Thank you for assistance :)
    You are great!

  7. #7
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,155
    Plugin Contributions
    11

    Default Re: New products on main page - language problem

    Get yourself a copy of winmerge. It will help you look at the differences for each file.

  8. #8
    Join Date
    Apr 2009
    Location
    Katowice, Poland
    Posts
    9
    Plugin Contributions
    0

    Default Re: New products on main page - language problem

    Quote Originally Posted by dbltoe View Post
    Get yourself a copy of winmerge. It will help you look at the differences for each file.
    yes, downloaded and instaled

  9. #9
    Join Date
    Apr 2009
    Location
    Katowice, Poland
    Posts
    9
    Plugin Contributions
    0

    Default Re: New products on main page - language problem

    OK, here it is:

    in /includes/modules/12541/new_products.php
    I've added the same code as in WHAT'S NEW sidebox (http://www.zen-cart.com/forum/showpo...0&postcount=26)

    Code:
    if ( (!isset($new_products_category_id)) || ($new_products_category_id == '0') ) {
    $new_products_query = "select p.products_id, p.products_image, p.products_tax_class_id, p.products_price, p.products_date_added, pd.products_description
    from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id 
     and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
    where p.products_status = 1 " . $display_limit;
    
    } else {
    
    $new_products_query = "select distinct p.products_id, p.products_image, p.products_tax_class_id, p.products_date_added, pd.products_description,                                            p.products_price from " . TABLE_PRODUCTS . " p   left join " . 
    TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id 
     and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
    
    left join " . TABLE_SPECIALS . " s
    on p.products_id = s.products_id, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " .
    
    TABLE_CATEGORIES . " c
    
    where p.products_id = p2c.products_id
    and p2c.categories_id = c.categories_id
    and c.parent_id = '" . (int)$new_products_category_id . "'
    and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
    and p.products_status = 1 " . $display_limit;
    
    }
    It works for me

 

 

Similar Threads

  1. v139h Main Page: "New" Products - turn off clickable link and DISPLAY new products
    By lissa in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 28 Sep 2014, 02:20 AM
  2. v139g how to remove duplicate products from new products listed in main page
    By amruta2104 in forum General Questions
    Replies: 1
    Last Post: 7 Aug 2012, 03:16 PM
  3. Main Page, Slimbox, and New Products Flash problem...
    By khopek in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 15 Feb 2009, 01:44 AM
  4. New Products on main page looks more like random products
    By DavidVitazka in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 12 Feb 2009, 04:49 AM
  5. Problem with new products listing on main page! HELP
    By megamatica in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 29 May 2008, 05:30 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