mediamacher Posted January 22, 2004 Share Posted January 22, 2004 How do I get seperate boxes in the product_listing.php? Thanks :-) Link to comment Share on other sites More sharing options...
241 Posted January 22, 2004 Share Posted January 22, 2004 What do you mean? Do you want each product item to be in it's own box? Which boxes are you trying to show in the product_listing? Are you wishing to somehow show a seperation bar for each item? No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
mediamacher Posted January 22, 2004 Author Share Posted January 22, 2004 I?d like to show every product in single box. E.g. I hope that you understand what I mean... :-) Link to comment Share on other sites More sharing options...
241 Posted January 22, 2004 Share Posted January 22, 2004 so would placing a border around each item be enough to be classed as a box? No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
mediamacher Posted January 22, 2004 Author Share Posted January 22, 2004 How does it work? Is it possible to include a header an a footer for each product? Thanks for your help;-) Link to comment Share on other sites More sharing options...
Noobish-n-stuff Posted January 22, 2004 Share Posted January 22, 2004 as you can see, product_listing.php is a little confusing. i'm work on mine right now also. if you just want a border... find: if (($rows/2) == floor($rows/2)) { $list_box_contents[] = array('params' => 'class="productListing-even"'); } else { $list_box_contents[] = array('params' => 'class="productListing-odd"'); } and change to: if (($rows/2) == floor($rows/2)) { $list_box_contents[] = array('params' => 'class="productListing-even" border="1"'); } else { $list_box_contents[] = array('params' => 'class="productListing-odd" border="1"'); } if you want to add a space like you showed earlier in the post, it's a little harder, let me look into that. i haven't been able to figure out how to get anything to cross all of the columns yet. Link to comment Share on other sites More sharing options...
241 Posted January 22, 2004 Share Posted January 22, 2004 It should be possible however I am not using this feature in my test shop at the moment so cannot try it out. If I get done with the test mods that I am doing now, then I could setup this feature and try it out. The file to look at for modification should be catalog/includes/modules/product_listing.php Sorry i am not in the position to take this further for you just now. The information I have placed here should help the next person who is in the position to help. No sooner said than done over to you Jason No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
mediamacher Posted January 22, 2004 Author Share Posted January 22, 2004 Thank you Jason! If you find a way to include a header etc. - please let me know! :-) Link to comment Share on other sites More sharing options...
Noobish-n-stuff Posted January 22, 2004 Share Posted January 22, 2004 ok, think if you add: <?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> to each one of the columns you should get the empty space between products. (like you pic shows) this actually put the space under each listing. example: find: case 'PRODUCT_LIST_QUANTITY': ? ? ? ? ? ?$lc_align = 'right'; ? ? ? ? ? ?$lc_text = ' ' . $listing['products_quantity'] . ' '; ? ? ? ? ? ?break; change to: case 'PRODUCT_LIST_QUANTITY': ? ? ? ? ? ?$lc_align = 'right'; ? ? ? ? ? ?$lc_text = ' ' . $listing['products_quantity'] . ' <br>' . echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ? ? ? ? ? ?break; my syntax my be off, but that is how it should work. without doing a huge rewite of the code, this is how i would pput together the header too, you just need to break it up for each column. this hack actually puts the space under each listing, you could break it up and put a 5 pixel space before and after the listing and then you would have a header and footer. Link to comment Share on other sites More sharing options...
mediamacher Posted January 22, 2004 Author Share Posted January 22, 2004 I?ve tried this - but it doesn?t work :-( You always get an error message! Link to comment Share on other sites More sharing options...
241 Posted January 22, 2004 Share Posted January 22, 2004 I think you have to remove the echo statement for this one No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
ChronoXP Posted January 22, 2004 Share Posted January 22, 2004 Try altering stylesheet.css: Look for: TD.productListing-data { and add: border-bottom: 1px solid #000000; eg: TD.productListing-data { ?font-family: Verdana, Arial, sans-serif; ?font-size: 10px; ?border-bottom: 1px solid #000000; } Much easier than messing with product_listing.php :o Link to comment Share on other sites More sharing options...
mediamacher Posted January 22, 2004 Author Share Posted January 22, 2004 Perfect! Thank you very much. This is the best solution. Is it possible to insert a image in the css??? Thanks!!!!! Link to comment Share on other sites More sharing options...
ChronoXP Posted January 22, 2004 Share Posted January 22, 2004 You can insert an image: background-image: url(images/infobox/bg_image.png); background-repeat: repeat-x; This will repeat the image horizontally, but not vertically (repeat-y). ;) Link to comment Share on other sites More sharing options...
241 Posted January 22, 2004 Share Posted January 22, 2004 Yes BACKGROUND-IMAGE: url(images/header_bar_bluelines.gif) repeat; is one method for a background image that repeats, for a singular take of the repeat and for a border use the url part attached to border: url No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
ChronoXP Posted January 22, 2004 Share Posted January 22, 2004 Yup, and there's no-repeat; also :) background-image: url(images/infobox/bg_image.png) no-repeat; :D Link to comment Share on other sites More sharing options...
ChronoXP Posted January 22, 2004 Share Posted January 22, 2004 Sorry, the above prolly doesn't work: background-image: url(images/infobox/bg_image.png); background-repeat: no-repeat; ...should work :huh: Link to comment Share on other sites More sharing options...
Noobish-n-stuff Posted January 22, 2004 Share Posted January 22, 2004 thanks guys, the stylesheet is always an easier mod than hacking the php file. still doesn't solve my issues in product_listing, but i didn't figure it would. if you go to here? you will see the description doesn't span all the way to the right. that's all i want, it seems so simple, but i'm just not seeing it. Link to comment Share on other sites More sharing options...
241 Posted January 22, 2004 Share Posted January 22, 2004 Jason Do you want the center box to expand all the way to the right, what about the header and footer and the split box categories? No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
Noobish-n-stuff Posted January 22, 2004 Share Posted January 22, 2004 go to wickedsunglasses.com... i want to do something similar to that. Link to comment Share on other sites More sharing options...
241 Posted January 22, 2004 Share Posted January 22, 2004 Jason do you want to open a new thread for this one? Do you plan on moving your right column or just get rid of the more info part? No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
Noobish-n-stuff Posted January 22, 2004 Share Posted January 22, 2004 new thread started here i just want the description to extend under the prices... seems easy enough :blink: Link to comment Share on other sites More sharing options...
kylehead Posted January 24, 2004 Share Posted January 24, 2004 i'm looking to do something similar, although encompass each product in it's own table (i'd like to push at making it a bit more aesthetically pleasing), as well as give the tables a bit more elaborate layout. any help with this would be appreciated, i've been trying to find a template system that has templates for the product listings but to no avail :( Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.