[-] MO : Blocktopmenu - Fix missing categories and cms categories options
This commit is contained in:
@@ -52,7 +52,7 @@ class Blocktopmenu extends Module
|
|||||||
{
|
{
|
||||||
$this->name = 'blocktopmenu';
|
$this->name = 'blocktopmenu';
|
||||||
$this->tab = 'front_office_features';
|
$this->tab = 'front_office_features';
|
||||||
$this->version = 1.7;
|
$this->version = 1.8;
|
||||||
$this->author = 'PrestaShop';
|
$this->author = 'PrestaShop';
|
||||||
|
|
||||||
$this->bootstrap = true;
|
$this->bootstrap = true;
|
||||||
@@ -910,7 +910,9 @@ class Blocktopmenu extends Module
|
|||||||
|
|
||||||
$html = '<select multiple="multiple" id="availableItems" style="width: 300px; height: 160px;">';
|
$html = '<select multiple="multiple" id="availableItems" style="width: 300px; height: 160px;">';
|
||||||
$html .= '<optgroup label="'.$this->l('CMS').'">';
|
$html .= '<optgroup label="'.$this->l('CMS').'">';
|
||||||
|
$this->_html = '';
|
||||||
$this->getCMSOptions(0, 1, $this->context->language->id);
|
$this->getCMSOptions(0, 1, $this->context->language->id);
|
||||||
|
$html .= $this->_html;
|
||||||
$html .= '</optgroup>';
|
$html .= '</optgroup>';
|
||||||
|
|
||||||
// BEGIN SUPPLIER
|
// BEGIN SUPPLIER
|
||||||
@@ -933,7 +935,10 @@ class Blocktopmenu extends Module
|
|||||||
|
|
||||||
// BEGIN Categories
|
// BEGIN Categories
|
||||||
$html .= '<optgroup label="'.$this->l('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>';
|
$html .= '</optgroup>';
|
||||||
|
|
||||||
// BEGIN Shops
|
// BEGIN Shops
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<module>
|
<module>
|
||||||
<name>blocktopmenu</name>
|
<name>blocktopmenu</name>
|
||||||
<displayName><![CDATA[Top horizontal menu]]></displayName>
|
<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>
|
<description><![CDATA[Add a new horizontal menu to the top of your e-commerce website.]]></description>
|
||||||
<author><![CDATA[PrestaShop]]></author>
|
<author><![CDATA[PrestaShop]]></author>
|
||||||
<tab><![CDATA[front_office_features]]></tab>
|
<tab><![CDATA[front_office_features]]></tab>
|
||||||
|
|||||||
Reference in New Issue
Block a user