diff --git a/modules/productaccessories/productaccessories.php b/modules/productaccessories/productaccessories.php index c5d134a3..46cdf42d 100644 --- a/modules/productaccessories/productaccessories.php +++ b/modules/productaccessories/productaccessories.php @@ -100,9 +100,7 @@ class ProductAccessories extends Module } if(isset($showAccessories)) { - $context->smarty->assign(array('enable' => 1, 'label' => $label, 'showAccessories' => $showAccessories)); - } else { - $context->smarty->assign(array('enable' => 0)); + $context->smarty->assign(array('label' => $label, 'showAccessories' => $showAccessories)); } } diff --git a/themes/toutpratique/modules/productaccessories/views/templates/accessories.tpl b/themes/toutpratique/modules/productaccessories/views/templates/accessories.tpl index f44723d4..9e9d0b4f 100644 --- a/themes/toutpratique/modules/productaccessories/views/templates/accessories.tpl +++ b/themes/toutpratique/modules/productaccessories/views/templates/accessories.tpl @@ -1,130 +1,130 @@ +{if !empty($showAccessories)} +
- -
- - - {/if} - {else} - - {/if} ++ +
+ + + {/if} + {else} + + {/if} +