Jump to content

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


ckarone
 Share

Recommended Posts

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 (see edit history)

Share this post


Link to post
Share on other sites

  • 3 weeks later...

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

  • 2 weeks later...

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

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 (see edit history)

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

  • 2 weeks later...

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 (see edit history)

Share this post


Link to post
Share on other sites

  • 2 weeks later...

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

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

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 (see edit history)

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 (see edit history)

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 (see edit history)

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 (see edit history)

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

  • 2 weeks later...
  • 2 weeks later...

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 (see edit history)

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

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 (see edit history)

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 (see edit history)
  • 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

  • 2 weeks later...

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

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 (see edit history)

Share this post


Link to post
Share on other sites

  • 2 weeks later...

@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

  • 2 weeks later...

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 (see edit history)

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