Under PS 1.6.1.0, how to add a review through my back-office?

This FAQ only applies to merchants who have the PretsaShop 1.6.1.0 version.

 

If your shop is under PrestaShop 1.6.1.0 version and you have a module 4.x version, you may not succeed to add a review from your back office.

This problem comes from a known bug on the PrestaShop 1.6.1.0 version. Indeed, this version includes a bug in the header.inc.php file located in the back-office admin folder that does not declare the using of JavaScript correctly...

Here is how to solve the issue:

Context::getContext()->smarty->assign(array(
'navigationPipe', Configuration::get('PS_NAVIGATION_PIPE'),
'meta_title' => implode(' '.Configuration::get('PS_NAVIGATION_PIPE').' ', $title),
'display_header' => true,
'display_footer' => true,
));

Context::getContext()->smarty->assign(array(
'navigationPipe', Configuration::get('PS_NAVIGATION_PIPE'),
'meta_title' => implode(' '.Configuration::get('PS_NAVIGATION_PIPE').' ', $title),
'display_header' => true,
'display_header_javascript' => true,
'display_footer' => true,
));

 

JavaScript should work fine now in the back office and you should be able to post reviews from this latter.

Other FAQs in this category