Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Oct 2007
    Posts
    289
    Plugin Contributions
    0

    Default Featured Listings on top - Categories Page

    Hi,

    I'm trying to place featured listings above the default product listings on categories page, but no luck so far.

    I tried placing the following code:


    Code:
      <?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') { ?>
    ...to the top of tpl_index_product_list.php at line 16, just above <div class="centerColumn" id="indexProductList"> but it won't display featured products at all.

    Any help appreciated. Thanks!
    [FONT=Microsoft Sans Serif]CSS Evangelist[/FONT]

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Featured Listings on top - Categories Page

    Did you enable the Featured centerbox from with the admin settings?
    Admin->Configuration->Index Listing
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Oct 2007
    Posts
    289
    Plugin Contributions
    0

    Default Re: Featured Listings on top - Categories Page

    I think Yes:

    Show Featured Products on Main Page - Category with SubCategories 1
    Show Featured Products on Main Page - Errors and Missing Products Page 3
    Show Featured Products - below Product Listing 1
    [FONT=Microsoft Sans Serif]CSS Evangelist[/FONT]

  4. #4
    Join Date
    Oct 2007
    Posts
    289
    Plugin Contributions
    0

    Default Re: Featured Listings on top - Categories Page

    Featured box does display fine, I just want it ABOVE the normal listings, not BELOW.


    Thanks.
    [FONT=Microsoft Sans Serif]CSS Evangelist[/FONT]

  5. #5
    Join Date
    Oct 2007
    Posts
    289
    Plugin Contributions
    0

    Default Re: Featured Listings on top - Categories Page

    Any other ideas?

    I need to have featured products below pagination and above normal product listings.

    Thanks
    [FONT=Microsoft Sans Serif]CSS Evangelist[/FONT]

  6. #6
    Join Date
    Oct 2007
    Posts
    289
    Plugin Contributions
    0

    Default Re: Featured Listings on top - Categories Page

    *bump*

    I'm sure its not too complicated getting featured on top before the normal listing starts, or is it?

    I would really appreciate any help.

    Thanks! :-)
    [FONT=Microsoft Sans Serif]CSS Evangelist[/FONT]

  7. #7
    Join Date
    Oct 2007
    Posts
    289
    Plugin Contributions
    0

    Default Re: Featured Listings on top - Categories Page

    ahem, another *bump*!

    Is it so difficult? :-(
    [FONT=Microsoft Sans Serif]CSS Evangelist[/FONT]

  8. #8
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Featured Listings on top - Categories Page

    Rather than bumping repeatedly (poor form around here), why not add more information about the things you've tried on your own in order to attempt to get it to work?
    That's far more constructive and preferred than just "*bump* is it so hard, please just tell me how to do it".


    Nevertheless ... just move or copy this line to wherever you want the featured centerbox to appear in that template:
    Code:
      <?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
    It will always appear even if there are no featured products this way, but unless you want to rewrite the whole template to honor the admin switches, that's the simplest way
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Oct 2007
    Posts
    289
    Plugin Contributions
    0

    Default Re: Featured Listings on top - Categories Page

    Apologies for bumping reapeatedly.

    Ah, I was close. I was moving the above line along with a few more around it, thiking that it was a single piece of code:

    Code:
    /**
     * 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
    /**
    Your suggestion did the trick. Thanks heaps again, DrByte.
    [FONT=Microsoft Sans Serif]CSS Evangelist[/FONT]

  10. #10
    Join Date
    Oct 2007
    Posts
    289
    Plugin Contributions
    0

    Default Re: Featured Listings on top - Categories Page

    Update: Although it did bring featured listings on top, but pagination goes below it. Like so:

    Code:
    <div id="featuredProducts" class="centerBoxWrapper">
    </div>
    <div id="productListing">
    <div class="pagination pagination_top">....</div>
    [Normal Listing starts..]
    At first I thought it was a CSS issue and I'd manage it, but it doesn't seem so. I tried several combinations but I still can't bring pagination div out of the "productListing" div.

    TIA
    [FONT=Microsoft Sans Serif]CSS Evangelist[/FONT]

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 33
    Last Post: 3 Mar 2013, 07:18 PM
  2. Move Featured Products to Top of Category Page
    By kconklin in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 24 May 2010, 04:59 PM
  3. Replies: 3
    Last Post: 26 Mar 2009, 07:12 AM
  4. Featured Listings on Main Page Problem
    By katiekin in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 28 Feb 2009, 06:21 PM
  5. Featured and New Listings on Shopping Cart page
    By Cal in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 Apr 2007, 11:30 AM

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