Post by sash_007 » Mon Oct 11, 2010 2:28 pm

Hello friends,

How can i display 3 columns in latest products module in opencart 1.4.9.1

New member

Posts

Joined
Wed Apr 28, 2010 10:33 am

Post by jcsmithy » Mon Oct 11, 2010 4:20 pm

open up catalog\view\theme\default\template\module\latest_home.tpl

change

Code: Select all

line 12:  <?php for ($i = 0; $i < sizeof($products); $i = $i + 4) { ?>
line 13:  <tr>
line 14:  <?php for ($j = $i; $j < ($i + 4); $j++) { ?>
line 15:  <td style="width: 25%;"><?php if (isset($products[$j])) { ?>  
to

Code: Select all

line 12:  <?php for ($i = 0; $i < sizeof($products); $i = $i + 3) { ?>
line 13:  <tr>
line 14:  <?php for ($j = $i; $j < ($i + 3); $j++) { ?>
line 15:  <td style="width: 33%;"><?php if (isset($products[$j])) { ?>  

only quickly tested but seems ok

Active Member

Posts

Joined
Fri Oct 01, 2010 9:54 pm

Post by sash_007 » Tue Oct 12, 2010 8:41 pm

thanks i actually made major mistake inti tally by copying just the folder instead of the files separately while making anew theme now i am paying the price most of files weren't copied

New member

Posts

Joined
Wed Apr 28, 2010 10:33 am
Who is online

Users browsing this forum: Amazon [Bot] and 145 guests