Madman00 Posted December 14, 2004 Share Posted December 14, 2004 I have my products listed in columns. How do i alig the text and price listed under the product to the left instead of center. Thanks Link to comment Share on other sites More sharing options...
greyicon Posted December 14, 2004 Share Posted December 14, 2004 Have you got an example of the page we can see or the snippet of code that displays this product listing. It will probably be the product_listing.php file under catalog/includes/modules/. Let me know what you can find. I will be happy to help. :rolleyes: I have my products listed in columns. How do i alig the text and price listed under the product to the left instead of center. Thanks <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Madman00 Posted December 14, 2004 Author Share Posted December 14, 2004 Here's what i have for product listing in modules: <?php DEFINE('PRODUCT_LIST_COL_NUM',4); $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><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 } $info_box_contents = array(); if ($listing_split->number_of_rows > 0) { $row = 0; $col = 0; $listing = tep_db_query($listing_split->sql_query); while ($listing_values = tep_db_fetch_array($listing)) { $listing_values['manufacturers_name'] = tep_get_manufacturers_name($listing_values['manufacturers_id']); $listing_values['products_name'] = tep_get_products_name($listing_values['products_id']); $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing_values['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing_values['products_image'], $listing_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br/>'; $lc_text .= '' . $listing_values['manufacturers_name'] . '</span> '; $lc_text .= '' . $listing_values['products_name'] . '</span><br>'; if ($listing_values['specials_new_products_price']) { $lc_text .= ' <s>' . $currencies->display_price($listing_values['products_price'], tep_get_tax_rate($listing_values['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($listing_values['specials_new_products_price'], tep_get_tax_rate($listing_values['products_tax_class_id'])) . '</span> '; } else { $lc_text .= ' <span class="categoryPrice">' . $currencies->display_price($listing_values['products_price'], tep_get_tax_rate($listing_values['products_tax_class_id'])) . '</span> '; } if (PRODUCT_LIST_BUY_NOW) { $lc_text .= '<br><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing_values['products_id'], 'NONSSL') . '">' . tep_image_button('../../../../../../../images/buy_sml_off.gif', TEXT_BUY . $listing_values['products_name'] . TEXT_NOW) . '</a>'; } $lc_text .= '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing_values['products_id']) . '">' . tep_image('../../../../../../../images/more_details_sml_off.gif', $listing_values['products_name']) . '</a><br>'; $info_box_contents[$row][$col] = array('align' => 'center', 'params' => 'class="smallText" width="33%" valign="top"', 'text' => $lc_text); $col ++; if ($col > PRODUCT_LIST_COL_NUM-1) { $col = 0; $row ++; } } new contentBox($info_box_contents); } else { $info_box_contents = array(); $info_box_contents[0] = array('params' => 'class="productListing-odd"'); $info_box_contents[0][] = array('params' => 'class="productListing-data"', 'text' => TEXT_NO_PRODUCTS); new contentBox($info_box_contents); } if ( ($listing_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3')) ) { ?> <?php } ?> Have you got an example of the page we can see or the snippet of code that displays this product listing. It will probably be the product_listing.php file under catalog/includes/modules/. Let me know what you can find. I will be happy to help. :rolleyes: <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.