[-] MO : Blocktopmenu - Fix missing categories and cms categories options

This commit is contained in:
Jerome Nadaud
2013-12-11 19:26:12 +01:00
parent 1284317326
commit 1d5cf86d19
2 changed files with 8 additions and 3 deletions
+7 -2
View File
@@ -52,7 +52,7 @@ class Blocktopmenu extends Module
{
$this->name = 'blocktopmenu';
$this->tab = 'front_office_features';
$this->version = 1.7;
$this->version = 1.8;
$this->author = 'PrestaShop';
$this->bootstrap = true;
@@ -910,7 +910,9 @@ class Blocktopmenu extends Module
$html = '<select multiple="multiple" id="availableItems" style="width: 300px; height: 160px;">';
$html .= '<optgroup label="'.$this->l('CMS').'">';
$this->_html = '';
$this->getCMSOptions(0, 1, $this->context->language->id);
$html .= $this->_html;
$html .= '</optgroup>';
// BEGIN SUPPLIER
@@ -933,7 +935,10 @@ class Blocktopmenu extends Module
// BEGIN Categories
$html .= '<optgroup label="'.$this->l('Categories').'">';
$this->getCategoryOption(1, (int)$this->context->language->id, (int)Shop::getContextShopID());
$this->_html = '';
$shop = new Shop((int)Shop::getContextShopID());
$this->getCategoryOption($shop->getCategory(), (int)$this->context->language->id, (int)Shop::getContextShopID());
$html .= $this->_html;
$html .= '</optgroup>';
// BEGIN Shops
+1 -1
View File
@@ -2,7 +2,7 @@
<module>
<name>blocktopmenu</name>
<displayName><![CDATA[Top horizontal menu]]></displayName>
<version><![CDATA[1.7]]></version>
<version><![CDATA[1.8]]></version>
<description><![CDATA[Add a new horizontal menu to the top of your e-commerce website.]]></description>
<author><![CDATA[PrestaShop]]></author>
<tab><![CDATA[front_office_features]]></tab>