Image Display

  • Posts: 5
  • Thank you received: 1
1 week 2 days ago #372883

-- url of the page with the problem -- : mermaids4all.com/online-shop/product/mer...rk-t-shirt-navy-blau
-- HikaShop version -- : HikaShop Starter 6.5.2
-- Joomla version -- : 5
-- PHP version -- : 8.3
-- Browser(s) name and version -- : Firefox
-- Error-message(debug-mod must be tuned on) -- : Why isn't an image showing up for me here? I've tried everything; it only happens with products where I can select a size.

Why isn't an image showing up for me here? I've tried everything; it only happens with products where I can select a size.

Attachments:

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

  • Posts: 86027
  • Thank you received: 14169
  • MODERATOR
1 week 2 days ago #372884

Hello,

I looked at your page. The image is there and it loads correctly, it is just displayed with a width of zero pixels, which is why you see an empty light blue box.

The cause is the custom CSS of your website. It contains these rules, which were written for the classic product page layout, where the small thumbnails are placed in a row under the main image :

div.hikashop_main_image_div, div.hikashop_main_file_div { width:100%; background:#f3f8fe; padding:60px }
.hikashop_product_page div.hikashop_small_image_div { display:flex; gap:15px; width:100%; justify-content:space-evenly }

Your product page uses the "Modern" layout, which instead places the thumbnails in a narrow column next to the main image. With the CSS above, that column of thumbnails takes 100% of the width and there is no room left for the main image, which ends up at zero pixels wide. The light blue background you see is the background:#f3f8fe of that same CSS.

That is also why it only happens on the products where you can select a size : each size variant has its own image, so those products have several images and the thumbnails strip is displayed. A product with a single image has no thumbnails strip, so nothing takes the space.

Adding this to your custom CSS puts the main image back, I tested it on your page :
.hikashop_product_page .hikashop_modern_images .hikashop_global_image_div { flex-direction: column; }

You will need to clear the JCH Optimize cache afterwards, otherwise you will keep seeing the old combined CSS files.

The other possibility is to go in the HikaShop configuration, Display tab, and to change the "Layout on the product page" setting from Modern back to Default, which is the layout your CSS was made for.

The following user(s) said Thank You: didi101

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

  • Posts: 5
  • Thank you received: 1
1 week 2 days ago #372887

Wow, thank you so much for the quick help—it worked perfectly. THANKS!

The following user(s) said Thank You: tkult120

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

  • Posts: 27
  • Thank you received: 3
  • Hikashop Essential
6 days 15 hours ago #372936

Hi there,

new question: Please see the pic attached - display of products --> the text (created by myself with additional HTML in the "languages"-area)
is running out of the box....what to do??

Thanks, Rolf

Attachments:

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

  • Posts: 86027
  • Thank you received: 14169
  • MODERATOR
6 days 7 hours ago #372939

Hi Rolf,

Thanks for your report on this. While this is not a bug per se, it's something we can improve on our end so that customization of price language overrides don't break the layout.
Download the install package of HikaShop on our website and install it on yours.
That will add a patch with some changes to the CSS in order to improve the display there.

The following user(s) said Thank You: tkult120

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

  • Posts: 27
  • Thank you received: 3
  • Hikashop Essential
5 days 20 hours ago #372946

Hi Nicolas,
thanks, now all works fine.

Is there a way I can customize the design of the product display? E.g. I would like the product name above the photo and in bold font?

Thanks for info again.
Rolf

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

  • Posts: 86027
  • Thank you received: 14169
  • MODERATOR
5 days 15 hours ago #372949

Hi,

Yes. For the placement of the elements on the product page, you want to activate the Display view files setting of the HikaShop configuration. Then, access your product page on the frontend, and click on the edit button on the main layout area. That will open a popup, and you'll get a drag & drop view builder to move each element of the layout.
For the font weight, you can add CSS on your website. Usually, templates should allow you to add custom CSS. So you can look with the inspector tool of your browser for the CSS class of the element you wish to change. You can also ask AI for this. If you get it the link of your product page and tell it what you want to change, it should be able to tell you what CSS to add.

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

  • Posts: 27
  • Thank you received: 3
  • Hikashop Essential
3 days 16 hours ago #372974

...another question related to Display of Images:

Please see attachment: I have no idea how the text occurs beneath the pics! It was not there some hours ago.
tried everything in changing image display "Product options" or "Category options" .....

HOw can I avoid text underneath pics in category view ??

Attachments:

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

  • Posts: 27
  • Thank you received: 3
  • Hikashop Essential
3 days 13 hours ago #372977

Sorry, what do you mean by:

"..... and click on the edit button on the main layout area. That will open a popup, and you'll get a drag & drop view builder to move each element of the layout." Do you mean the (firefox) Browsers possibility to "examin" the page ? I have no clue how to proceed here.....

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

  • Posts: 86027
  • Thank you received: 14169
  • MODERATOR
3 days 5 hours ago #372978

Hi,

For the text below the image on the categories listing, edit your listing settings (either via the Joomla menu manager if it's a category listing menu item or via the Joomla modules manager if it's a HikaShop content module). There, under the categories options (for menu item) / Hikashop options (for module) tab, change the item layout to "image" instead of "image and title".

Did you activate the "Display view files" settings ?
www.hikashop.com/support/documentation/5...g.html#advanced_main
Once done, go to the product page on the frontend. You should see borders around each view file of HikaShop when you hover on the different elements of the page related to HikaShop. It will tell you which view file is used ( so it can be found easily in Display / Views in the HikaShop backend ), and it should have an edit icon there too so that you can directly edit the view file with a popup.

The following user(s) said Thank You: tkult120

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

  • Posts: 27
  • Thank you received: 3
  • Hikashop Essential
2 days 17 hours ago #372983

Hi,

got it, thanks.

This is nice to see - but I think waytoo complicated for an amateur like me. I have hardly any idea about HTML, php, or CSS.

Maybe you are so kind to give me - as an example - an info, how to

- set the name of the product
- make it bold

Just to get an idea.

Thanks

Rolf

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

  • Posts: 27
  • Thank you received: 3
  • Hikashop Essential
2 days 17 hours ago #372984

...sorry:

- set the name of the product above the picture......

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

  • Posts: 86027
  • Thank you received: 14169
  • MODERATOR
2 days 57 minutes ago #373000

Hi Rolf,

Here are the two changes, step by step.

To move the product name above the image (no code needed):
Since you already see the borders appear on the page when you hover over it, you are almost there.
1. Open one of your product pages on the frontend, while logged in as administrator.
2. Move your mouse over the area that holds the product name and the image. A small edit icon (a pencil) appears on that block.
3. Click that pencil. A popup opens with the list of the elements of the page (name, image, price, add to cart, and so on), stacked one under the other.
4. Grab the line for the product name and drag it up, above the line for the image. Release it there.
5. Click Save.
The name is now above the image on all your product pages. No code is involved if you use the drag & drop builder interface of the popup.

To make the product name bold:
This one needs a single line of CSS. Add this to the custom CSS of your site:

.hikashop_product_name_main { font-weight: bold; }
The simplest place to put it is the custom CSS field of your Joomla template. If you tell us which template you use, we will tell you exactly where to paste that line.

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

  • Posts: 27
  • Thank you received: 3
  • Hikashop Essential
1 day 14 hours ago #373010

Hi Nicolas,

thanks for perfect support.

I did so as recommended earlier.

Please see attachment - showing the product page and the pop-up that shows up with pure HTML all the way down when I click on the little pencil.

Tried also other ways but no way.......

??????

Thanks for info.

Rolf

Attachments:

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

  • Posts: 86027
  • Thank you received: 14169
  • MODERATOR
1 day 7 hours ago #373011

Hi,

Thanks for the screenshots.
You're getting confused because it's hard to read which view file is for which area on your listing because you have a lot of columns compared to the width available.
It's the product / listing_img_title.php view file you want to edit in your case. when you do, you should see the drag & drop interface.

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

  • Posts: 27
  • Thank you received: 3
  • Hikashop Essential
18 hours 18 minutes ago #373019

P H A N T A S T I C !

Thank you, very good option !!!

CSS: Tried al I know, but due to NO experience with CSS stuff I could not make it happen.
Templare: tp_artist if JOOMLAPLATES

Has an Astroid framework, showing option to add Custom CSS (see attachment) but that did not work.

Rolf

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

  • Posts: 27
  • Thank you received: 3
  • Hikashop Essential
18 hours 16 minutes ago #373020

..attachment

Attachments:

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

  • Posts: 27
  • Thank you received: 3
  • Hikashop Essential
17 hours 23 minutes ago #373023

HELP !!!

Now I really need your help:

- I changed the place of the product-name (above pic)
- I tried to insert the CSS for changing font to BOLD (found out it assumingly worked with single product display)
- I reversed these changes to the status it was before - no CSS, no placement of product-name !

NOW MY WHOLE LAYOUT IN THIS PRODUCT CATEGORY IS CHANGED ! (in all other categories is OK)
Display of single product page is on total of screen and arrangement of lines is not in goog order (as it was before changes)

To me it seems that CSS changed something regarding layout in this specific category.

You can check at: www.megakit.de (subscrition page is www.taschenkult.de , but until today never been online)

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

  • Posts: 86027
  • Thank you received: 14169
  • MODERATOR
14 hours 59 minutes ago #373024

Hi Rolf,

Nothing is lost, your changes are simply still in place. When you use the drag & drop editor, HikaShop saves a customized copy of the view file on your website. Moving the elements back inside the popup does not remove that copy, it just saves a new version of it. Looking at your pages, both are still running customized files :

- on the product page, the image block is now in the right column instead of the left one, which is why the page looks stretched and the lines are not in the order they used to be
- on the category listing, the product name is now displayed under the price and under your delivery text instead of above them

To get back to the original layout, go in the HikaShop backend, menu Display > Views. The customized files are the ones which have a red "Remove customization" button on their line (the "See modifications" button next to it shows you what was changed, so you can check before removing). In your case they are :

- product / show_default.php (your product page)
- product / listing_img_title.php (your products listing)

Click "Remove customization" on each of the two and confirm. Both pages will go back to the layout they had before. Note that this deletes the whole customized file, so if you had made other changes in it, they will be gone too.

That also explains why only that one category is affected : your other listings use the "Image" item layout, which is a different view file, so the customized listing_img_title.php only shows on the category which is still set to "Image and title".

About the bold product name, the CSS class is not the same on the two pages. On the product page it is hikashop_product_name_main, while on the listings it is hikashop_product_name. So this line covers both :

.hikashop_product_name a, .hikashop_product_name_main { font-weight: bold; }

If your template still does not apply it, clear the Joomla cache, and if needed add !important before the semicolon.

The following user(s) said Thank You: tkult120

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

  • Posts: 27
  • Thank you received: 3
  • Hikashop Essential
14 hours 10 minutes ago #373026

Ok, Nicolas, thanks for your quick response!

Nevertheless I do not understand how these changes did happen. I followed your advice and ONLY located the Productname above the pic.

All the rest I must go through again to understand.

Can you confirm that the place in Astroid was correct to put CSS to?

Thanks.

Rolf

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

Time to create page: 0.102 seconds
Powered by Kunena Forum