violinparts Posted May 14, 2018 Posted May 14, 2018 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?
MockoB Posted May 14, 2018 Posted May 14, 2018 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.
violinparts Posted May 14, 2018 Author Posted May 14, 2018 Something is wrong with the caching system.
BlindPenguin Posted May 14, 2018 Posted May 14, 2018 Did you try change the cache lifetime setting in the module itself? You can set it in minutes. Theoretically it should refresh itself then.
violinparts Posted May 14, 2018 Author Posted May 14, 2018 It is 0 by default. Then I changed it to 60 minutes yesterday. It did not work.
violinparts Posted May 14, 2018 Author Posted May 14, 2018 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.
MockoB Posted May 15, 2018 Posted May 15, 2018 It's not affiliated with the full page cache, because I never enabled it and my new arrivals still disappeared.
violinparts Posted May 15, 2018 Author Posted May 15, 2018 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.
datakick Posted May 15, 2018 Posted May 15, 2018 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); }
MockoB Posted May 15, 2018 Posted May 15, 2018 U r number 1 @datakick ! @lesley please include the fix for the next release.
datakick Posted May 15, 2018 Posted May 15, 2018 thanks for confirmation. I've created a pull request, so the fix should be part of the next module version
violinparts Posted May 15, 2018 Author Posted May 15, 2018 tks again. I wonder though if affects positions. Just now, I can no longer drag a module with a mouse to change position.
datakick Posted May 15, 2018 Posted May 15, 2018 @violinparts changing hook (displayHomeTab) position works fine for me
MockoB Posted May 15, 2018 Posted May 15, 2018 Is the featured products working for you @violinparts ? I just added couple of products and they didn't show on homepage.
violinparts Posted May 15, 2018 Author Posted May 15, 2018 It seems to be working. I chose yes for random display.
MockoB Posted May 15, 2018 Posted May 15, 2018 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.
violinparts Posted May 15, 2018 Author Posted May 15, 2018 On home page it shows as "Popular." The module behind is "featured products on the homepage."
lesley Posted May 15, 2018 Posted May 15, 2018 The module has been updated and the update should be in the back office feed soon.
lesley Posted May 15, 2018 Posted May 15, 2018 The new product block. The one that is mentioned to have a bug in it.
violinparts Posted May 15, 2018 Author Posted May 15, 2018 I fixed it using the code given here. Will the update override it? tks.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now