Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Trying to remove some <br clear="all"> tags in featured products page

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

21 Feb 2013, 6:37 PM
#1
tcarden avatar

tcarden

Zen Follower

Join Date:
Oct 2012
Posts:
282
Plugin Contributions:
0

Post #1 by tcarden

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

<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?

21 Feb 2013, 6:47 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Post #2 by stevesh

Try tpl_featured_products_default.php.

22 Feb 2013, 6:37 PM
#3
tcarden avatar

tcarden

Zen Follower

Join Date:
Oct 2012
Posts:
282
Plugin Contributions:
0

Post #3 by tcarden

ok thanks

22 Feb 2013, 6:45 PM
#4
tcarden avatar

tcarden

Zen Follower

Join Date:
Oct 2012
Posts:
282
Plugin Contributions:
0

Post #4 by tcarden

it's being generated via this variable

$display_products_image;

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

22 Feb 2013, 7:42 PM
#5
tcarden avatar

tcarden

Zen Follower

Join Date:
Oct 2012
Posts:
282
Plugin Contributions:
0

Post #5 by tcarden

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
*