Jump to content

Subcategories in left column?


Recommended Posts

Hi.

 

I am really unsure of what to do here. My top horizontal menu has my main categories in it with the subcategories as a dropdown. If the costumers decide to click on the main category instead of the subs all products in all the subs will appear on a page. On top of the page the subcategories will be. I would like the subs to be moved to the left column and on top of each other as a menu with no description og image. Like:

 

Sub 1

Sub 2

Sub 3

 

I made a sketch for you to better understand:

 

help_zps2702af1c.jpg

 

 

This is the main category page: http://olivereggertsen.dk/11-kvinder

What shall i do?

 

 

Thanks in advance :-)

Edited by OliverEggertsen (see edit history)
Link to comment
Share on other sites

in my opinion: yes. Module is the best way to achieve what you want.

 

I have now for the first time tried to create a module and i can't figure it out. I tried to follow the 1.5 prestashop guide but i can't seem to get the installation right. My php file atm looks like this:

 

<?php

if (!defined('_PS_VERSION_'))

exit;

 

class SubKvinder extends Module

{

public function __construct()

{

$this->name = 'subkvinder';

$this->tab = 'front_office_features';

$this->version = '1.0';

$this->author = 'Firstname Lastname';

$this->need_instance = 0;

$this->ps_versions_compliancy = array('min' => '1.5.3.1', 'max' => '1.5.3.1');

$this->dependencies = array('blockcart');

 

parent::__construct();

 

$this->displayName = $this->l('SubKvinder');

$this->description = $this->l('En blok der viser underkategorier.');

 

$this->confirmUninstall = $this->l('Are you sure you want to uninstall?');

 

if (!Configuration::get('MYMODULE_NAME'))

$this->warning = $this->l('No name provided');

}

public function install()

{

if (Shop::isFeatureActive())

Shop::setContext(Shop::CONTEXT_ALL);

 

return parent::install() &&

$this->registerHook('leftColumn') &&

$this->registerHook('header') &&

Configuration::updateValue('MYMODULE_NAME', 'my friend');

}

 

public function uninstall()

{

if (!parent::uninstall())

Db::getInstance()->Execute('DELETE FROM `'._DB_PREFIX_.'mymodule`');

parent::uninstall();

}

}

?>

 

 

But when i try to install the module it says "The version of your module is not compliant with your prestashop version". I have version 1.5.3.1 which i wrote in the .php.

 

What do i do wrong. Could you help me create a module with the subcategories in left column? :-)

Link to comment
Share on other sites

×
×
  • Create New...