Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

question: how to add an <hr> to product listing


Guest

Recommended Posts

Hi,

 

I'd like my product listing page to look like rubylanes:

 

http://search.rubylane.com/collectibles/,id=58.21.html

 

Does anyone know where i would go to insert the <hr> between products? That's all I need to know. I've tried looking through default.php where it lists the products but it looks like its getting input from the mysql database and I don't see where I can insert <hr> into there without mucking things up.

 

Thank you so much in advance.

Link to comment
Share on other sites

Hi,

 

I'd like my product listing page to look like rubylanes:

 

http://search.rubylane.com/collectibles/,id=58.21.html

 

Does anyone know where i would go to insert the <hr> between products?  That's all I need to know.  I've tried looking through default.php where it lists the products but it looks like its getting input from the mysql database and I don't see where I can insert <hr> into there without mucking things up.

 

Thank you so much in advance.

 

products are listed in the module product_listing.php

 

so just above this :

 

$list_box_contents[$cur_row][] = array('align' => $lc_align,

'params' => 'class="productListing-data"',

'text' => $lc_text);

 

 

you could add this :

 

$lc_text .= '<hr>';

Treasurer MFC

Link to comment
Share on other sites

PS: why dont you mail .her and ask nicely ..she might tell you how she did it?

 

It's not a <HR> ...it's actually a streched img with/or ...border

view source ...and search <hr> ...you will find none....

klik on ... search/list ..by images... you will see the border that i am talking about.

 

this is the closed thing to it..

 

on line 139 of .../catalog/includes/modules/product_listing.php

 

 

 

Look for this code.....

-------------------

$list_box_contents[$cur_row][] = array('align' => $lc_align,

'params' => 'class="productListing-data"',

'text' => $lc_text );

}

}

 

--------------------

WHEN YOU CHANGE IT TO...

 

 

$list_box_contents[$cur_row][] = array('align' => $lc_align,

'params' => 'class="productListing-data"',

'text' => $lc_text . '<hr>');

}

}

 

iT WILL ADD THE hr ..for each row... however ...i too cannot find the separator for it ..it now will draw a HR inderneath the img ...and the text part ....seperately...

Try ..and see for your self .....

not quite the same .. but a close a i can get with a HR...

anyway ... youmight want to check the style sheet and perhaps...

change the attributes of the class odd even used... used...

to create a border... for both ODD- EVEN...

 

But i suspect its ..a TR heading ..class...and it might not do border...

(check other classes...for the border attribute ... and copy the other attributes ass well..... like ... borderstyle solid.....and such ...

Link to comment
Share on other sites

tcet,

 

rubylane is not a her, it's a very large online company (sort of a mall for antiques and collectibles stores, charge a per month store fee and percentage of sales fee). I doubt I could get an email through to their programming department that could tell me how they coded it !

 

Thank you to both of you for your suggestions, off to try them now!

Link to comment
Share on other sites

thank you again to you both!

 

you're right, the <hr> didn't work, it was a broken line. but the other suggestion of changing the class worked. I went in and added this line to the TD.productListing-data section:

 

border-bottom: 1px solid #958a8f;

 

and that worked like a charm! thanks again to everyone.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...