Jump to content
ckarone

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

Recommended Posts

Hey,

it is very good. thank you very much. You are good. :-)

Where can I modify the number of columns and a size of boxes?

Share this post


Link to post
Share on other sites

thanks for this module

 

I can improve your translation of french if you want...

Share this post


Link to post
Share on other sites

Hello officier.hu,

You just have to set a larger module width in the general settings.

For the size box, in the topcategories settiongs you can set the size box with the block width.

 

Ckarone.

Share this post


Link to post
Share on other sites

Hello papich,

 

You can send me the FR translation and i will include it to the module.

 

Ckarone

  • Like 1

Share this post


Link to post
Share on other sites

Ta traduction est bonne il manque quelques accents...

 

juste je n'ai pas réussi à traduire "module width (W in px):" en "largeur du module en pixel:"

 

Personnellement j'aurai mis le block crédits à coté des configurations , et les blocs général, catégories principales...les un sous les autres pour plus de lisibilité

 

Tu demande de créer un nouveau gabarit d'image en médium 80*80 mais tu dis pas à qui on doit l'appliquer...produit, catégorie, fabricant....

 

De plus, il serait bien de mettre un selecteur de couleur et d'y associer le code en html pour plus de faciliter

 

Penses tu qu'avec ton module je puisse faire ceci

http://www.prestasho...__fromsearch__1

 

Merci

Edited by papich

Share this post


Link to post
Share on other sites

Hello,

 

It's strange, i'll try to figure out the problème.

 

What is your PS version?

 

Ckarone

Share this post


Link to post
Share on other sites

Hi Ckarone,

 

I'm on 1.52 with a mutistore. I have not tried on any of the other stores yet which are all on the same version but I will give it a go and let you know if there is any change. Many thanks for your assistance in advance. very kind.

 

Cheers

 

Dean0

Share this post


Link to post
Share on other sites

Hello,

 

Is possible to place only one photo per box/category? (of course it must full fill the category grid)

 

I've disabled products and subcategories, I've increased the size of the photos up to 300x300px but I think there are some margins that don't allow to make it.

 

You can see an idea of what I'd like in this website: www.hilosparacoser.com

 

Thank you very much for your help.

Share this post


Link to post
Share on other sites

Hello hilosparacoser, which margin is a problem for you, right / left or top / bottom of the image?

 

I currently working on a new version of the module including Jquery animation, it's a beta but you can try it, homecategoriesplus.zip.

 

Ckarone

Share this post


Link to post
Share on other sites

Sincerely I don't know which margin is the problem. I've got photos of different sizes and each one has one position.

 

I think if I could know the space available for the image on the grid I could fit my photos to this size and change:

preferences->image->medium to this size and check where is the margin.

 

Thanks

Share this post


Link to post
Share on other sites

Hi,

This is just what I've been looking for, brilliant module :-)

One slight problem though, the product images aren't showing. Its like your module cant find the images.

 

Is the latest version compatible with PS 1.5.3.1 ??

 

By the way, its been added to www.tekplanet.co.uk

 

Cheers

Andy

Edited by CameraTek

Share this post


Link to post
Share on other sites

Please ignore my last post. Just downloaded the latest version and it tells you there to regenerate your product images :-)

 

Andy

Share this post


Link to post
Share on other sites

Hello CameraTek,

 

Can you confirm me that the module is working on 1.5.3.1.

 

Ckarone

Share this post


Link to post
Share on other sites

Hi ckarone,

Yes its working for me.

Just the one problem I think is that when I add an image to a product it doesn't seem to be generating a 80 x 80 image for it automatically It might just be my config is incorrect.

 

Andy

Share this post


Link to post
Share on other sites

What would be good if you had full control of which categories your module would show :-)

 

Andy

Share this post


Link to post
Share on other sites

What would be good if you had full control of which categories your module would show :-)

 

Andy

 

Ok i keep this for the next version.

 

Ckarone

Share this post


Link to post
Share on other sites

Don''t forget to create a image called "medium" with a width and a height of 80*80px available for categories and products.

 

You havo to refresh the product images.

 

Ckarone

Share this post


Link to post
Share on other sites

Which module version are you using?

 

What's wrong?

 

Ckarone

Edited by ckarone

Share this post


Link to post
Share on other sites

Don''t forget to create a image called "medium" with a width and a height of 80*80px available for categories and products.

 

You havo to refresh the product images.

 

Ckarone

Share this post


Link to post
Share on other sites

Hi. The module is very good, thank you. Please help me with one problem. Not the sort of categories on positions.

 

Thanks and sorry my english

Share this post


Link to post
Share on other sites

Hello shacker ..

first of all ..! a fantastic module ...!

I installed your module in version 1.5.3 and it works almost perfectly. Now, there is a detail that is not working and that if in the back office change the order of the categories, since your module does not change the order and always has the same order the categories. It would be helpful to do so. You can look to see who would have to modify your code module for that if I change the order of the categories, also will change the order in your module???

 

I hope I explained well ..

 

thanks

Edited by jonysi_d

Share this post


Link to post
Share on other sites

Module update to version 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;).

 

To download, try the first post.

 

Ckarone

Share this post


Link to post
Share on other sites

I just installed the 0.5 version on a 1.5.3 prestashop but it shows me only 2 categories, why ?

 

solved: forget my question! thanks!

 

It would be cool to have more than 2 categories per line! i ll check the script!

Edited by fulviods

Share this post


Link to post
Share on other sites

ckarone, thnx for module works good, but why there is no function hide image from products?

 

And it will be very good will be able to specify different image sizes for categories and products, it's possible?

Share this post


Link to post
Share on other sites

I try to install, but got this message Fatal error[PrestaShop] Fatal error in module Unk:

Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater

Share this post


Link to post
Share on other sites

Hello,

 

Module updated, check my first post.

 

@faunderis register_long_arrays is a configuraton setting, what is Unk module!!

 

Ckarone

Edited by ckarone

Share this post


Link to post
Share on other sites

Hi Guys, trying to install on 1.5.3.1 and it gives me a fatal error page after uploading?? any assistance would be most appreciated(single store & multistore) doesnt work. many thanks in advance.

 

Dean0

Share this post


Link to post
Share on other sites

Hello,

 

Module updated, check my first post.

 

@faunderis register_long_arrays is a configuraton setting, what is Unk module!!

 

Ckarone

I don't understand, what i should do. My server information bottom, i think it's ok. But why i can't upload this module?

PHP version: 5.3.21

Required parameters: OK

Optional parameters: OK

Share this post


Link to post
Share on other sites

I just try to install the latest version (V0.6) on a 1.5.3.1 without any error.

 

Did you try to install with FTP?

 

Ckarone

Share this post


Link to post
Share on other sites

Before installing the module, rename the directory/zip file to "homecategoryplus", remove the version at the end of the directory name.

 

Ckarone

Edited by ckarone

Share this post


Link to post
Share on other sites

1.

Don't forget to create a image called "medium" with a width and a height of 80*80px available for categories and products

Where to upload image called "medium"?

 

2. How to change text in the frame into white color? In settings i haven't found it?

 

3. Why i getting two the same category?

 

4. Thanks for help.

 

untitled.jpg

Share this post


Link to post
Share on other sites

SOLUTION to repeated categories->

 

Find:

 

$ordre_join = "LEFT JOIN "._DB_PREFIX_."category_shop cs ON (cs.`id_category` = c.`id_category`)";

 

Replace:

$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.")";

 

-----------------------------

 

Find:

 

AND cl.`id_lang` = '".$id_lang."'

 

Replace:

 

AND cl.`id_lang` = ".$id_lang.Shop::addSqlRestrictionOnLang('cl')."

Edited by Prestapepe

Share this post


Link to post
Share on other sites

SOLUTION to repeated categories->

 

Find:

 

$ordre_join = "LEFT JOIN "._DB_PREFIX_."category_shop cs ON (cs.`id_category` = c.`id_category`)";

 

Replace:

$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.")";

 

-----------------------------

 

Find:

 

AND cl.`id_lang` = '".$id_lang."'

 

Replace:

 

AND cl.`id_lang` = ".$id_lang.Shop::addSqlRestrictionOnLang('cl')."

Edited by Prestapepe

Share this post


Link to post
Share on other sites

Thanks for your module its working great but i got a problem with subcategories ,i can't be able to limit them ... if i set the limit of subcategories to 5 it will show all of them , i am using prestashop 1.4.8.2

Edited by faDdy

Share this post


Link to post
Share on other sites

SOLUTION to repeated categories->

 

Find:

 

$ordre_join = "LEFT JOIN "._DB_PREFIX_."category_shop cs ON (cs.`id_category` = c.`id_category`)";

 

Replace:

$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.")";

 

-----------------------------

 

Find:

 

AND cl.`id_lang` = '".$id_lang."'

 

Replace:

 

AND cl.`id_lang` = ".$id_lang.Shop::addSqlRestrictionOnLang('cl')."

Prestshop 1.5.3.1 version does not work, you can see here http://www.viskaszvejybai.lt/

Why if Display sub-cat images:off everything is ok?I fixed it, just upload and rename image of medium :)

Edited by faunderis

Share this post


Link to post
Share on other sites

Very good module, but i think needs several improvements:

1. Oppurtunity to upload Large icons of subcategories.

2. Oppurtunity to put borders around products something like in photo. Boder number 1 and number 2.

help.jpg

Edited by faunderis

Share this post


Link to post
Share on other sites

Thanks for your fantastic module. I need show categories in all the categories and subcategories. If I modify homecategoriesplus.tp the code that show only images of categories is

 

{if $jquery == 0}
 {if $categories}
  <div id="CategoriePlus">
  {foreach from=$categories item=categorie name=cats}
  {assign var='categoryLink' value=$link->getcategoryLink($categorie.id, $categorie.link_rewrite)}
	   <div class="CatPlus" {if $smarty.foreach.cats.last}id="last_item"{/if}><a href="{$categoryLink}">
				<img src="{$img_cat_dir}{$categorie.id}-medium_default.jpg" alt="{$categorie.titre}" title="{$categorie.titre}" id="categoryImage" /></a>
	   </div>
  {foreachelse}
   {l s='Price' mod='Ooooopss, no category'}
  {/foreach}
  </div>
  <br style="clear:both" />
 {/if}
{/if}

 

This works fine in homepage but If I add this code in product-lit then the categories don´t is showed

 

What code would I modify for show categories in all the categories and subcategorias in category page (product-list.tpl) ??

 

best regards

Share this post


Link to post
Share on other sites

@seog, this module is only for the home page, i sorry but i don't have time to do it for categories pages.

 

Ckarone

Share this post


Link to post
Share on other sites

@Prestapepe can You give more information about your modification, i'l try to fix this.

 

Ckarone

Share this post


Link to post
Share on other sites

as Faunderis indicated, I think it is a very nice module, thank you.

 

However like Faunderis, I think it is very important to be able to change the size of the thumbnail.

Can you please indicate where did you define the link to the pictures in the code ?

 

How to change this link in the code ?

 

In my store for example, the code is currently pointing to "/prestashop/img/p/11-143-medium.jpg"

 

How to change the code so that it points to "/prestashop/img/p/11-143-large.jpg" ??

 

Can you please give the full path to the code so that I can find what to change, and where it is located ?

 

Thank you

Edited by lweinlan

Share this post


Link to post
Share on other sites

Hello

 

Nice work. We know, 4 your free work you have a lot of questions. And we have also one! did it work with prestashop 1.5.4?

 

Greez from Switzerland

Share this post


Link to post
Share on other sites

I tried to install this module v0.6 on my prestashop v1.5.4.0 but got an error, "There was an error while extracting the module (file may be corrupted)." How should I do to solve this? Thank you before.

Share this post


Link to post
Share on other sites

I'm simple upload directory to module folder (extracled zip local)

Share this post


Link to post
Share on other sites

thanks for module. but i don't see any pictures of the categories. how i can fix it? thanks

Share this post


Link to post
Share on other sites

thanks for module. but i don't see any pictures of the categories. how i can fix it? thanks

 

maybe you should check the .tpl file and point to img src code. maybe you should add "_default" behind the filename.

  • Like 1

Share this post


Link to post
Share on other sites

maybe you should check the .tpl file and point to img src code. maybe you should add "_default" behind the filename.

i don't understand what did you mean. i have add a picture for one category and for one item, but module didn't show shis pictures on general page

post-541242-0-22035000-1366289324_thumb.jpg

post-541242-0-36618400-1366289341_thumb.jpg

Edited by kotkotan

Share this post


Link to post
Share on other sites

Hi,

 

Don't forget to create a image called "medium" with a width and a height of 80*80px available for categories and products and refresh your images in your back office.

 

Ckarone

Share this post


Link to post
Share on other sites

Hi,

 

Don't forget to create a image called "medium" with a width and a height of 80*80px available for categories and products and refresh your images in your back office.

 

Ckarone

when i've add a image in category on ftp there are 5 images...

for example category 6....

6.jpg

6-category_default.jpg

6-large_default.jpg

6-medium_default.jpg

6-small_default.jpg

 

what file should i rename for "medium" ??

thanks

Share this post


Link to post
Share on other sites

Hi.

I really want to install your module (it looks great) but I have a big problem.

 

When I go to modules-->add and i select homecategoriesplus, all seems work and it appears "module installed"

I can also see it in modules folder, via ftp.

But the problems is that I can't see it in modules list, so I can't install and activate it.

 

I tried with the 0.6 version, also with original name and renamed. With 0.5 the problem is the same.

The version 0 works instead (after install I can see it in modules list), but it doesn't work very well with PS 1.5.4.0 (no image, no possibility of change,..)

 

Any idea?

Thanks.

Share this post


Link to post
Share on other sites

try this:

unzip module archive v0.6

rename folder to `homecategoryplus` without any digits, spaces, etc..

copy this folder to /site/modules/ by ftp

reload module page in back office, module should be there, click install

I have PS 1.5.4.0 its work for me, but i can't still fix this module to show pictures of the category and items:-)

Edited by kotkotan
  • Like 1

Share this post


Link to post
Share on other sites

try this:

unzip module archive v0.6

rename folder to `homecategoryplus` without any digits, spaces, etc..

copy this folder to /site/modules/ by ftp

reload module page in back office, module should be there, click install

I have PS 1.5.4.0 its work for me, but i can't still fix this module to show pictures of the category and items:-)

 

thank you very much! it works. but now I have your same problem :D

Share this post


Link to post
Share on other sites

hi, i don't know why but now are showed only two categories..i've tried to reset the module but with no positive results..

Share this post


Link to post
Share on other sites

Hi, this module works great in my prestashop, but I have a notice error, that show at the home page.

 

This is the notice:

Notice: Undefined index: prod in /var/www/vhost/mequierovivir.com/home/html/tienda-online/cache/smarty/compile/bc9427319e6556c0476b23d9af6a34b14791ac32.file.homecategoriesplus.tpl.php on line 73

 

You can see in the web http://mequierovivir.com/tienda-online/

 

I only need put off the notice, all rest work perfect!!!

Share this post


Link to post
Share on other sites

Hello,

 

Super le module.

J'ai une erreur :

 

Undefined index: prod in ./cache/smarty/compile/b7/fc/74/b7fc7476061f87dc0f5ba85130c7bcdf967a8ac9.file.homecategoriesplus.tpl.php on line 74

 

Et c'est qu'on a pas la possibilité de choisir QUE les catégories à afficher

Share this post


Link to post
Share on other sites

Great module, thanks.

 

The module shows all categories and all subcategories underneath, but I would like to fit just one subcategory, and not every single subcategory inside that category.

 

Would it be possible to show just one subcategory per category?

Share this post


Link to post
Share on other sites

I still have subcategories repeated on home page, I tried the recommendation above but it did not work, unsure how to fix this?

Share this post


Link to post
Share on other sites

Hello Crarone, I would like to display 12 categories and 1 subcategory on each.

 

I have changed the settings through the backoffice, in the General tab, I set:

 

Number of cat. 10

 

Nb of sub cat: 1

 

But still displays the full amount of subcategories on each.

 

Do you know how to solve this?

 

Thanks

post-343784-0-56058500-1368279094_thumb.jpg

Share this post


Link to post
Share on other sites

@Alejandro Fernandez, try to clear your PS cache and force compile.

 

@the hat lady try the same as Alejandro Fernandez.

 

@neodominique, @patxianton what's your PS version?

 

@conidig that's strange did you update your hosting (PHP, Apache, MYSQL, ...)?

 

@almed did you add the "medium" image and refresh the images?

 

Ckarone

Share this post


Link to post
Share on other sites

Thanks for your reply Ckarone, but it is not a matter of cache, I am getting as well many duplicated subcategories and its a fresh installation of the module, no settings done yet by me, and I actually get the same id category duplicated several times.

 

I send you a printscreen as an example of duplicated categories and subcategories.

 

I really want to use this module, seems great just needs a fix. Could you help me to sort this, please?

 

My PS is 1.5.3.1

 

Thanks

post-343784-0-50257300-1368802274_thumb.jpg

Edited by Alejandro Fernandez

Share this post


Link to post
Share on other sites

@conidig that's strange did you update your hosting (PHP, Apache, MYSQL, ...)?

Ckarone

yes, i did...i tried to reinstall the module and it initially was working good but then this one showed only one category

Share this post


Link to post
Share on other sites

Hi crone.

How replace module from hook home page content to top of pages?

 

[sOLVED]

Edited by And63

Share this post


Link to post
Share on other sites

I upload the module, but can't find it by the name...

Share this post


Link to post
Share on other sites

it's really strange, now below the products is shown the buy now button but in french..ajouter au panier....

Share this post


Link to post
Share on other sites

Prestapepe solution for duplicated categories worked perfect, thanks a lot!

 

I would like to show as well subcategories from second level. At the moment I get displayed subcategories from first level (parent subcategories)

Is it possible to do this?

Share this post


Link to post
Share on other sites

Can somebody help me? I end up on this page, by searching a solution for displaying the subcategories (not on home page) on 2 columns? (see the image attached below)

 

ydh.png

 

Uploaded with ImageShack.us

 

I just want "Accesorii masini de cusut" to be displayed next to "Masini de cusut " subcategory...

Edited by anukku

Share this post


Link to post
Share on other sites

Hi,

 

Don't forget to create a image called "medium" with a width and a height of 80*80px available for categories and products and refresh your images in your back office.

 

Ckarone

 

Hi ckarone,

 

You have made a great module. Thank you. I have installed it on PS 1.5.4.1.

I followed all posts and couldn't figure out how to create images for each category/subcategory how to name them

and where to place them. I have placed the image in all folders mentioned in question 2 and clear cache, smarty, browser cache,

forced compilation etc. It doesn't work.

 

It appears that you cut and paste the same sentence regarding the images and it is confusing.

Can you please be specific and answer the following questions:

1. What should be the extension of the image? jpg, png, gif

2. In which category should I place the image? The module Images or PS img or theme img.

3. You have mentioned only one image name which is "medium".

If I have several images for categories/subcategories what should be the names and how can I

link each image to category?

 

 

Best Regards

Share this post


Link to post
Share on other sites

Hi ckarone,

 

You have made a great module. Thank you. I have installed it on PS 1.5.4.1.

I followed all posts and couldn't figure out how to create images for each category/subcategory how to name them

and where to place them. I have placed the image in all folders mentioned in question 2 and clear cache, smarty, browser cache,

forced compilation etc. It doesn't work.

 

It appears that you cut and paste the same sentence regarding the images and it is confusing.

Can you please be specific and answer the following questions:

1. What should be the extension of the image? jpg, png, gif

2. In which category should I place the image? The module Images or PS img or theme img.

3. You have mentioned only one image name which is "medium".

If I have several images for categories/subcategories what should be the names and how can I

link each image to category?

 

 

Best Regards

 

Ok. I have managed to find images location and answer all my above questions

 

The images should be located under home/img/c/

 

If the category ID is 1 the image name is 1-medium.jpg

If the category ID is 2 the image name is 2-medium.jpg

If the category ID is 3 the image name is 3-medium.jpg

 

How to find category ID?

 

1. Backend catalog-->category. Look at the left column

2. Frontend from the top menu point on a category and on the bottom right hand side you will see

index.php?id_category=3&controller=category

Share this post


Link to post
Share on other sites

@conidig that's strange did you update your hosting (PHP, Apache, MYSQL, ...)?

Ckarone

yes, i did...i tried to reinstall the module and it initially was working good but then this one showed only one category

Share this post


Link to post
Share on other sites

Hi Ckarone,

Thank's for your module it is super. i have installed in in my test shop and have a problem. What should I do to get an effect like the picture. I want to move a list of subcategories of the picture.

post-619827-0-38570800-1373468889_thumb.png

Share this post


Link to post
Share on other sites

Hi ckarone 1st thank you for his amazig module that's what i was sherching since a few months ago.

 

well but i have to adjust it to my template to get better view so i have three thing to adjust this time maybe more later

 

1/ the background color of product block its trensparent and i need some white color

 

2/ product image bigger than 80x80 like 150x150

 

3/ color and font style of product title and price

 

thank you in advance

 

www.elegant-pc.com

Share this post


Link to post
Share on other sites

Hello

 

I have V. 1.5.4.1 and download the file V0.6 of your module.

After the installation, appears OK symbol process, but I not have the modul installed and not show in the list of modules.

 

any sugerence?

 

Best Regards

José

Share this post


Link to post
Share on other sites

Hi

 

ckarone

 

i am using your module and i need in each catogories 5 product to display on home page please help me

Share this post


Link to post
Share on other sites

Hi

 

ckarone

 

i am using your module and i need in each catogories 5 product to display on home page please help me

Did you saw his module have a configuration panel from module edit , from where you can add how many product you like to show and also what will he the product area height and width.

Share this post


Link to post
Share on other sites

@smartdatasoft can you help us to improve this module in responsive?

Share this post


Link to post
Share on other sites

@smartdatasoft can you help us to improve this module in responsive?

Please share your design i will try to help. Did you saw that the module have some problem. I have install the module yesterday and the animation is not working. and also there is bug when there is no product assign in any particular category.

But over all great work and contribution.

Share this post


Link to post
Share on other sites

so share with us your ideas

 

i think the module is better if it's in responsive mode

Edited by papich

Share this post


Link to post
Share on other sites

hi Ckarone,

 

First of all thank You for the great module;

I have the same problem Alejandro Fernandez mentioned - module displays all subcategories (no matter what number of subcat. I set );

reinstalling or cache cleaning not helps..

any idea ?

 

thank You (or someone who solved the problem) in advance!

 

(ps 1.5.4.1, hcp ckarone 0.6v)

Share this post


Link to post
Share on other sites

Hello

 

I have V. 1.5.4.1 and download the file V0.6 of your module.

After the installation, appears OK symbol process, but I not have the modul installed and not show in the list of modules.

 

any sugerence?

 

Best Regards

José

 

1.unpack

2.delete from name of folder "v0.6" (clear "homecategoriesplus")

3.use ftpclient (copy to /modules)

4.and then you'll see

Edited by Piotr__

Share this post


Link to post
Share on other sites

Welcome.

Is this module works on PS 15.4.1. For me, does not appear in the list of modules. I installed the backpanel and FTP.

Share this post


Link to post
Share on other sites