Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Seperate Boxes in product_listing.php


mediamacher

Recommended Posts

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! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

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! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

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

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! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

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

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! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

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

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! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

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

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! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

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! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...