Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Join Date
    Nov 2012
    Location
    Buenos Aires
    Posts
    35
    Plugin Contributions
    0

    Default Products listing new or featured on info page

    Hi,
    I need to display featured products or new products on product info page below product information.
    Can anyone help me with doing this? Not having any success in moving it.
    Thanks.
    http://giftseshop.com/

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

    Default Re: Products listing new or featured on info page

    Please try to answer the question from your other post:
    Go to the Tools ... Developers Tool Kit ... and in the bottom input box enter:
    <!-- bof: include centerboxes on product_info -->

    and select Catalog and click Search ...

    What comes up?
    This would really be of help to identify your problem and perhaps see what is happening or not happening ...

    Then, do a search on:
    <!--bof also purchased products module-->
    what comes up for that?
    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!]
    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
    Nov 2012
    Location
    Buenos Aires
    Posts
    35
    Plugin Contributions
    0

    Default Re: Products listing new or featured on info page

    <!--bof also purchased products module-->
    come:
    /home/content/58/7996358/html/includes/templates/template_default/templates/tpl_document_general_info_display.php
    -----------
    <!-- bof: include centerboxes on product_info -->
    Error: No matching Configuration Keys were found ...

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

    Default Re: Products listing new or featured on info page

    You are not using the code that I gave you in the previous thread if you found nothing in the Developers Tool Kit by entering into the bottom input box:

    then selecting Catalog and clicking search ...

    You should have in your templates and overrides file:
    /includes/template/your_template_dir/template/tpl_product_info_display.php

    the code in RED:
    Code:
    <!--bof also purchased products module-->
    <?php require($template->get_template_dir('tpl_modules_also_purchased_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_also_purchased_products.php');?>
    <!--eof also purchased products module-->
    
    <!-- bof: include centerboxes on product_info -->
    <div>
    <?php
    
    $new_products_category_id = $cPath;
    
    //// bof: categories
    $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_LISTING_BELOW);
    if ($error_categories == false and $show_display_category->RecordCount() > 0) {
    ?>
    
    <?php
      $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_LISTING_BELOW);
      while (!$show_display_category->EOF) {
    ?>
    
    <?php
        if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_LISTING_BELOW_FEATURED_PRODUCTS') { ?>
    <?php
    /**
     * display the Featured Products Center Box
     */
    ?>
    <?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
    <?php } ?>
    
    <?php
        if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_LISTING_BELOW_SPECIALS_PRODUCTS') { ?>
    <?php
    /**
     * display the Special Products Center Box
     */
    ?>
    <?php require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?>
    <?php } ?>
    
    <?php
        if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_LISTING_BELOW_NEW_PRODUCTS') { ?>
    <?php
    /**
     * display the New Products Center Box
     */
    ?>
    <?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?>
    <?php } ?>
    
    <?php
        if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_LISTING_BELOW_UPCOMING') {
          include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS));
        }
    ?>
    <?php
      $show_display_category->MoveNext();
      } // !EOF
    ?>
    
    <?php
    } //// eof: categories
    ?>
    
    </div>
    <!-- eof: include centerboxes on product_info -->
    

    From what you are telling us, you do not have this code added to your template and override file and upload on to your server ...
    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!]
    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!

  5. #5
    Join Date
    Nov 2012
    Location
    Buenos Aires
    Posts
    35
    Plugin Contributions
    0

    Default Re: Products listing new or featured on info page

    I did it, but not work, no change nothing.
    If I write the phrase in that place, then it is reflected correctly. But the code doesn’t work.
    I don’t know what happened.
    Should I install a zencart 5?

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

    Default Re: Products listing new or featured on info page

    Now let's check the settings on the display to see if we need to alter the code a little ...

    What settings do you have in the Configuration ... Index Listing ... for the following:
    Show New Products - below Product Listing
    Show New Products below Product Listing
    Show Featured Products - below Product Listing
    Show Featured Products below Product Listing
    Show Special Products - below Product Listing
    Show Special Products below Product Listing
    Show Upcoming Products - below Product Listing
    Show Upcoming Products below Product Listing
    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!]
    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!

  7. #7
    Join Date
    Nov 2012
    Location
    Buenos Aires
    Posts
    35
    Plugin Contributions
    0

    Default Re: Products listing new or featured on info page

    Yes, these settings work on the product listing. I turn them off them.
    These settings are not displayed on the info page.

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

    Default Re: Products listing new or featured on info page

    Okay now we need to customize the new code a little bit as those settings being OFF are why these do not show on your Product _info page ...

    If you want Featured Products to show, edit the code and add the additional code in RED:
    Code:
        if (true || $show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_LISTING_BELOW_FEATURED_PRODUCTS') { ?>
    If you want Specials to show, edit the code and add the additional code in RED:
    Code:
        if (true || $show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_LISTING_BELOW_SPECIALS_PRODUCTS') { ?>
    If you want New Products to show, edit the code and add the additional code in RED:
    Code:
        if (true || $show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_LISTING_BELOW_NEW_PRODUCTS') { ?>
    If you want Upcoming Products to show, edit the code and add the additional code in RED:
    Code:
        if (true || $show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_LISTING_BELOW_UPCOMING') {
    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!]
    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!

  9. #9
    Join Date
    Nov 2012
    Location
    Buenos Aires
    Posts
    35
    Plugin Contributions
    0

    Default Re: Products listing new or featured on info page

    End of the story!:))) They appeared on the info page, when I turned on.
    Now I just want to move them of product listing.
    I think; I'll just wipe of the code on product listing?

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

    Default Re: Products listing new or featured on info page

    No, I would not do that ...

    I would customize the code as I just posted and it will work on the product _info when these settings are turned OFF for the Product Listing ...
    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!]
    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!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Adding description to featured products on products listing page
    By khejit in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 14 Oct 2014, 12:28 PM
  2. Replies: 12
    Last Post: 31 Mar 2013, 04:18 PM
  3. New, or featured etc products to show at the bottom of a product listing
    By dgent in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 4 Jun 2010, 02:48 PM
  4. Turn off 'New Products' & 'Featured Products' in product listing.
    By miles in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 27 Jul 2009, 07:28 AM
  5. No info in lists of products - featured and new
    By mucklebas in forum Bug Reports
    Replies: 0
    Last Post: 10 Jun 2007, 04:03 PM

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