Jump to content

Free Module] Homecategoryplus Display Your Categories And Subcategories On The Home


Recommended Posts

  • Replies 200
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Hello, Here is my first free module that displays your categories, subcategories on the home page with a product for each category. FR post Tested on PS 1.4.7.3 | 1.4.8 | 1.4.9 | 1.5.2 | 1.5.3.1 |

Hi all, i'm working on a responsive version (bootstrap) and i'll upload it as soon as possible.    Ckarone

Hi all, I added a 0.7 version ( in the first post) that fixes the upload problem via BO and adding the support of multishops in PS1.5.   Ckarone

Posted Images

HI Ckarone,

 

Thanks for the great module.

Few doubts.

 

First

Where should I upload the image named 'medium'?

 

Second

In some catagories I dont have sub categories but it still says 'see all categories'. So how do I take it off?

 

Third

Currently there is only two categories in a row. How do I change it to three?

 

Four

How do I change the colour and font size of the category titles?

 

Five

The product images are not showing, do I have to upload that also named medium?

Share this post


Link to post
Share on other sites
  • 4 weeks later...
  • 3 weeks later...
  • 2 weeks later...
  • 4 weeks later...
  • 2 weeks later...
  • 5 weeks later...

Hello,

 

Here is my first free module that displays your categories, subcategories on the home page with a product for each category.

 

FR post

 

Tested on PS 1.4.7.3 | 1.4.8 | 1.4.9 | 1.5.2 | 1.5.3.1 | 1.5.4

 

Configurable, 29 points including:

-Show or not subcategories

-Show or images of main category

-Show or not the product (price / cart button)

-For colors, I added a color picker

-Show more than one product

-...

 

Available in FR | DE | EN (thanks Google)

 

Here is a exemple : http://imageshack.us...04/samplesz.jpg

 

UPDATE 0.7 with:

Multiboutique ready for PS 1.5

Upload bug removed 

 

attachicon.gifhomecategoriesplus.zip

 

UPDATE 0.6 with:

Fixed a product display problem

You can select the products order by (new, position, updated or random)

 

attachicon.gifhomecategoriesplus - v0.6.zip

 

UPDATE 0.5 with:

Hide categories and subcategories,

Support of categories and subcategories order for 1.4.x and 1.5.x,

JQUERY animation to PS 1.4 only (for now)

and this for free but I accept donations;).

 

attachicon.gifhomecategoriesplus - v0.5.zip

 

Ckarone

Hi, sory my english, how i can show only product in stock !? best regard

Share this post


Link to post
Share on other sites

Like to say great mod works in 1.5.6.1 just fine  I downloaded  0.7  back office says it is 0.3 no big deal it is is 0.7 installed. 

i have a few thing i dont know how to change so i made small image  

 

  • I would like to move the price down one line and make it red 
  • Have the text to bold in same style as rest of site. The current text makes it look out of place 
  • limit product name to just 2 lines of text  

Site is 1.5.6.1 with pretty much stock template  

 

Thanks Jeff   

post-80008-0-68855200-1390157166_thumb.jpg

Share this post


Link to post
Share on other sites

I'm trying to have the number of products in a category behind the category name. Could someone help with the code in the .tpl file? 

 

I did try to use the code from category-count.tpl, also with different tags like $produ and $categorie.prod but can't get it to work

{if $category->id == 1 OR $nb_products == 0}
	{l s='There are no products in  this category'}
{else}
	{if $nb_products == 1}
		{l s='There is %d product.' sprintf=$nb_products}
	{else}
		{l s='There are %d products.' sprintf=$nb_products}
	{/if}
{/if}

Share this post


Link to post
Share on other sites
  • 4 weeks later...
  • 4 weeks later...
  • 4 weeks later...
  • 2 weeks later...

@projectpb in order to remove the title " Categories" you have to remove this code a line 3 of homecategoriesplus.tpl:

<h1>{l s='Categories' mod='homecategoriesplus'}</h1>

To make the title categories bolder replace the line 22 of catpluscss.tpl by this 

#CategoriePlus .CatPlus .title a{font-weight:bold;color:#{/literal}{$displaysub19}{literal};text-decoration:none} 

Ckarone

Hello All,

 

 

    I am using Prestashop 1.5.6.2.I just installed Home Category Plus(0.7), its really a nice module.Many thanks to Ckarone for this contribution. Now, My requirement is as follows :

1. How can i change Border-Radius of the blocks?

2. How can i change title color "Category" from black to White?

3. How Can I change Price Font Colour to Bold and Red so that it could match to others products.

 

   Thanks in advance.

Hello All,

 

 

    I am using Prestashop 1.5.6.2.I just installed Home Category Plus(0.7), its really a nice module.Many thanks to Ckarone for this contribution. Now, My requirement is as follows :

1. How can i change Border-Radius of the blocks?

2. How can i change title color "Category" from black to White?

3. How Can I change Price Font Colour to Bold and Red so that it could match to others products.

 

   Thanks in advance.

Share this post


Link to post
Share on other sites
  • 2 weeks later...
  • 1 month later...
  • 1 month later...
  • 1 month later...

Hello,

this allowed multistores configuration?

thank you!

 

 

Hello,

Here is my first free module that displays your categories, subcategories on the home page with a product for each category.

FR post

Tested on PS 1.4.7.3 | 1.4.8 | 1.4.9 | 1.5.2 | 1.5.3.1 | 1.5.4 | 1.6 comming soon 

Configurable, 29 points including:
-Show or not subcategories
-Show or images of main category
-Show or not the product (price / cart button)
-For colors, I added a color picker
-Show more than one product
-...

Available in FR | DE | EN (thanks Google)

Here is a exemple : http://imageshack.us...04/samplesz.jpg

UPDATE 0.7 with:

Multiboutique ready for PS 1.5

Upload bug removed 

 

attachicon.gifhomecategoriesplus.zip

 

UPDATE 0.6 with:
Fixed a product display problem
You can select the products order by (new, position, updated or random)

attachicon.gifhomecategoriesplus - v0.6.zip

UPDATE 0.5 with:
Hide categories and subcategories,
Support of categories and subcategories order for 1.4.x and 1.5.x,
JQUERY animation to PS 1.4 only (for now)
and this for free but I accept donations;).

attachicon.gifhomecategoriesplus - v0.5.zip

Ckarone

Share this post


Link to post
Share on other sites
  • 4 weeks later...

Hi ckarone,

thanks for your great module and work.

We are using your module and we are really happy with it.

But we are trying to add to display short description of the associated product and is not not possible.

Or, you're trying to make the add button also works when a user is registered, the current button adds the product to cart when you are logged. Only when this is not logged.

I hope that you can help your, thank you very much.

 

Greetings,

Share this post


Link to post
Share on other sites

Ok for anyone who has been experiencing the same problem that I have which was that the module would include inactive/disabled products in the product listings here is a solution that I came up with:

 

In the homecategoriesplus.php file, find this line:

WHERE cp.`id_category` = ".$cat['id_category']." OR c.nleft >= ".$cat['nleft']." AND c.nright <= ".$cat['nright']." AND p.`active` = 1

and replace it with this:

WHERE cp.`id_category` = ".$cat['id_category']." AND p.`active` = 1

Please make sure to in "p.active" in the beginning of the sql query execution like so:

SELECT p.*, p.id_product as myid, p.active, pi.id_image, pl.name, pl.link_rewrite,pl.id_product, p.`active`, pl.id_lang, (p.`price` * IF(t.`rate`,((100 + (t.`rate`))/100),1)) AS orderprice

For whatever reason the "nleft" and "nright" values of the category table are somehow allowing all products to be listed regardless of whether they are actually active. If someone can explain why this is that would be great. In the meantime I hope this solution will bring some relief to anyone experiencing the same problem!

 

Kudos to ckarone for a great module!

Edited by gdinari (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites
  • 1 month later...
  • 3 weeks later...
  • 1 month later...
  • 2 months later...
  • 1 month later...
  • 4 weeks later...

hello i have a big problem on it ...

last version of module + prestashop 1.6.0.14

all my cat are display 3 times ...

i don't understand why ....

can you help me ?

Share this post


Link to post
Share on other sites
  • 1 month later...
  • 4 weeks later...

Hi all,

Have a look at the first post, the 0.8 version is out for PS 1.6  ;)

Don't forget to add a new image in your images management and call it medium

 

Ckarone

I don't understand, how to configure this module on 1.6.0.9

Share this post


Link to post
Share on other sites

I cannot edit anything in 1.6 it only shows a box to enter an email and a password.

I am experiencing the same problem. When you go to configure it it says this under the HOMECATEGORIESPLUS:

 

Here is my new generic module!

Thanks to PrestaShop, now I have a great module.

I can configure it using the following configuration form.

 

This module will boost your sales! 

 

Then it says documentation is available and at the bottom under SETTINGS it has the option for live mode on/off and has user and password written.

 

*running 1.6.1.0

Edited by anazmi (see edit history)

Share this post


Link to post
Share on other sites

i need a modification for this module and hope someone can help me:

 

i try to explain the modification with this example:

 

On the Index Site shows the module the root categories, 10 categories -> everything fine {HOOK_HOME}. If i switch to a root category site (RootCategory1), i would to show the other 9 root categories. i put a hook inside the category.tpl, so the result works fine.

But if i going to a Subcategory from RootCategory1, than i would to show the other subcategories from RootCategory1 not the Root Categories. So if RootCategory1 have 5 Subcategories, i would to show the 4 other subcategories from this Category.

And than if i going to the Sub-Subcategory than i would to show all other Sub-Subcategories from the Subcategory.

 

I have more than 6 Level_depths so i need some SQL Filter i think, now only shows  level_depth 2. Here ist the code from homecategoriesplus.php, how can i this modified for this result? I think $level = 2; is the problem and there is no $id_parent Filter. Thanks for some help

 

 

function hookDisplayCategorySimilar($params)
    {
        global $smarty;
//Looking for PS version in order to be compatible with 1.4 & 1.5
$level = 2; 
$ordre_cat = "ORDER BY cs.`position` ASC";
$ordre_join = "LEFT JOIN "._DB_PREFIX_."category_shop cs ON (cs.`id_category` = c.`id_category` AND cs.`id_shop` = ".(int)$this->context->shop->id.")";
 
 
$id_customer = (int)$params['cookie']->id_customer;
  $id_group = $id_customer ? Customer::getDefaultGroupId($id_customer) : _PS_DEFAULT_CUSTOMER_GROUP_;
  $id_lang = (int)$params['cookie']->id_lang;
//Set the date
  $now = date('Y-m-d H:i:s');
 
 
  $mycategories = array();
//Looking for the top categories with a limit (can be set in the BO)
$result_1 = Db::getInstance()->ExecuteS("SELECT * FROM "._DB_PREFIX_."category c
LEFT JOIN "._DB_PREFIX_."category_lang cl ON (c.`id_category` = cl.`id_category`)
LEFT JOIN "._DB_PREFIX_."category_group cg ON (cg.`id_category` = c.`id_category`)
".$ordre_join."
WHERE c.active = 1 
AND c.level_depth = ".$level."
AND cl.id_lang = ".$id_lang."
AND cg.id_group = ".$id_group."
ORDER BY c.`position` ASC");
foreach ($result_1 as $cat)
{
$caTg = array();
$caTg['id'] = $cat['id_category'];
$caTg['titre'] = preg_replace('/^[0-9]+\./', '', $cat['name']);
$caTg['link_rewrite'] = $cat['link_rewrite'];
 
array_push($mycategories,$caTg);
}
 
 
 
$smarty->assign(array(
 
'categories' => $mycategories,
'displaycat' => (int)Configuration::get('HOME_cat_plus__cat'),
'displaycatimg' => (int)Configuration::get('HOME_cat_plus__cat_img'),
 
));
     return $this->display(__FILE__, 'categoriesimilar.tpl');
}

Share this post


Link to post
Share on other sites

Just if anyone else have the problem with configuration of the module in 1.6 , the english arcice is missing files, go and get the zip from the french forum (see first post)

Share this post


Link to post
Share on other sites
  • 1 month later...

Hello,

I've installed the module succefully under 1.6.1.1 but i'm facing some issues when I try to do some modification on CSS file and TPL file but without any success, can some one help and tell me which files and in which directory need to modify,

 

thanks by advance,

Share this post


Link to post
Share on other sites
  • 2 weeks later...

Hello. I installed your module, but works for me. when I go to the configuration it makes me generating a pdf with the setup instructions, but do not download. On the other hand asks the email and password and does nothing. as I can activate? Thank you

Share this post


Link to post
Share on other sites
  • 2 weeks later...

Hi there,

thanks for your module, great work.

 

I've got a question about further functionality, is it possible to display subcategories from subcategories (deeper). I just want to use higher depth level.

It can be hardcoded.

 

Thanks in advance,

greetings form Poland

Share this post


Link to post
Share on other sites

Hello,

 

i installed the latest version of the homepage category plus, when changing some settings, i'll get an error after saving.

 

Version HCP: 0.8

Prestashop Version: 1.6.1.3

 

screenshots of the Configuration settings:

post-935083-0-63159500-1449170657_thumb.png

post-935083-0-55409400-1449170658_thumb.png

post-935083-0-22794700-1449170659_thumb.png

 

The error after trying to save the configuration.

post-935083-0-02444700-1449170660_thumb.png

 

How to configure the module?

What do i do wrong, to configure the module?

 

P.s.: I already downloaded and installed the French copy of the module, no improvement. 

Edited by BDohmen (see edit history)

Share this post


Link to post
Share on other sites
  • 3 weeks later...
  • 3 weeks later...
  • 2 months later...

Hello,
thank you for your module need to display on the home page called " Popular categories " to your module , I see no field where I can enter a name for this section in the module, if it is possible ?

Share this post


Link to post
Share on other sites

question: 

 

all category links are showing up as stacked like: same with and without pictures... 

 

link1

link2

link3

link4

link5 

link6 

 

How can i fix so they are like:

 

link1 link2 link3 link4 link5 link6

 

 

Using prestashop 1.6.1.4

Theme: Andrea

 

Thanks

Share this post


Link to post
Share on other sites
  • 3 weeks later...
  • 1 month later...
  • 2 months later...
  • 4 weeks later...
  • 4 weeks later...

Hi - please ignore this query. I found it. Great module, thanks

 

Hi,

I installed module, but it gives me only options to change colours.

How do I get to the category display settings?

 

Bruce

Share this post


Link to post
Share on other sites
  • 1 month later...

Sorry to make this thread resurge, ive just downloaded the module, and ive been working on translating it to spanish, but ive been unable to find the translation for the Oui/Non buttons at the module config at the back office, where are those located?

Thank you very much in advance ;) very nice job with the module

Share this post


Link to post
Share on other sites
  • 2 weeks later...
  • 1 month later...
  • 3 weeks later...
  • 2 months later...
  • 1 month later...
  • 1 month later...