Jump to content

roz

Members
  • Posts

    141
  • Joined

  • Last visited

Everything posted by roz

  1. hi! anyone knows how can i add in the Features in the product list add in Customer Name add in Delivery Date & Time add in Order Status in my PDF Invoice. can anyone help me? thanks in advance
  2. hi! anyone knows how can i add in the Features in the product list add in Customer Name add in Delivery Date & Time add in Order Status in my PDF Invoice. can anyone help me? thanks in advance
  3. hi! anyone knows how can i add in the Features in the product list add in Customer Name add in Delivery Date & Time add in Order Status in my Invoice. can anyone help me? thanks in advance
  4. sadly, both are not working any other solution? i'm also using default-bootstrap so i'm wondering why is it working for you waldiPL. is it a clean install of 1.6? mine is an upgrade from 1.5..
  5. this was the error Fatal error: Access to undeclared static property: BlockSpecials::$cache_products in /var/www/prestaPOL/modules/blockspecials/blockspecials.php on line 254
  6. thanks Nemo1 & waldiPL. will try both and let you guys know which one works for me. thanks!
  7. hi Vekia. no not that. the ad banner block on top of page as seen on demo site too. using default-bootstrap template
  8. hi all! has anyone had a need of the Quantity option in Product List? this is to lessen the clicks before you can add items into cart. which is very user friendly and very common to shopping sites. is there such an option available in prestashop? or we need to customize the code for that? anyone, please share thanks!
  9. you can add them in Modules > (search for) Top Horizontal Menu > then Configure
  10. hi Vekia, can you still able to check my BO? i can't send you a PM. the site is not in local anymore so you will be able to access it now thank you.
  11. hi Nemo1! i already have declare it but i still get the same error Fatal error: Access to undeclared static property: BlockSpecials::$cache_products in /var/www/prestaPOL/modules/blockspecials/blockspecials.php on line 254 these are the lines of codes at the end of my file so far. public function hookDisplayHomeTab($params) { if (!$this->isCached('tab.tpl', $this->getCacheId('specialproducts-tab'))) $this->_cacheProducts(); return $this->display(__FILE__, 'tab.tpl', $this->getCacheId('specialproducts-tab')); } public function hookdisplayHomeTabContent($params) { if (Configuration::get('PS_CATALOG_MODE')) return; // We need to create multiple caches because the products are sorted randomly $random = date('Ymd').'|'.round(rand(1, max(Configuration::get('BLOCKSPECIALS_NB_CACHES'), 1))); if (!Configuration::get('BLOCKSPECIALS_NB_CACHES') || !$this->isCached('blockspecials.tpl', $this->getCacheId('blockspecials|'.$random))) { if (!($special = Product::getRandomSpecial((int)$params['cookie']->id_lang)) && !Configuration::get('PS_BLOCK_SPECIALS_DISPLAY')) return; $this->smarty->assign(array( 'special' => $special, 'priceWithoutReduction_tax_excl' => Tools::ps_round($special['price_without_reduction'], 2), 'mediumSize' => Image::getSize(ImageType::getFormatedName('medium')), )); } return $this->display(__FILE__, 'blockspecials.tpl', (Configuration::get('BLOCKSPECIALS_NB_CACHES') ? $this->getCacheId('blockspecials|'.$random) : null)); } public function _cacheProducts() { if (!isset(BlockSpecials::$cache_products)) { $category = new Category(Context::getContext()->shop->getCategory(), (int)Context::getContext()->language->id); $nb = (int)Configuration::get('BLOCKSPECIALS_NB_CACHES'); BlockSpecials::$cache_products = $category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 8), 'position'); } if (BlockSpecials::$cache_products === false || empty(BlockSpecials::$cache_products)) return false; } the additional declaration i added here because if i put it on top of it it gives error class BlockSpecials extends Module { protected $cache_products; private $_html = ''; private $_postErrors = array(); something wrong with my codes? thank you
  12. hi Nemo1. sorry again so i already added this chunk of code replaced the variables (which i'm not sure if correct ) and i get this error Fatal error: Access to undeclared static property: BlockSpecials::$cache_products in /var/www/prestaPOL/modules/blockspecials/blockspecials.php on line 253 so i guess i'm using a wrong variable?
  13. hi Veika. how can i keep Ajax enabled but i don't want the confirmation message? thanks
  14. i also want to remove this popup. please share your solution here thanks
  15. hey dioniz, i just tried it and my old problem goes back. when i set to 6 rows, when i switch to List View, the layout breaks. any idea why? another question, if i want 4 in a row? what values do i need to change? and is 5 possible? hehe. thank you!
  16. hi! anyone here got any idea why? it's enabled and got sample banner too. but it's not showing. thanks!
  17. okay i got this error Fatal error: Call to undefined method BlockSpecials::_cacheProducts() in /var/www/prestaPOL/modules/blockspecials/blockspecials.php on line 219 some lines of code i'm missing?
  18. hi Nemo. thank you for replying. i have added this code in blockspecials.php public function hookDisplayHomeTab($params) { if (!$this->isCached('tab.tpl', $this->getCacheId('specialproducts-tab'))) $this->_cacheProducts(); return $this->display(__FILE__, 'tab.tpl', $this->getCacheId('specialproducts-tab')); } public function hookdisplayHomeTabContent($params) { if (Configuration::get('PS_CATALOG_MODE')) return; // We need to create multiple caches because the products are sorted randomly $random = date('Ymd').'|'.round(rand(1, max(Configuration::get('BLOCKSPECIALS_NB_CACHES'), 1))); if (!Configuration::get('BLOCKSPECIALS_NB_CACHES') || !$this->isCached('blockspecials.tpl', $this->getCacheId('blockspecials|'.$random))) { if (!($special = Product::getRandomSpecial((int)$params['cookie']->id_lang)) && !Configuration::get('PS_BLOCK_SPECIALS_DISPLAY')) return; $this->smarty->assign(array( 'special' => $special, 'priceWithoutReduction_tax_excl' => Tools::ps_round($special['price_without_reduction'], 2), 'mediumSize' => Image::getSize(ImageType::getFormatedName('medium')), )); } return $this->display(__FILE__, 'blockspecials.tpl', (Configuration::get('BLOCKSPECIALS_NB_CACHES') ? $this->getCacheId('blockspecials|'.$random) : null)); } then transplanted the Specials block module in displayHomeTab & displayHomeTabContent. i still get a blank page. something else i'm still missing? sorry for the trouble
  19. okay will try that. but i might as well keep it that way hehe. thanks!
  20. apparently, it's not working on 1.6 and i hope it can be done like how it's presented in product page, just a "+" & "-" button to add and reduce quantity
  21. has anyone tried it on 1.6? i will give it a try now. hope it works
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More