From 30367e64278084aeb69d166c6ce46dca517acaee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1chym=20Tou=C5=A1ek?= Date: Thu, 26 Sep 2013 22:21:18 +0200 Subject: [PATCH 1/8] [-] FO : Fixed products without images --- controllers/front/ParentOrderController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/front/ParentOrderController.php b/controllers/front/ParentOrderController.php index 10e17bb85..3a02dd9dd 100644 --- a/controllers/front/ParentOrderController.php +++ b/controllers/front/ParentOrderController.php @@ -372,6 +372,7 @@ class ParentOrderControllerCore extends FrontController 'currencyFormat' => $this->context->currency->format, 'currencyBlank' => $this->context->currency->blank, 'show_option_allow_separate_package' => $show_option_allow_separate_package, + 'smallSize' => Image::getSize(ImageType::getFormatedName('small')), )); From 345d4cdbcf752c8d3e157da5a8a8a6d263a52cb7 Mon Sep 17 00:00:00 2001 From: Fabio Chelly Date: Fri, 27 Sep 2013 11:27:58 +0200 Subject: [PATCH 2/8] [-] MO productcomments: prevents guests to add comments when guest comment is disabled in backoffice --- modules/productcomments/productcomments.tpl | 4 +++- themes/default/modules/productcomments/productcomments.tpl | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/productcomments/productcomments.tpl b/modules/productcomments/productcomments.tpl index f8fe9f111..0c5c3aecb 100644 --- a/modules/productcomments/productcomments.tpl +++ b/modules/productcomments/productcomments.tpl @@ -76,11 +76,13 @@ var moderation_active = {$moderation_active}; {/if} {/foreach} + {if (!$too_early AND ($logged OR $allow_guests))}

{l s='Write your review' mod='productcomments'} !

+ {/if} {else} - {if ($too_early == false AND ($logged OR $allow_guests))} + {if (!$too_early AND ($logged OR $allow_guests))}

{l s='Be the first to write your review' mod='productcomments'} !

diff --git a/themes/default/modules/productcomments/productcomments.tpl b/themes/default/modules/productcomments/productcomments.tpl index 3cb407777..bbd737670 100644 --- a/themes/default/modules/productcomments/productcomments.tpl +++ b/themes/default/modules/productcomments/productcomments.tpl @@ -76,11 +76,13 @@ var moderation_active = {$moderation_active}; {/if} {/foreach} + {if (!$too_early AND ($logged OR $allow_guests))}

{l s='Write your review' mod='productcomments'} !

+ {/if} {else} - {if ($too_early == false AND ($logged OR $allow_guests))} + {if (!$too_early AND ($logged OR $allow_guests))}

{l s='Be the first to write your review' mod='productcomments'} !

@@ -141,7 +143,7 @@ var moderation_active = {$moderation_active}; {/if}