Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Putting horizontal line between products


Pinoo

Recommended Posts

Posted

I tried this too & didn't work. I have been trying to get a HR between each product for a while now, but can't seem to get anything to work. Please post back here if you get help outside this forum.

Posted
I tried this too & didn't work. I have been trying to get a HR between each product for a while now, but can't seem to get anything to work. Please post back here if you get help outside this forum.

 

I am also trying same. Please post back if you are able to get it done

Thanks

Posted

Try this and let me know if it is what you are looking for.

 

Open the stylesheet.css file

find the line:

 

TD.productListing-data {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

}

 

and add a border to the bottom of the td.

 

TD.productListing-data {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

border:solid black; border-width:0 0 1px 0;

}

Posted
Try this and let me know if it is what you are looking for.

 

Open the stylesheet.css file

find the line:

 

TD.productListing-data {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

}

 

and add a border to the bottom of the td.

 

TD.productListing-data {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

border:solid black; border-width:0 0 1px 0;

}

This works, but since the data is listed in columns you can see the tiny space where the lines break & start in the next column. I tried messing around w/the boxes classes & adding another <tr> after the </tr> closes in the box classes, but I couldn't get anything to work.
Posted
Try this and let me know if it is what you are looking for.

 

Open the stylesheet.css file

find the line:

 

TD.productListing-data {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

}

 

and add a border to the bottom of the td.

 

TD.productListing-data {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

border:solid black; border-width:0 0 1px 0;

}

 

Yes, i think this solution works fine for me, thx for support!

Posted
Try this and let me know if it is what you are looking for.

 

Open the stylesheet.css file

find the line:

 

TD.productListing-data {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

}

 

and add a border to the bottom of the td.

 

TD.productListing-data {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

border:solid black; border-width:0 0 1px 0;

}

 

One question, i get the horizontal lines, but when i click an article i see the article name is underlined. Is there a solution for this?

Posted
One question, i get the horizontal lines, but when i click an article i see the article name is underlined. Is there a solution for this?

The links code is using

<a href

which is referenced to

A:hover {
 color: #AABBDD;
 text-decoration: underline;
}

in the stylesheet.css if you changed this it would be site wide which you may not want, therefore you may choose to create a new class in stylesheet.css

A.product_listing {
 color: #000000;
 text-decoration: none;
}

A.product_listing:hover {
 color: #AABBDD;
 text-decoration: underline;
}

and then change this part

A.product_listing:hover {
 color: #AABBDD;
 text-decoration: underline;
}

so as to not have an underline like this

A.product_listing:hover {
 color: #AABBDD;
 text-decoration: none;
}

 

you would then call the class in the link code of the includes/modules/product_listing.php

		  case 'PRODUCT_LIST_NAME':
		$lc_align = '';
		if (isset($HTTP_GET_VARS['manufacturers_id'])) {
		  $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>';
		} else {
		  $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a> ';
		}
		break;

so as to reference the class like this

		  case 'PRODUCT_LIST_NAME':
		$lc_align = '';
		if (isset($HTTP_GET_VARS['manufacturers_id'])) {
		  $lc_text = '<a class="product_listing" href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>';
		} else {
		  $lc_text = ' <a class="product_listing" href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a> ';
		}
		break;

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.

  • 3 months later...
Posted

my site currently has an entire row between each product with an <hr> :

 

</tr><tr><td colspan="6"><HR></td></tr>

 

I've looked through product_listing.php and could not find any code that is generating it. If someone could show me where else i should be looking i can post a solution. Because its definitely not being implemented like the first post

Archived

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

×
×
  • Create New...