Post by gnostic » Sat Jun 26, 2010 5:21 pm

Hi there!

I am using Open Cart 1.4.5 and I made some modifications on the look of the shop's index page. I wanted to have 9 items - 3 x 3, but instead I have 8 :( I am really surprised where that last item went... here is extract from the code from ..template/common/home.tpl that was modified by me:

Code: Select all

  <div class="middle">
    <div><?php echo $welcome; ?></div>
    <div class="heading"><?php echo $text_latest; ?></div>
    <table class="list">
      <?php for ($i = 0; $i < sizeof($products); $i = $i + 3) { ?>
      <tr>
        <?php for ($j = $i; $j < ($i + 3); $j++) { ?>

Any tips will be highly appreciated! Thank you.
Last edited by gnostic on Sat Jun 26, 2010 10:34 pm, edited 3 times in total.

Newbie

Posts

Joined
Wed Mar 31, 2010 3:06 am

Post by Vqz » Sat Jun 26, 2010 6:06 pm

in catalog/controller/common/home.php

foreach ($this->model_catalog_product->getLatestProducts(8) as $result)

change latest products to 9 O0

Vqz
Newbie

Posts

Joined
Sun Jan 10, 2010 12:02 am

Post by gnostic » Sat Jun 26, 2010 6:09 pm

Thank you very much!

Newbie

Posts

Joined
Wed Mar 31, 2010 3:06 am

Post by JAY6390 » Sat Jun 26, 2010 9:41 pm

That really needs to be added to the admin area :)

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom
Who is online

Users browsing this forum: No registered users and 10 guests