Jump to content
thirty bees forum

new product does not show up in new arrivals (new products block) on home page when caching is on - TB 1.0.4


Recommended Posts

Posted

Hi, Newly listed product does not show on home page New Arrivals (new products block) automatically when caching (including full page caching) is on.

I have to disable the caching and clear cache every time a new product is listed to make it show up on New arrivals.

What is the issue here?

Is it not possible to make new products show up when caching is one?

Posted

I also noticed it, but I can't confirm when it happens. And since I ctrl+f5 multiply times and changed the cache settings also, I don't know when exactly the new products started showing again. But they disappeared and showed multiply times.

And I don't want to open new topic about it, but when i add product to the cart from the quick view window, the product is added but it redirects me to the product page. I don't find it normal behavior.

Posted

It is 0 by default. Then I changed it to 60 minutes yesterday. It did not work. After more than 60 minutes - several hours, no change. Newest products, still, did not show up on New arrivals on home page.

Posted

You are probably right. It may still be connected to the default caching. In my case, newly listed products will show in New arrivals home page after I disable and clear cache.

Or it may simply be that the new products block module does not work properly.

Posted

There is bug indeed. To fix it, modify file /modules/blocknewproducts/blocknewproducts.php and change line ~308 from

foreach ($caches as $template => $cacheId) { Tools::clearCache(Context::getContext()->smarty, $template, $cacheId); }

to

foreach ($caches as $template => $cacheId) { Tools::clearCache(Context::getContext()->smarty, $this->getTemplatePath($template), $cacheId); }

Posted

I don't understand which exactly are featured on your homepage. I actually expected to see new carousel or additional tab on the existing one, which states featured ... maybe I should add more than 2 products on my test store and check it again.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...