Page 1 of 1
Latest Products Not Updating....
Posted: Thu Sep 10, 2009 2:46 am
by kdmp
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.

Re: Latest Products Not Updating....
Posted: Thu Sep 10, 2009 4:56 am
by kdmp
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.
Re: Latest Products Not Updating....
Posted: Thu Sep 10, 2009 5:13 am
by Qphoria
catalog/controller/common/home.php
Re: Latest Products Not Updating....
Posted: Thu Sep 10, 2009 5:26 am
by kdmp
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
Re: Latest Products Not Updating....
Posted: Fri Sep 11, 2009 6:15 pm
by Franz-Peter
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.
Re: Latest Products Not Updating....
Posted: Fri Sep 11, 2009 7:49 pm
by Qphoria
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