#708 Images added via Article > J2Store Cart > Images do not show on the website (except Thumbnail Image in Products List View)

Posted in ‘Technical Support / Bugs’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Tim Ryan on Tuesday, 24 March 2026 18:55 UTC

Tim Ryan

Website is on Joomla 5.4.3, J2Commerce is on v4.0.20Pro

Issue

When attempting to create a new product or duplicate an existing one, you are unable to get any new images to show on the individual product page.

The list of all products will show the main image (via J2C, not core joomla), but going into the article, you will see any new images added will not show up. The rest of the article loads fine.

Duplicating an existing (working) product, you will see the images load correctly as they did on the original article, but any additional images added will not.

Admin area

There was also difficulty adding new photos in the first place, where the selector would not want to place the selected image in the image input box. Not impossible to do from here, but still more fiddly/random than it used to be.

Database

It is possible to add images to the article via the database, however the issue on the front end is not addressed by this.

To access the correct field, go to table: __j2store_productimages, and find the additional_images column, where you can copy the field and add to it before replacing - once updated you can see that the product in the admin area shows this new change but again, not on the front end.

Olivier

Hi Tim,

I went to your site, trying to manupulate images, duplicating articles, and the only problem I see on the admin side is that your images are way too big in weight. You probably need to optimize images, a 1 mega pixel image is way too heavy to use. then when you have 5 or 6 images for the same product on a page, it kills your loading times. Images should be 100kb each at the most and that is the top weight they should have. 

This version of J2Commerce does not do the image optimization for you, it needs to be done before hand. Version 6 for Joomla 6 will allow you to drop images all at once, optimized and resize them properly. This is not the case at the moment.

I can see what is going on when you duplicate the products (or even when you don't duplicate).

The images do not show because the image file path is no longer( in Joomla 4) only a simple url path, it also contains additional information about the width and height for instance.

So your template overrides have to be revisited.

Anywhere you have 

if($main_image &&  JFile::exists(JPATH_SITE.'/'.$main_image))
if(JFile::exists(JPATH_SITE.'/'.$image)):

will fail your image if saved under Joomla 4.

That is why they don't show.

The file to modify is [your template]/html/com_j2store/templates/default/view_images.php

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

Tim Ryan

Hi Olivier,

Thanks for your reply, I've let my client know that they should be using smaller images in future; I don't remember if there's a filesize warning or upload limit when uploading images, but I think this would be useful for users who aren't familiar with what image sizes to use.

The note on the deprecated code was useful, I had a look and the files that used those snippets were old overrides that had been brought across but are no longer in use. Disabling these overrides allowed the core files to take over, fixing the issue.

Thanks,

Tim

  

Stay Updated

Subscribe for free and be the first to know about the latest features, updates, and new additions.