mrossi Posted January 1, 2005 Share Posted January 1, 2005 I want to know if anyone has figured out how to add a <hr> to the new_products.php? Mine displays 3 products accross and I want to add a <hr> between the next set of 3 products. thanks, matt Link to comment Share on other sites More sharing options...
Guest Posted January 1, 2005 Share Posted January 1, 2005 Hi, you can try this one: Take look at "catalog\includes\modules\new_products.php". Find a code: $col ++; if ($col > 2) { $col = 0; $row ++; (There can be some other values but it's a line where column counter will be increased, about line 60...70). After it, add a code: if ($row % 3 == 0) { echo "<hr>\n"; } -ppajukos- Link to comment Share on other sites More sharing options...
mrossi Posted January 1, 2005 Author Share Posted January 1, 2005 Tried it but it didnt seem to work, it added the HR above the table. I wish I new php code if I could get this to work it would be sweet. thanks, matt Link to comment Share on other sites More sharing options...
mrossi Posted January 1, 2005 Author Share Posted January 1, 2005 Any other ideas out there? Link to comment Share on other sites More sharing options...
Guest Posted January 1, 2005 Share Posted January 1, 2005 Similar to what was recommended, but use this instead: $info_box_contents[$row][$col] = array('align' => 'center', 'params' => 'colspan="3"', 'text' => "<hr>"); $row ++; So the whole block of code will now look like this: if ($col > 2) { $col = 0; $row ++; $info_box_contents[$row][$col] = array('align' => 'center', 'params' => 'colspan="3"', 'text' => "<hr>"); $row ++; } Hope it helps... Link to comment Share on other sites More sharing options...
mrossi Posted January 1, 2005 Author Share Posted January 1, 2005 That one works great!!!!! Long live OS Commerce! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.