fruchtge Posted November 24, 2009 Posted November 24, 2009 Hi, I work on a contiribution that hides products that have a special price. Because of bad php knowledge I am stuck. I had the idea to realize it in product listing.php just add: if (tep_not_null($listing['status'])) { } else { before: $listing_split = new splitPageResults($listing_sql, MAX_DISPLAY_SEARCH_RESULTS, 'p.products_id'); if ( ($listing_split->number_of_rows > 0) && ( (PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3') ) ) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> ... ... new productListingBox($list_box_contents); } if ( ($listing_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3')) ) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></td> <td class="smallText" align="right"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td> </tr> </table> <?php } } ?> I don´t see trough the whole arrey, fetch etc tingies.... Please help me. Quote life long and knusper
fruchtge Posted November 25, 2009 Author Posted November 25, 2009 I have a little sucess: adding: if (tep_not_null($listing['specials_new_products_price'])) { } else { twice before for ($col=0, $n=sizeof($column_list); $col<$n; $col++) { do not forget } after $list_box_contents[$cur_row][] = array('align' => $lc_align, 'params' => 'class="productListing-data"', 'text' => $lc_text); } in product_listing.php makes specials disappear. But there is a problem with page splitting: Specials are still counted. Again if someone would help me would be nice. Quote life long and knusper
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.