highrecall Posted March 16, 2007 Posted March 16, 2007 Have installed the All Specials contribution but the Font is way too big. I can't seem to figure out how to add the right id or class or whatever to make the font style exactly the same as all the other boxes... like the the old "specials" box that I replaced. I do know how (i think i do) to make changes in the style sheet to control everything else, but just not this box. Big Thanks for ideas!
spax Posted March 16, 2007 Posted March 16, 2007 Did the contribution instructions tell you to add to the stylesheet? If it did, have you done that? If no changes were necessary, the new box would keep the styles of the other boxes. Post a link and I'll take a look.
highrecall Posted March 16, 2007 Author Posted March 16, 2007 Did the contribution instructions tell you to add to the stylesheet? If it did, have you done that? If no changes were necessary, the new box would keep the styles of the other boxes. Post a link and I'll take a look. Thanks for trying to help! No reference in the contrib to any CSS changes. The code is below... I am thinking that the $box_text is my key but I don't know what to do from here. <?php /* $Id: all_specials.php v1.01 created by Kornel Hartung on 2003/11/03 21:02:00 hpdl Exp $ based on /includes/boxes/specials.php of MS2 Example can be seen here: www.livecarts.com osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ $check_query = tep_db_query("select count(*) as count from " . TABLE_SPECIALS . " where status='1'"); $check = tep_db_fetch_array($check_query); if ($check['count'] > 0) { $specials_query_raw = "select p.products_id, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, p.products_image, s.specials_new_products_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_SPECIALS . " s where p.products_status = '1' and s.products_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' and s.status = '1' order by s.specials_date_added DESC"; $specials_query = tep_db_query($specials_query_raw); ?> <!-- specials //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_SPECIALS); new infoBoxHeading($info_box_contents, false, false, tep_href_link(FILENAME_SPECIALS)); $box_text = ''; $rown = tep_db_num_rows($specials_query); $row = 0; while ($specials = tep_db_fetch_array($specials_query)) { $row++; $box_text .= ' <table border=0 cellpadding=0 cellspacing=0 width="100%"><tr><td align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $specials["products_id"]) . '">' . tep_image(DIR_WS_IMAGES . $specials['products_image'], $specials['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td></tr><tr><td align="center" width="100%"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $specials['products_id']) . '">' . $specials['products_name'] . '</a></td></tr><tr><td class="smalltext" width="100%" align="center"><s>' . $currencies->display_price($specials['products_price'], tep_get_tax_rate($specials['products_tax_class_id'])) . '</s><br><span class="productSpecialPrice">' . $currencies->display_price($specials['specials_new_products_price'], tep_get_tax_rate($specials['products_tax_class_id'])) . '</span></td></tr></table>'; if ($rown == $row) { $box_text .= "\n"; } else { $box_text .= '<br>' . "\n"; } } $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => $box_text); new infoBox($info_box_contents); ?> </td> </tr> <!-- specials_eof //--> <?php } ?>
spax Posted March 16, 2007 Posted March 16, 2007 I can't see anything different there so everything should be as set in infoBoxHeading and infoBoxContents. The text should be links, yes? Go and add font-size: 10px; to the A rule in the stylesheet. If that cures it and you are happy with all your links, leave it as that. You can PM me a link if you don't want to post it here. It would be easier to see it.
highrecall Posted March 16, 2007 Author Posted March 16, 2007 I can't see anything different there so everything should be as set in infoBoxHeading and infoBoxContents. The text should be links, yes?Go and add font-size: 10px; to the A rule in the stylesheet. If that cures it and you are happy with all your links, leave it as that. You can PM me a link if you don't want to post it here. It would be easier to see it. Your a genius! THanks, I totally forgot about the product name being a link. Adding the font size to the A rule did the trick for me Thanks for the help!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.