violinparts Posted May 14, 2018 Share 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? Link to comment Share on other sites More sharing options...
violinparts Posted May 14, 2018 Author Share Posted May 14, 2018 I mean when caching is on? Link to comment Share on other sites More sharing options...
MockoB Posted May 14, 2018 Share 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. Link to comment Share on other sites More sharing options...
violinparts Posted May 14, 2018 Author Share Posted May 14, 2018 Something is wrong with the caching system. Link to comment Share on other sites More sharing options...
BlindPenguin Posted May 14, 2018 Share 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. Link to comment Share on other sites More sharing options...
violinparts Posted May 14, 2018 Author Share Posted May 14, 2018 It is 0 by default. Then I changed it to 60 minutes yesterday. It did not work. Link to comment Share on other sites More sharing options...
violinparts Posted May 14, 2018 Author Share 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. Link to comment Share on other sites More sharing options...
MockoB Posted May 15, 2018 Share Posted May 15, 2018 It's not affiliated with the full page cache, because I never enabled it and my new arrivals still disappeared. Link to comment Share on other sites More sharing options...
violinparts Posted May 15, 2018 Author Share 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. Link to comment Share on other sites More sharing options...
datakick Posted May 15, 2018 Share 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); } Link to comment Share on other sites More sharing options...
MockoB Posted May 15, 2018 Share Posted May 15, 2018 U r number 1 @datakick ! @lesley please include the fix for the next release. Link to comment Share on other sites More sharing options...
violinparts Posted May 15, 2018 Author Share Posted May 15, 2018 Great. works well now. Thanks a lot!! Link to comment Share on other sites More sharing options...
datakick Posted May 15, 2018 Share Posted May 15, 2018 thanks for confirmation. I've created a pull request, so the fix should be part of the next module version Link to comment Share on other sites More sharing options...
violinparts Posted May 15, 2018 Author Share 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. Link to comment Share on other sites More sharing options...
datakick Posted May 15, 2018 Share Posted May 15, 2018 @violinparts changing hook (displayHomeTab) position works fine for me Link to comment Share on other sites More sharing options...
violinparts Posted May 15, 2018 Author Share Posted May 15, 2018 Ok, happened when my sftp in operation. Link to comment Share on other sites More sharing options...
MockoB Posted May 15, 2018 Share 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. Link to comment Share on other sites More sharing options...
violinparts Posted May 15, 2018 Author Share Posted May 15, 2018 It seems to be working. I chose yes for random display. Link to comment Share on other sites More sharing options...
violinparts Posted May 15, 2018 Author Share Posted May 15, 2018 here is my site: rackmetro.com Link to comment Share on other sites More sharing options...
MockoB Posted May 15, 2018 Share 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. Link to comment Share on other sites More sharing options...
violinparts Posted May 15, 2018 Author Share Posted May 15, 2018 On home page it shows as "Popular." The module behind is "featured products on the homepage." Link to comment Share on other sites More sharing options...
lesley Posted May 15, 2018 Share Posted May 15, 2018 The module has been updated and the update should be in the back office feed soon. Link to comment Share on other sites More sharing options...
violinparts Posted May 15, 2018 Author Share Posted May 15, 2018 What module? Link to comment Share on other sites More sharing options...
lesley Posted May 15, 2018 Share Posted May 15, 2018 The new product block. The one that is mentioned to have a bug in it. Link to comment Share on other sites More sharing options...
violinparts Posted May 15, 2018 Author Share Posted May 15, 2018 I fixed it using the code given here. Will the update override it? tks. Link to comment Share on other sites More sharing options...
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