Product listing with/without image

  • Posts: 18
  • Thank you received: 0
  • Hikashop Essential
3 years 2 months ago #339579

-- HikaShop version -- : 4.4.4
-- Joomla version -- : 4.0.4
-- PHP version -- : 7.4.26
-- Browser(s) name and version -- : firefox, safari, chrome...

Hi to all.

Site is hosted local on WAMPServer, no link providable.

I have 2 different ways to show products inside a categorie. The second way displays products without images.

Setting
=======

On start page you see on the left a sidebar menu, described below. In the middle, in the component area, you see a listing of my 4 categories, with category picture and numer of articles inside. This is generated by the item id 177 (set as home).

Hikashop->configuration->display->default params for div->type of item layout:image (these settings seems to have no impact on displaying the products)
Hikashop->categories->Messerblöcke->canonical: ../index.php/magnetische-messerbloecke


1. Way that works

Custom module 'shop' on position sidebar-links


<a href="index.php?Itemid=177">Alle Kategorien</a><br>
<a href="index.php?Itemid=178">Alle Produkte</a><br>
<img src="images/icongardeerobe.png" loading="lazy" width="25" height="25" data-path="local-images:/icongardeerobe.png"/> <a href="index.php?Itemid=292">Garderobenpaneele</a><br>
<img src="images/iconmesserblock.png" loading="lazy" width="25" height="25" data-path="local-images:/iconmesserblock.png"/> <a href="index.php?Itemid=290">Messerblöcke</a><br>
<img src="images/iconmesserleiste.png" loading="lazy" width="25" height="25" data-path="local-images:/iconmesserleiste.png"/> <a href="index.php?Itemid=291">Messerleisten</a><br>
<img src="images/icontablett.png" loading="lazy" width="25" height="25" data-path="local-images:/icontablett.png"/> <a href="index.php?Itemid=293">Tabletts</a>

Sidebar Menu
Alle Kategorien (id 177; set as home)
Messerblöcke (link shown on hoover: ../index.php/magnetische-messerbloecke)
- menu item type: products listing
- link: index.php?option=com_hikashop&view=product&layout=listing
- parent item: no parent
- div/grid item layout: image
- main category: Messerblöcke

Clicking on above menu item id 'Messerblöcke' shows, as expected, products inside this categorie with pictures, prices, link to product details, add to cart button but without title of product.

2. Way that shows products without images
Clicking on the categorie listed in the component area (hoover shows link to ..index.php/category/24-magentische-messerblöcke) shows products inside the category with price, title, add to cart button, but without image.

Looking for hours but I'm not able to resolve this isssue. Any help is greatly appreciated.

Regards
Tom

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

  • Posts: 83779
  • Thank you received: 13567
  • MODERATOR
3 years 2 months ago #339588

Hi,

The Hikashop->configuration->display->default params for div->type of item layout setting is to select the default value for new menu items and modules.
For existing menu items and modules, you need to edit their settings via the Joomla menus manager and the joomla modules manager. There, under the "product options" (or "hikashop options" for modules) tab of the settings page, you'll find a similar setting which will directly apply to the products listing displayed by this menu item (or module).
So I think that's what you're missing here. The "type of item layout" must be different for your different products listings and that's why you get a unconsistant display.

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

  • Posts: 18
  • Thank you received: 0
  • Hikashop Essential
3 years 2 months ago #339602

Hi Nicolas,
thank for your support. Checked my settings. Result:

menus-> sidebar menu -> Messerblöcke
- menu item type: Products listing
- Link: index.php?option=com_hikashop&view=product&layout=listing
- Product Opt.
--DIV/Grid
--- Item Layout: Image
--- Data Display: Show Image=No;Show description=yes, main cat.=Messerblöcke(Changed to: Show Image=Yes;Show description=no)

HikaShop default menus -> Products listing
- menu item type: Products listing
- Link: index.php?option=com_hikashop&view=product&layout=listing
--DIV/Grid
--- Item Layout: Image
--- Data Display: Show Image=Yes;Show description=no, main cat.=Messerblöcke

Hikashop Content Menu
--DIV/Grid
--- Item Layout: Image
--- Data display: Type of content=category;main category=product category

Categories on 1 level
--DIV/Grid
--- Item Layout: Image
--- Data display: Type of content=Product;main category=product category; menu=categories listing

So I can't se any inconsistencies. What am I missing?

Two questions further
1st What is the use of 'Data Display'? I can't see any impact changing the values here.
2nd In Menus->Manage there are no linked modules to 'HikaShop default menus'.

Regards
Tom

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

  • Posts: 83779
  • Thank you received: 13567
  • MODERATOR
3 years 2 months ago #339604

Hi,

0. Based on the URLs you posted in your first message, you need to check the settings of the menu items with the alias "magnetische-messerbloecke" and the one used for the homepage.

1. The settings Show Image and Show description allow you to activate or not the display of the current category's image/description at the top of the products listing. If you didn't configure any image/description in that category, activating or turning off these settings won't change anything.

2. What do you mean by "no linked modules" ? Do you mean "assigned modules" ? If you want to assign modules to a menu item, you can edit the module and select the menu item under the "menu assignment" tab of the module settings.

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

  • Posts: 18
  • Thank you received: 0
  • Hikashop Essential
3 years 2 months ago #339621

nicolas wrote: Hi,
0. Based on the URLs you posted in your first message, you need to check the settings of the menu items with the alias "magnetische-messerbloecke" and the one used for the homepage.


First, WHAT do I have to check?Which settings to compare?

nicolas wrote: 1. The settings Show Image and Show description allow you to activate or not the display of the current category's image/description at the top of the products listing. If you didn't configure any image/description in that category, activating or turning off these settings won't change anything.


Ok, that helps and now, with your explanation I see the difference..

nicolas wrote: 2. What do you mean by "no linked modules" ? Do you mean "assigned modules" ? If you want to assign modules to a menu item, you can edit the module and select the menu item under the "menu assignment" tab of the module settings.


No, I mean 'linked modules'. In 'Menus' -> 'manage' I see 4 menus displayed: hikashop default menus, mainmenu, scrollbar and sidebar menu.
Above there exist some columns: Menu Items | Published | Unpublished | Trashed | Linked Modules
Except hikashop default menus all are linked to one or more modules. There's a notice for the hikashop default menus: "add a module for this menu"

Thank you
Tom

Last edit: 3 years 2 months ago by web@kaixo-design.de.

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

  • Posts: 83779
  • Thank you received: 13567
  • MODERATOR
3 years 2 months ago #339638

Hi,

0. I suppose you could check that you're using the same "div" mode and the same "item layout", like you did for the other menu items since you said that your issue was that you had the image / name missing for some areas and not others.

2. That's something added by Joomla 4. It allows you to create a empty module for a bunch of menu items in the same menu. You can ignore that.

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

  • Posts: 18
  • Thank you received: 0
  • Hikashop Essential
3 years 2 months ago #339647

nicolas wrote: Hi,
0. I suppose you could check that you're using the same "div" mode and the same "item layout", like you did for the other menu items since you said that your issue was that you had the image / name missing for some areas and not others.


Problem solved. Was related to missconfigured aliases and/or canonicals.

nicolas wrote: 2. That's something added by Joomla 4. It allows you to create a empty module for a bunch of menu items in the same menu. You can ignore that.


OK, thanks, Nicolas.

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

Time to create page: 0.067 seconds
Powered by Kunena Forum