jjanguda Posted July 24, 2004 Share Posted July 24, 2004 I'd like to insert a line like this tep_draw_separator('pixel_silver.gif', '100%', '1'); in this code. new contentBox($info_box_contents); Simply, can I replace "new contentBox" with "pixel_silver"? I think it's possible, but I don't know how... This is a part of my my catalog/includes/modules/product_listing.php. $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); } } What I'm trying to do is.. I want to insert pixel_siliver.gif in my "What's new for July" box. Right now, a default setting for this is 3(columns) x 3(rows). A B C -------------- D E F -------------- G H I Like this... I want the line between each row. Appreciate for any help!! Thanks~ Link to comment Share on other sites More sharing options...
♥yesudo Posted July 25, 2004 Share Posted July 25, 2004 url ? as i cannot visualise this. Your online success is Paramount. Link to comment Share on other sites More sharing options...
jjanguda Posted July 26, 2004 Author Share Posted July 26, 2004 hmm.. What I want is add a silver line between each row... by chaning or adding a code that I posted above... Can someone help me further? Link to comment Share on other sites More sharing options...
Guest Posted July 26, 2004 Share Posted July 26, 2004 Try this - in catalog/includes/modules/new_products.php: change: 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a><br>' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id']))); to: 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a><br>' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])) . '<br><br>' . tep_draw_separator('pixel_silver.gif', '100%', '1')); Matti Link to comment Share on other sites More sharing options...
jjanguda Posted July 26, 2004 Author Share Posted July 26, 2004 Johnson, thanks for your advice. But, there's one problem... that is.. the line is broken... it is not connected as a one straight line.. it looks like this. item A item B item C item D ------------ ------------- ------------- ------------- item E item F item G item H ------------ ------------- ------------- ------------- item I item J item K item L ------------ ------------- ------------- ------------- I just want a straight line like this. item A item B item C item D ------------------------------------------------------------- item E item F item G item H ------------------------------------------------------------- item I item J item K item L ------------------------------------------------------------- Can you give me a further assistance? Thanks for all your help. is it possible to replace new contentBox($info_box_contents); with siliver line? Link to comment Share on other sites More sharing options...
Guest Posted July 27, 2004 Share Posted July 27, 2004 You will need to change the following line (2nd) in catalog/includes/classes/boxes.php function contentBoxContents($contents) { $this->table_cellpadding = '4'; $this->table_parameters = 'class="infoBoxContents"'; return $this->tableBox($contents); to: function contentBoxContents($contents) { $this->table_cellpadding = '0'; $this->table_parameters = 'class="infoBoxContents"'; return $this->tableBox($contents); To compensate for the lack of cellpadding you will need to change my original post to: 'text' => tep_draw_separator('pixel_trans.gif', '100%', '4') . '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a><br>' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])) . '<br><br>' . tep_draw_separator('pixel_silver.gif', '100%', '1')); Matti Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.