demogoria Posted May 30, 2005 Share Posted May 30, 2005 Hey hey. I am not great with php so I need a bit of help here. I simply wanted to put a horizontal line about 80% width between each product when hey are listed. I have looked at the code and all my attempts have failed and resulted in errors. This should be an easy task, but it's the easiest that always get me. :) Thanks! Link to comment Share on other sites More sharing options...
bglkk Posted May 30, 2005 Share Posted May 30, 2005 Sorry, misunderstood what you were looking for. Never mind. :) "Buy the ticket, take the ride..." -HST Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 31, 2005 Share Posted May 31, 2005 It's not that easy due to the way the code is formatted. However, there is a contribution that allows you to do this. Unfortunaterly, I don't recall what it is called. Search the contributions for product listing maybe. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
demogoria Posted May 31, 2005 Author Share Posted May 31, 2005 No hits on that one. I will keep searching though. I would have thought that SOMEBODY out there would have wanted this as well.... Thanks! Link to comment Share on other sites More sharing options...
dwienhold Posted July 19, 2005 Share Posted July 19, 2005 No hits on that one. I will keep searching though. I would have thought that SOMEBODY out there would have wanted this as well.... Thanks! <{POST_SNAPBACK}> I'm not sure if you ever figured this one out, but in case you haven't or someone else is looking for the same thing, I've come accross a simple way to acheive what you are looking for. This is based on Monika's post for a similar request - see: http://www.oscommerce.com/forums/index.php?showtopic=158122&hl= Instead of using seperate pixel gifs, I've found that the same effect can be acheived by just inserting an html horizontal line. To do - open /includes/modules/product_listing.php find: } 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); } And right above that add: $list_box_contents[][] = array( 'params' => 'valign="middle" colspan="4"', 'text' => '<tr><td colspan="4"><hr></td></tr><tr><td width="4"></td></tr>' ); Note that this is set to 4 columns. If you have more than for columns, or if you don't want the line to go all the way across in your listing box, adjust accordingly. This is a simple fix to a common request. Like I said though, I can't take any credit for this. The inspiration came from Monika's post to a similar question. Link to comment Share on other sites More sharing options...
demogoria Posted July 20, 2005 Author Share Posted July 20, 2005 Perfect! Thanks for point that out to me! I was about to give up on that one. :) Thanks again. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.