DIBS module is not displayed in Prestashop 1.4 if “Minify HTML” option is turned on.

This problem may happen with other modules also so I decided to write a post about it and how to resolve it. So DIPS payment method is not displayed if “Minify HTML after “smarty compile” execution.” is turned on.

You can find this option in “Preferences->Performance” area:

Minify html
Minify HTML

If “Keep HTML as original” is selected then customers can select DIPS as payment method otherwise it is not displayed.

We found the problem in “dibs.tpl“. You can find this file in “modules/dibs/dibs.tpl“. The solution is very simple – just add one extra space after:

<input type="hidden" name="{$k}"

It should look like:

<input type="hidden" name="{$k}"  value="{$v}" />

I don’t know why but “Minify HTML” is not able to minify input field with the name “HTTP_COOKIE“. This field is set in dibs.php file on line 324:

$dibsParams['HTTP_COOKIE'] =
urlencode((string)serialize($params['cookie']));

This problem may cause many problems to other modules. So maybe this post will save some developers time.

This problem is declared in Prestashop’s issue tracker here. Maybe I will analyze this problem more deeply if it will not be resolved soon.

One thought on “DIBS module is not displayed in Prestashop 1.4 if “Minify HTML” option is turned on.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>