cjdamot Posted October 10, 2016 Share Posted October 10, 2016 (edited) Hi guys, can you help me? I'm using "Top-seller module" in my website. The module is working fine in my Products Page but there seems to be a problem in Homepage. It still displays "No best sellers at this time." I hope you can help me with this, Thanks! Edited October 10, 2016 by cjdamot (see edit history) Link to comment Share on other sites More sharing options...
spiralciric Posted October 10, 2016 Share Posted October 10, 2016 I am having exactly the same problem with New products block. What I have done is went to the Live Edit under Positions, I saw the two blocks saying "New products", so I binned the top one. Now I get: http://www.nero.rs I then went to see if I can transfer the module New products, but "Transplant to" is grayed out, so the whole position must have disappeared. Can anyone help us restore that? Link to comment Share on other sites More sharing options...
spiralciric Posted October 11, 2016 Share Posted October 11, 2016 Here is the update, its very simple to get it to work again, though not intuitive. You cannot add blocks directly from backoffice, that is something which I dislike, however, the solution that worked for me is simply go to the New products module, click on arrow and Reset. You can see the results: http://www.nero.rs Link to comment Share on other sites More sharing options...
cjdamot Posted October 11, 2016 Author Share Posted October 11, 2016 (edited) Here is the update, its very simple to get it to work again, though not intuitive. You cannot add blocks directly from backoffice, that is something which I dislike, however, the solution that worked for me is simply go to the New products module, click on arrow and Reset. You can see the results: http://www.nero.rs Thanks spiralciric for the help, I managed to make it work. I somehow got it working by changing its position in Positions tab. Although, when I hook it to displayHome instead in the displayHomeTab & displayHomeTabContent, it doesn't show any product. So what i did was to add a new line in the hookDisplayHome function: BlockBestSellers::$cache_best_sellers = $this->getBestSellers($params); And surprise! the top seller products showed. Thanks you so much for you help ! Edited October 11, 2016 by cjdamot (see edit history) Link to comment Share on other sites More sharing options...
dani Posted September 7, 2018 Share Posted September 7, 2018 in blocksellers.php in your hook function instead of : $this->smarty->assign(array( 'best_sellers' => BlockBestSellers::$cache_best_sellers, 'homeSize' => Image::getSize(ImageType::getFormatedName('home')) )); put: $this->smarty->assign(array( 'best_sellers' => $this->getBestSellers($params), 'homeSize' => Image::getSize(ImageType::getFormatedName('home')) )); it works! 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