Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2010
    Posts
    10
    Plugin Contributions
    0

    Default Recently Viewed Items Addon Sidebox Showing the Same Product Twice in two languages

    I have just installed the Recently Viewed Items add-on. (i'm using version 1.3.8)
    I am using both english and french for my site. After clicking on the product, the sidebox will show the same product twice, in both english and french. Does anyone know how to change the codes in order for it to show the product just once (in the language chosen)?

    Is this a problem similar to the one under New Products sideboxes where it shows the same product twice in two languages? I searched the forum for a fix which worked for me for the New Products sidebox but I can't seem to find a fix for the above, please help.

    Thank you!

  2. #2
    Join Date
    Feb 2010
    Posts
    10
    Plugin Contributions
    0

    Default Re: Recently Viewed Items Sidebox Showing the Same Product Twice in two languages

    Help?? ideas anyone??

  3. #3
    Join Date
    Jul 2007
    Posts
    110
    Plugin Contributions
    0

    Default Re: Recently Viewed Items Addon Sidebox Showing the Same Product Twice in two languag

    Hi,
    you can use this post to solve. I had same problems and used the fix for new products.
    http://www.zen-cart.com/forum/showpo...0&postcount=26

    Copy and paste the 2 last rows or the whole query to your recent_products.php (includes/modules/sideboxes/yourtemplate) so it looks like this:
    Code:
     
      $recent_products_query = "select p.products_id, p.products_image
           from " . TABLE_PRODUCTS . " as p, " . TABLE_PRODUCTS_DESCRIPTION . " as pd "
         . $sub_query ."
         and p.products_id = pd.products_id
         and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
         and p.products_status = 1 " . $display_limit;
    If you paste the 2 last rows to your existing query dont forget to move the ; from pd.products_id to the end of the query instead.

  4. #4

    Default Re: Recently Viewed Items Addon Sidebox Showing the Same Product Twice in two languag

    Hello,
    I have the same problem because I have 5 languages I have the Item 5 times what is not very good looking.
    Can view here
    http://www.bid77.com/shop/index.php?...ex&language=en

    I tried a lot with your code but I can not make it working,
    here is one example what does "NOT" work.


    Someone has an idea how this could work??
    THX


    <?php
    /**
    * Side Box Template
    * includes/templates/templates_default/sideboxes/tpl_recent.php
    *
    */
    $content = "";
    while(!$recent_products->EOF){

    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
    $content .= '<a href="' . zen_href_link(zen_get_info_page($recent_products->fields["products_id"]), 'products_id=' . $recent_products->fields["products_id"]) . '">' . zen_image(DIR_WS_IMAGES . $recent_products->fields['products_image'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br />' . $recent_products->fields['products_name'] . '<br />' ;
    $content .= '</div>';
    $recent_products->MoveNext();

    and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
    and p.products_status = 1 " . $display_limit;

    }
    ?>

  5. #5
    Join Date
    Jun 2010
    Location
    London
    Posts
    39
    Plugin Contributions
    0

    Default Re: Recently Viewed Items Addon Sidebox Showing the Same Product Twice in two languag

    Hi . I have installed the recently viewed module and it shows the recently viewed item in sidebox but I would like to have it underneath the product info page.. I have added the following code in my tpl_product_info_display.php page but it does not show anything

    <!--bof recent products module-->
    <?php require($template->get_template_dir ('tpl_modules_recent_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates') . '/tpl_modules_recent_products.php'); ?>
    <!--eof recent products module-->


    Any suggestion would be so appreciated

  6. #6
    Join Date
    Jun 2011
    Posts
    5
    Plugin Contributions
    0

    help question Re: Recently Viewed Items Addon Sidebox Showing the Same Product Twice in two languag

    Hi, I have the same problem as Fariba, the recently viewed items are not showing underneath the product page!!!!

    Here is the address:

    http://transfervideotodvd.co.uk/

    I would appreciate if any one could help!

  7. #7
    Join Date
    Nov 2011
    Posts
    34
    Plugin Contributions
    0

    Default Re: Recently Viewed Items Addon Sidebox Showing the Same Product Twice in two languag

    i confirm, includes\modules\sideboxes\recent_products.php is not working, any ideas?

 

 

Similar Threads

  1. Recently Viewed Items v2.3 - Possible Bug
    By marcopolo in forum Addon Sideboxes
    Replies: 0
    Last Post: 16 Oct 2015, 08:42 PM
  2. Recently Viewed Items - Customers Getting lost :o(
    By philip937 in forum Addon Sideboxes
    Replies: 2
    Last Post: 9 Sep 2012, 03:41 PM
  3. Problems with Recently Viewed Items addon
    By philip937 in forum All Other Contributions/Addons
    Replies: 33
    Last Post: 19 Aug 2012, 09:48 PM
  4. v139h Recently Viewed Items Centerbox fixed? (1.3.9h)
    By Hell Guapo in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 19 Jun 2012, 12:01 AM
  5. Recently viewed sidebox
    By sjk1000 in forum Addon Sideboxes
    Replies: 13
    Last Post: 27 Dec 2009, 08:16 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