johnme Posted December 21, 2013 Share Posted December 21, 2013 Hi Presta people Can any one guide me Recently i made a offer Sales for chirstmas Price lowred for Diffrent Product ... I change prices in Backoffice For products . I put discount for each product which is home page After i change price . when i logged in Home page . i cannot see the prices. i need to login backoffice > perfomance > Clear Cache . Without clear the Cache . cannot see new Prices . . every time i need to do this . Without Clear cache . How to see price diffrence and other changes .. i dont like to clearcache every time i update the price. what is the best configuation to avoid every time clearcache here my configuarion image Link to comment Share on other sites More sharing options...
El Patron Posted December 21, 2013 Share Posted December 21, 2013 I've noticed this with 'featured products' only, not prices in product/category lists... are you seeing this problem 'outside' of featured product on home page? Link to comment Share on other sites More sharing options...
johnme Posted December 21, 2013 Author Share Posted December 21, 2013 Only in home page . Featured products . other place categories and product pages is perfect . is there any way possible to fix the for featured products also can you tell me . my smarty Configuration is correct ? Link to comment Share on other sites More sharing options...
El Patron Posted December 21, 2013 Share Posted December 21, 2013 I don't know of a 'clean' way to stop this behavior. You can modify modules/homefeatured/homefeatured.php public function hookDisplayHome($params) { if (!$this->isCached('homefeatured.tpl', $this->getCacheId('homefeatured'))) { $category = new Category(Context::getContext()->shop->getCategory(), (int)Context::getContext()->language->id); $nb = (int)Configuration::get('HOME_FEATURED_NBR'); $products = $category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 8)); $this->smarty->assign(array( 'products' => $products, 'add_prod_display' => Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'), 'homeSize' => Image::getSize(ImageType::getFormatedName('home')), )); } return $this->display(__FILE__, 'homefeatured.tpl', $this->getCacheId('homefeatured')); } // STOP CHECK FOR CACHE: // NOTE homefeatures WILL NO LONGER USE CACHE public function hookDisplayHome($params) { // if (!$this->isCached('homefeatured.tpl', $this->getCacheId('homefeatured'))) // { $category = new Category(Context::getContext()->shop->getCategory(), (int)Context::getContext()->language->id); $nb = (int)Configuration::get('HOME_FEATURED_NBR'); $products = $category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 8)); $this->smarty->assign(array( 'products' => $products, 'add_prod_display' => Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'), 'homeSize' => Image::getSize(ImageType::getFormatedName('home')), )); // } return $this->display(__FILE__, 'homefeatured.tpl', $this->getCacheId('homefeatured')); } Link to comment Share on other sites More sharing options...
johnme Posted December 22, 2013 Author Share Posted December 22, 2013 if this copy and paste will work ? it will not affect current design Link to comment Share on other sites More sharing options...
El Patron Posted December 22, 2013 Share Posted December 22, 2013 you should of course back up the file, then really just place the // in front of the lines, or if you are more comfortable and the code matched (this is from 1.5.6.1) copy and paste. it will have no other affect than not caching featured products Link to comment Share on other sites More sharing options...
Recommended Posts