// id_category_default is now for multishop
This commit is contained in:
@@ -152,6 +152,7 @@ function getPath($urlBase, $id_category, $path = '', $highlight = '', $categoryT
|
||||
AND c.nright >= '.(int)$category['nright'].'
|
||||
AND cl.id_lang = '.(int)$context->language->id.
|
||||
($home ? ' AND c.id_category='.$id_category : '').'
|
||||
AND c.id_category != '.(int)Category::getTopCategory()->id.'
|
||||
GROUP BY c.id_category
|
||||
ORDER BY c.level_depth ASC
|
||||
LIMIT '.(!$home ? (int)($category['level_depth'] + 1) : 1);
|
||||
|
||||
@@ -58,10 +58,10 @@
|
||||
<td class="col-right">
|
||||
<select id="id_category_default" name="id_category_default">
|
||||
{foreach from=$selected_cat item=cat}
|
||||
<option value="{$cat.id_category}" {if $product->id_category_default == $cat.id_category}selected="selected"{/if} >{$cat.name}</option>
|
||||
<option value="{$cat.id_category}" {if $id_category_default == $cat.id_category}selected="selected"{/if} >{$cat.name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<div class="hint" style="display:block;">{l s='The default category is the category who is displayed by default.'}</div>
|
||||
<div class="hint" style="display:block;">{l s='The default category is the category who is displayed by default.'}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user