How to get images to display on nested categories

More
11 years 2 months ago #36701 by Jeff
Is it possible to display Category Image on nested categories. Example -

Category - Printers - on the category page displays picture of printer

Nested below are
Category - HP
Category - Brother

Rather than displaying

  • HP
  • Brother
as it dfoes now is there a way to turn on the images for the category HP and Brother so that you can see an Image of HP printers and above Brother a Brother image. Then when the customer clicks on HP they see the various products. Right now it does not appear very visually friendly if you have nested categories.

Or am I missing something?

Please Log in or Create an account to join the conversation.

  • Giang Dinh Truong
  • Offline
  • Administrator
  • Administrator
More
11 years 1 month ago #36909 by Giang Dinh Truong
Replied by Giang Dinh Truong on topic Re: How to get images to display on nested categories
Hello Jeff,
As default view of EShop, it does not support that. You can modify the file to overwrite. Following is the how to implement that:

Copy file: components/com_eshop/themes/default/views/category/default_subcategories.php to folder: templates/your_template/html/com_eshop/category/default_subcategories.php and edit this php file to remove image. It is very clear.

Please let me know if you are able to do that.
Sincerely, Giang

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #39717 by Jeff
Giang,

I think you misunderstood my question. I want to make the subcategories appear WITH pictures above them like on categories main page. I believe I need to somehow call for the polaroid image with sub category. Can you explain how to do that?

Please Log in or Create an account to join the conversation.

  • Giang Dinh Truong
  • Offline
  • Administrator
  • Administrator
More
10 years 11 months ago #39768 by Giang Dinh Truong
Replied by Giang Dinh Truong on topic Re: How to get images to display on nested categories
Hi again Jeff,

Sorry for misunderstanding your question. If you want to display image of sub-category, then in components/com_eshop/themes/default/views/category/default_subcategories.php, you just need to use $subCategory->category_image, it will call the name of image of corresponding category.

So you will use it like this way: <img src="media/com_eshop/categories/categories/<?php echo $subCategory->category_image ?>" />

Does it make sense?
Sincerely, Giang

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago #50310 by Bozsettino
Hi Giang,

Is it possible that the sub-categories are side by side and not below each other?

Sincerely
Bozsettino

Please Log in or Create an account to join the conversation.

  • Giang Dinh Truong
  • Offline
  • Administrator
  • Administrator
More
10 years 2 months ago #50342 by Giang Dinh Truong
Replied by Giang Dinh Truong on topic Re: How to get images to display on nested categories
Hello Bozsettino,
Yes, it is possible to do. Please submit a new ticket to EShop category to send me the your site information so I can help you to do that.
Sincerely, Giang

Please Log in or Create an account to join the conversation.

Moderators: Giang Dinh Truong