Post by kdmp » Thu Sep 10, 2009 2:46 am

I have a 1.3.2 installation of OpenCart that is no longer updating the latest items. My client added some new products yesterday and they have not shown up under latest products. I have verified when they have been added. The entered date for two of them was yesterday. It is not seen in the latest products on the front page.

It is not related to the theme - it does it with the default theme. This is what I have in home.tpl to display the latest items:

Code: Select all

<?php for ($i = 0; $i < sizeof($products); $i = $i + 4) { ?>
    <tr>
      <?php for ($j = $i; $j < ($i + 4); $j++) { ?>
      <td style="width: 25%;"><?php if (isset($products[$j])) { ?>
I feel I am missing an easy one here....not to mention I wasn't successful with find a similar issue in the forum. :(

Kevin Davidson
Purolator Shipping Module
Canpar Shipping Module
VQMod - Paypal Transaction ID to Payment Details


Active Member

Posts

Joined
Thu Jun 04, 2009 10:40 am
Location - Ontario, Canada

Post by kdmp » Thu Sep 10, 2009 4:56 am

What file is responsible for pulling the latest products? I am assuming that home.tpl is just doing something with the data pulled from the database.

Kevin Davidson
Purolator Shipping Module
Canpar Shipping Module
VQMod - Paypal Transaction ID to Payment Details


Active Member

Posts

Joined
Thu Jun 04, 2009 10:40 am
Location - Ontario, Canada

Post by Qphoria » Thu Sep 10, 2009 5:13 am

catalog/controller/common/home.php

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by kdmp » Thu Sep 10, 2009 5:26 am

Thanks Q!

Here's a question....

Why does this show completely different items:

Code: Select all

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

Code: Select all

foreach ($this->model_catalog_product->getLatestProducts(12) as $result) { 
???

When I changed it to twelve it showed the twelve latest products - which were indeed the last 12 entered into OpenCart. When I set it back to eight it went back to the original latest products that I couldn't get rid of. There is nothing in the cache, but the same eight products came back - none of which were part of the 12 latest products...

Kevin

Kevin Davidson
Purolator Shipping Module
Canpar Shipping Module
VQMod - Paypal Transaction ID to Payment Details


Active Member

Posts

Joined
Thu Jun 04, 2009 10:40 am
Location - Ontario, Canada

Post by Franz-Peter » Fri Sep 11, 2009 6:15 pm

There are some more problems with latest products. It would be nice to have the possibility to show latest products in categories too.
An example:
You have categories and subcategories like this:
root category = printers
subcategories: multifunction, ink jet, laser
Those subcategories have subcategories again, lets say color laser, mono laser, parts or for the multifunctions: inkjet, color laser, mono laser, cartridges a.s.o.
Opencart does not display new products in root category or subcategories. That will only happen in the last subcategory for the specific products. So the result is:
If you click on the root category printers you just see a lot of subcategories and the categories images, no now products. If you click on a subcategory say multifunction, you see just a few links with category images: inkjet, mono laser, color laser, cartridges with category images but without new products.
To show a few products in categories, you have to click on the desired categories in the admin panel and that goes for every product. But these are not new products, these are products you assign yourself.

New member

Posts

Joined
Tue Aug 25, 2009 4:30 pm

Post by Qphoria » Fri Sep 11, 2009 7:49 pm

The latest products needs to become a "Block Module" that can be enabled for multiple pages, instead of being hardcoded to the home. Then additional "blocks" could be added for "Featured" & "Specials"..and they can be set to show all special or relative specials by category, etc.

Need a new extension group maybe

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: Majestic-12 [Bot] and 70 guests