Jump to content

Categories/subcategories Display


Recommended Posts

Hello.

 

I've got a question.

 

Is there any way that I can make the categories appear in a list, instead of appearing with images as default? (prestashop 1.6.1.4)

 

Example - I want it to show like this:

 

-Clothes

-Shoes

-Toys

-Others

 

Instead of what's happening in the attached image. I've put blank images but doesn't look that good.

 

post-1202746-0-28619700-1458326414_thumb.jpg

 

Thanks in advance for any help.

 

Best regards,

Nuno Costa

Link to comment
Share on other sites

There is. Open up category.tpl and get rid of this

 

                	<div class="subcategory-image">
						<a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}" title="{$subcategory.name|escape:'html':'UTF-8'}" class="img">
						{if $subcategory.id_image}
							<img class="replace-2x" src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')|escape:'html':'UTF-8'}" alt="{$subcategory.name|escape:'html':'UTF-8'}" width="{$mediumSize.width}" height="{$mediumSize.height}" />
						{else}
							<img class="replace-2x" src="{$img_cat_dir}{$lang_iso}-default-medium_default.jpg" alt="{$subcategory.name|escape:'html':'UTF-8'}" width="{$mediumSize.width}" height="{$mediumSize.height}" />
						{/if}
					</a>
                   	</div>
Link to comment
Share on other sites

Hello

 

Thanks a lot for your help.

 

The images are now gone!

 

Another little question:

 

Is it possible to get rid of the blank space (as you can see in the attached image)?

 

And make it more like a list:

 

- Coats and jackets

- Sweaters

- Knits

- Shirts

 

etc...

 

Thanks in advance.

 

Best regards,

Nuno Costa

post-1202746-0-93968000-1458641794_thumb.jpg

Link to comment
Share on other sites

Hello! Thanks a lot for your help. Already removed the images and the space inbetween :)

 

My last question is how can I make it appear on a list... I've tried some CSS codes but it doesn't seem to work.

 

Currently it is showing like this (attached image):

 

 

 

Subcategories:

 

Clothes                   Shoes                Toys                  Others

 

 

 

I want it to show like:

 

 

Subcategories:

 

- Clothes

- Shoes

- Toys

- Others

 

 

Is this possible? What I really mean is, show the list in a vertical orientation instead of horizontal.

 

 

Many thanks for the attention and for the time spent.

 

Best regards,

Nuno Costa

 

post-1202746-0-60089500-1458817145_thumb.jpg

Link to comment
Share on other sites

One more question, a little bit different...

 

I have the manufacturers on my top horizontal menu (changed name from manufacturers to brands)

 

When I do the mouse-over brands and the brands appear on a list, they are appearing in alphabetical order but on the horizontal, like:

A...   B.... C.... D....

E.... F...    G...    H....

 

 

Is there anyway I can sort it on alphabetical order but on the vertical? I'd like it to appear this way:

 

A....    F....

B....    G....

C....    H....

D....     I....

E....     J....

 

There's an image in attachment for a better ex.

 

Thanks once again.

 

Best regards,

Nuno Costa

post-1202746-0-05108400-1459168580_thumb.jpg

Link to comment
Share on other sites

Hello Nemo1,

 

Thanks for the help. It seems kinda complicated and it's not that urgent for now, I thought there would be an easier way.

 

One last question:

 

Is there a way I can center the subcategories text on the page? I mean they are "centered"  but not in the center of the page. Already checked css file and there's a text-align: center ; anyway it seems it's just centered on the left.

 

I've attached an image to explain better what I'd like to do.

 

Thank you very much one more time for your help.

 

Best regards,

Nuno Costa

post-1202746-0-71774700-1459330414_thumb.jpg

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...