From 1208e45958b8b80617dc6f06045b24561845dde4 Mon Sep 17 00:00:00 2001 From: indesign47 Date: Wed, 3 Jul 2013 14:09:44 +0200 Subject: [PATCH] [-] BO : products comments impossible if quantity > 0 The pull request https://github.com/PrestaShop/PrestaShop/pull/219 makes the module not working properly in v1.5.4.1. Indeed, after this change, the OosHook works as expected but now, as the product comments module is attached to the OosHook, comments information is only shown when the product is out of stock! --- modules/productcomments/productcomments-extra.tpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/productcomments/productcomments-extra.tpl b/modules/productcomments/productcomments-extra.tpl index 930a806b6..d9547f8bf 100644 --- a/modules/productcomments/productcomments-extra.tpl +++ b/modules/productcomments/productcomments-extra.tpl @@ -35,6 +35,8 @@ $(function(){ }); +{if $logged == 1 || $nbComments != 0} +
{if $nbComments != 0}
@@ -60,4 +62,6 @@ $(function(){ {/if}
+
+{/if}