-- HikaShop version -- : 232
je fais passer RELATED_PRODUCTS dans show_default.php au lieu de show.php de cette maniere
if (!empty ($this->modules) && is_array($this->modules)) {
jimport('application.module.helper');
foreach ($this->modules as $module) {
if($module->title == 'RELATED_PRODUCTS'){
echo '<div class="hk-other-color hk-other-color-related"><span class="hk-add-to-cart hk-other-color-title">' . JText::_('RELATED_PRODUCTS') . '</span><div class="hk-other-color-imgs">';
echo JModuleHelper::renderModule($module);
echo '</div>';
echo '</div>';
}
}
}
mais si c'est vide je ne veux rien afficher du tout
comment puis je savoir le nombre de produits related ?
merci