carlcheadle Posted July 24, 2005 Share Posted July 24, 2005 hi, i am looking at the code for the product_listing.php, (maybe im looking in the wrong place but), page and cant for the life of me work out how to add a single column row OR an image under each product. i would really like to add a row that contains the image in between each listed product. if there are any php coders in your input would be thankfully recieved. thanks carl Link to comment Share on other sites More sharing options...
carlcheadle Posted July 25, 2005 Author Share Posted July 25, 2005 if anyone needs me to add in the code from the page please let me know Link to comment Share on other sites More sharing options...
Geotex Posted July 25, 2005 Share Posted July 25, 2005 i would really like to add a row that contains the image in between each listed product. Do you mean you are not showing any product image now in your product listing, or you are trying to add some kind of image between the products? GEOTEX from Houston, TX (George) Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted July 25, 2005 Share Posted July 25, 2005 I assume you want to add a sep line between the rows of products? this line way have a pic or just be blank. this is the last part of my product_listing.php ? ? ? ? ?case 'PRODUCT_LIST_BUY_NOW': ? ? ? ? ? ?$lc_align = ''; ? ? ? ? ? ?$lc_text = ''; ? ? ? ? ? ?break; ? ? ? ?} ? ? ? ?$list_box_contents[$cur_row][] = array('align' => $lc_align, ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 'params' => 'class="productListing-data"', ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 'text' ?=> $lc_text); ? ? ?} ?$list_box_contents[][] = array( ? ? ? ? ? ? ?'params' => 'valign="middle" colspan="3" class="productListing_spacer"', ? ? ? ? ? ? ?'text' ?=> ' ' ); ? ?} ? ?new productListingBox($list_box_contents); ?} else { ? ?$list_box_contents = array(); ? ?$list_box_contents[0] = array('params' => 'class="productListing-odd"'); ? ?$list_box_contents[0][] = array('params' => 'class="productListing-data"', ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 'text' => TEXT_NO_PRODUCTS); ? ?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="pagecountText"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></td> ? ?<td class="pagecountText" 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 ?} ?> count the columns you are displaying and adjust the colspan for the productListing_spacer, that array is the one I added. then add to your stylesheet.php the define for it, I show you mine as an example: .productListing_spacer { ?width: 100%; ? ?background-image:url('images/custom/checks_bw.gif'); ?font-size:1px; ? ? } I would show you an example of this code but we have since decided to go for a column style display ... wait ... I have another site I'm working on, and while it has the columns it also has the separator line ... I'm pretty sure this is what you are looking for, while keeping the row design. http://tostest.de/index.php/cPath/26 :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ... Link to comment Share on other sites More sharing options...
carlcheadle Posted July 25, 2005 Author Share Posted July 25, 2005 this is the last part of my product_listing.php I replaced my code with no errors programming errors. However when i loaded my page i lost the column that contains the buy it now buttons. Also after seeing the way that you are displaying your prods on http://tostest.de/index.php/cPath/26 i would to emplement somthing like that.. cheers carl Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted July 25, 2005 Share Posted July 25, 2005 I replaced my code with no errors programming errors. However when i loaded my page i lost the column that contains the buy it now buttons. Also after seeing the way that you are displaying your prods on http://tostest.de/index.php/cPath/26 i would to emplement somthing like that.. cheers carl <{POST_SNAPBACK}> only use my code from rigth under the buy now column ... starting with the break, and your buy now will be back :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.