Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2012
    Posts
    282
    Plugin Contributions
    0

    Default Trying to remove some <br clear="all"> tags in featured products page

    hey All,
    On the featured products page (which im customizing the lay-out), in the product thumb table cell the code is rendering 4 of these <br clear="all"> and is making for a shoddy looking page.

    i'm looking in ' tpl_module_product_features_listing.php ' but not seeing where those br tags are being generated. is it part of MoveNext() ..?

    i've removed many of the display options to try and track down the problem

    PHP Code:
    <td width="<?php echo IMAGE_FEATURED_PRODUCTS_LISTING_WIDTH 10?>" valign="top" class="main" align="center">
                  <?php
                    $disp_sort_order 
    $db->Execute("select configuration_key, configuration_value from " TABLE_CONFIGURATION " where configuration_group_id='" $group_id "' and (configuration_value >= 1000 and configuration_value <= 1999) order by LPAD(configuration_value,11,0)");
                    while (!
    $disp_sort_order->EOF) {
                    
                      
                     if (
    $disp_sort_order->fields['configuration_key'] == 'PRODUCT_FEATURED_LIST_IMAGE') {
                        echo 
    $display_products_image;
                      }


                      
    $disp_sort_order->MoveNext();
                    }
                  
    ?></td>
    how is the code above generating 4 <br clear="all"> beneath the thumb?

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Trying to remove some <br clear="all"> tags in featured products page

    Try tpl_featured_products_default.php.

  3. #3
    Join Date
    Oct 2012
    Posts
    282
    Plugin Contributions
    0

    Default Re: Trying to remove some <br clear="all"> tags in featured products page

    ok thanks

  4. #4
    Join Date
    Oct 2012
    Posts
    282
    Plugin Contributions
    0

    Default Re: Trying to remove some <br clear="all"> tags in featured products page

    it's being generated via this variable

    $display_products_image;

    don't know exactly where that is being set but will find out

  5. #5
    Join Date
    Oct 2012
    Posts
    282
    Plugin Contributions
    0

    Default Re: Trying to remove some <br clear="all"> tags in featured products page

    FYI - it is here, Admin->Configuration-Featured Listing
    in the RH pane, the last digits controls line breaks...


    Display Product Image
    Do you want to display the Product Image?

    0= off
    1st digit Left or Right
    2nd and 3rd digit Sort Order
    4th digit number of breaks after

 

 

Similar Threads

  1. Replies: 4
    Last Post: 16 Oct 2011, 12:58 AM
  2. How to remove sub-category "featured products" & "category image"?
    By andrewcklau in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 24 Jun 2010, 10:32 AM
  3. How to remove ellipses ("...") after "All Products" and "New Products" on home page?
    By jthurman in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 May 2010, 03:30 PM
  4. Remove "button_add_selected" from "All products"
    By scrap in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 11 Oct 2009, 04:31 PM
  5. How do I remove "New products" and "featured products"?
    By sfklaas in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 7 Jun 2008, 06:23 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