Prestashop Module Anywhere Slideshow Problem in PS 1.5

Anywhere Slideshow is one of Prestashop modules experiencing problem during Prestashop major updates from PS 1.4 to PS 1.5.

Displays slideshow using smarty function, for example {displaySlideshow id=1}, will causing SmartyCompilerException error unknown tag “displaySlideshow”. This problem caused by displaySlideshow function is not registered in smarty.

To solve the problem, add this line of code in pslideshows.php function hookHeader

$smarty->registerPlugin(“function”, “displaySlideshow”, array(__CLASS__, ‘displaySlideshow’));

public function hookHeader($params)
{
global $smarty, $cookie, $css_files, $js_files;

$css_files[_MODULE_DIR_.$this->name.'/jquery.bxSlider/bx_styles.css'] = 'screen';
$js_files[] = _MODULE_DIR_.$this->name.'/jquery.bxSlider/jquery.bxSlider.min.js';

if (method_exists($smarty, 'register_function')) {
$smarty->register_function('displaySlideshow', array(__CLASS__, 'displaySlideshow'));
}elseif(method_exists($smarty->register, 'registerPlugin')){
if(!isset($smarty->registered_plugins['function']['displaySlideshow']))
$smarty->registerPlugin("function", "displaySlideshow", array(__CLASS__, 'displaySlideshow'));
}
$smarty->registerPlugin("function", "displaySlideshow", array(__CLASS__, 'displaySlideshow'));
}

update

Check comment for module updates and discussion. Feel free to ask 🙂

Prestashop PS 1.5 Disable Mobile Theme Template

Salah satu fitur baru di Prestashop 1.5 adalah mobile theme. Di Prestashop 1.4 mobile theme harus menggunakan module, sedangkan di PS 1.5, fitur tersebut sudah termasuk default.

Jika ingin meniadakan / men-disable mobile theme di Prestashop 1.5, caranya dengan masuk ke halaman Preference / Theme di backend admin Prestashop. Di bagian appearance, ada opsi “Enable the mobile theme” tinggal dipilih “I’d like to disable it, please”.prestashop-1-5-disable-mobile-theme

Prestashop Hosting Error mcrypt_encrypt

Sewaktu migrasi prestashop dari local ke hosting, mungkin mengalami error mcrypt_encrypt undefined function mcrypt_encrypt(). Hal ini terjadi karena hosting tidak support ekstensi mcrypt.

Solusinya bisa dengan setting di tabel configuration. Ubah nilai PS_CIPHER_ALGORITHM menjadi 0.

Kalau ada akses ke WHM, bisa meng-enable ekstensi mcrypt melalui menu EasyApache.