Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    Dec 2011
    Posts
    11
    Plugin Contributions
    0

    Default How do i get new products and featured products centerboxes on product info page?

    I am trying to get the new products and featured products centerboxes to show up on the product info page.

    i thought if i pasted this code it would work...

    <?php require($template->get_template_dir('tpl_modules_products_featured_listing.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_products_featured_listing.php'); ?>


    <?php require($template->get_template_dir('tpl_modules_products_new_listing.php
    ',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_products_new_listing.php
    '); ?>
    but all i get is the names of the two php files and this
    "More featured products will be added soon. Please check back later."

    why doesnt this work?
    Last edited by phillycheese123; 30 Dec 2012 at 02:13 AM.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: How do i get new products and featured products centerboxes on product info page?

    admin > config > index listing
    Zen-Venom Get Bitten

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

    Default Re: How do i get new products and featured products centerboxes on product info page?

    A quick method to make the Centerboxes show on the product_info page in the same manner that they would show when on the immediate Category of the Products Listing would be to add, using your templates and overrides, to the bottom of your file:
    /includes/templates/your_template_dir/templates/tpl_product_info_display.php

    Code:
    <!-- 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 -->
    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!

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

    Default Re: How do i get new products and featured products centerboxes on product info page?

    Ajeh, I did, but unfortunately it doesn’t work.

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

    Default Re: How do i get new products and featured products centerboxes on product info page?

    Go to the Configuration ... Index Listing ...

    What are your settings for:
    Show New Products - below Product Listing
    Show Featured Products - below Product Listing
    Show Special 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!

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

    Default Re: How do i get new products and featured products centerboxes on product info page?

    One problem: This is not something that asks.
    You are talking about this page http://giftseshop.com/knitting-patte...n-c-30_31.html
    and the question about this page
    http://giftseshop.com/knitting-patte...-35-p-149.html

 

 

Similar Threads

  1. Replies: 0
    Last Post: 5 Feb 2013, 10:08 AM
  2. Help with New Products and Featured Products on Home Page
    By AirsoftOutfitter in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 Mar 2010, 01:28 AM
  3. Replies: 3
    Last Post: 16 Nov 2007, 01:40 AM
  4. 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
  5. How do I get New, All, Featured, and Info menus in the header?
    By Robert T in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 2 Jul 2006, 07:33 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