Image Management in osCommerce 2.2 - PhoenixCart 1.1.0.8

General shopowner conversation that doesn’t quite fit into other sections.
Talk shop, share experiences, and connect with fellow Phoenix store owners.
User avatar
bonbec
100+
Posts: 225
Joined: Mon Oct 26, 2020 12:23 pm
Phoenix Version: V1.1.0.8
Has thanked: 61 times
Been thanked: 45 times

Image Management in osCommerce 2.2 - PhoenixCart 1.1.0.8

Post by bonbec »

To be clear from the start, I am not asking anyone to write code for me.
I simply need some help thinking this through, as I am struggling to make a decision.
Your input might help tip the scales one way or the other.

In my osCommerce 2.2 admin panel, I have a feature that allows me to upload up to 5 full-size images and 5 corresponding thumbnails.
images_osc22.jpg
This is structured as follows within the `products` database table:
images_bdd_products_osc22.jpg
It is a very convenient and fast way to add or modify images.

PhoenixCart does not have this.
Instead, you have to navigate to a specific tab (I don't like this sytem) and go through numerous clicks just to add full-size images (there is no support for thumbnails).
images_phoenixcart.jpg
While there are several add-ons designed to address this, none of them suit my needs, particularly regarding thumbnails—which, in my case, are often distinct from their full-size counterparts.
Furthermore, in PhoenixCart, the primary image is stored in the `products` table, while additional images are stored in a separate `products_images` table.

So, I am faced with a choice:
1) Adapt the osCommerce 2.2 system by modifying the PhoenixCart admin panel.
Using a hook written by @raiwa I could essentially clone that admin functionality.
However, if there are any major updates to the native PhoenixCart admin system, I could run into issues down the line.
2) Migrate my full-size images into the `products` and `products_images` tables to align with the PhoenixCart standard—though this would mean losing my custom thumbnails.

That is my dilemma.
If you were in my shoes, which option would you choose?
Or is there another solution I haven't considered?
Thanks in advance for your opinions.
You do not have the required permissions to view the files attached to this post.



Join The Code Co-op to get access to your library in the Code Co-op Forum
ecartz
Core Team
Posts: 3093
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 212 times

Re: Image Management in osCommerce 2.2 - PhoenixCart 1.1.0.8

Post by ecartz »

bonbec wrote: ↑Fri Oct 16, 2026 1:35 pm If you were in my shoes, which option would you choose?
Assuming the set of options from raiwa don't help you, I'd migrate to the Phoenix system and potentially add thumbnails to it.

If you migrate the system that you are using now to Phoenix, there are several problems:

1. You're limited to five images (and thumbnails).
2. Any changes to Phoenix handling, and you have to essentially port from scratch.

You might also consider adding a products_image.php page that you can link from your product rows in admin. If the problem is that you have too many clicks to get where you want. You could create that with a new page and hooks.

raiwa
Certified Developer
Posts: 1117
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 72 times
Been thanked: 156 times

Re: Image Management in osCommerce 2.2 - PhoenixCart 1.1.0.8

Post by raiwa »

I wonder if you couldn't replace the custom thumbnails by the auto generated thumbnails from my Kissit Image thumbnailer or using one of Cloudflares image delivery system.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Omar_one
500+
Posts: 595
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Has thanked: 107 times
Been thanked: 69 times

Re: Image Management in osCommerce 2.2 - PhoenixCart 1.1.0.8

Post by Omar_one »

I hope I am understanding you correctly @bonbec. And sorry if I haven't.

Managing multiple images for a single product used to be challenging for us, so I built a custom hook to streamline the workflow. Here is what it includes:
- Dedicated Tab: Manage all product images in one convenient place.
- Visibility Control: Show or hide main and gallery images without deleting them (files and database records remain safe).
- Quick Actions: Swap a gallery image with the main image instantly.
- Smart Deletion: Permanently delete single gallery images (removes both the database record and the file) or clear entire galleries with automatic folder cleanup.
- Fast Uploads: Drag-and-drop multi-image uploads (powered by Dropzone), select multiple files at once, and preview images before uploading them.

here a screenshot
product_images.JPG
You do not have the required permissions to view the files attached to this post.

User avatar
bonbec
100+
Posts: 225
Joined: Mon Oct 26, 2020 12:23 pm
Phoenix Version: V1.1.0.8
Has thanked: 61 times
Been thanked: 45 times

Re: Image Management in osCommerce 2.2 - PhoenixCart 1.1.0.8

Post by bonbec »

Thanks for the quick reply; I appreciate it. Sorry for my own late response—sometimes I’m forced to disappear from the forum, much against my will.
ecartz wrote: ↑Fri Oct 16, 2026 2:00 pm... If you migrate the system that you are using now to Phoenix, there are several problems:
1. You're limited to five images (and thumbnails).
2. Any changes to Phoenix handling, and you have to essentially port from scratch.
5 images is really the maximum I ever include. Out of the 1,200 items I have, only about ten have 5 images. Usually, it’s 3 or 4.
I am well aware that one should never touch the core code; it’s a recipe for trouble. I experienced this firsthand with osC 2.2.
ecartz wrote: ↑Fri Oct 16, 2026 2:00 pmYou might also consider adding a products_image.php page that you can link from your product rows in admin. If the problem is that you have too many clicks to get where you want. You could create that with a new page and hooks.
That’s an idea worth considering. Personally, I’m not a big fan of a tab-based system; keeping everything on a single page makes things easier and faster to work with. So, creating a new, comprehensive page using hooks could be a suitable approach.

User avatar
burt
Core Team
Posts: 4911
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 296 times
Been thanked: 494 times

Re: Image Management in osCommerce 2.2 - PhoenixCart 1.1.0.8

Post by burt »

bonbec wrote: ↑Fri Oct 23, 2026 9:04 am Personally, I’m not a big fan of a tab-based system; keeping everything on a single page makes things easier and faster to work with. So, creating a new, comprehensive page using hooks could be a suitable approach.
I think I remember reading maybe, Heather @Mort_Lemur also did not enjoy the tabbed system and so made a one page system instead...

EDIT: found it.
https://phoenixcart.org/forum/app.php/a ... t_manager/

User avatar
bonbec
100+
Posts: 225
Joined: Mon Oct 26, 2020 12:23 pm
Phoenix Version: V1.1.0.8
Has thanked: 61 times
Been thanked: 45 times

Re: Image Management in osCommerce 2.2 - PhoenixCart 1.1.0.8

Post by bonbec »

raiwa wrote: ↑Fri Oct 16, 2026 3:15 pm I wonder if you couldn't replace the custom thumbnails by the auto generated thumbnails from my Kissit Image thumbnailer or using one of Cloudflares image delivery system.
Automatic thumbnail generation doesn't work for my needs.
For example:
araproduction_images.jpg
the image on the left is my original, full-sized image; if I process it automatically, it results in the thumbnail shown at the top right—which is hard to see. The thumbnail at the bottom right is the one I use; even though it doesn't show the entire original image, it is much clearer and easier to see.
You do not have the required permissions to view the files attached to this post.

User avatar
bonbec
100+
Posts: 225
Joined: Mon Oct 26, 2020 12:23 pm
Phoenix Version: V1.1.0.8
Has thanked: 61 times
Been thanked: 45 times

Re: Image Management in osCommerce 2.2 - PhoenixCart 1.1.0.8

Post by bonbec »

Omar_one wrote: ↑Fri Oct 16, 2026 9:26 pmI hope I am understanding you correctly @bonbec. And sorry if I haven't.
Great work !
I saw that @tessthepup also created a fairly similar system.
The only thing is, I’m not really a fan of tabbed systems (I know, I’m a bit different from most people).
Thanks for the idea. If I don’t manage to achieve what I’m aiming for, I’ll look into that type of solution.

User avatar
Mort_Lemur
Builder
Posts: 145
Joined: Tue Jun 02, 2026 6:12 pm
Phoenix Version: v1.1.0.6
Has thanked: 76 times
Been thanked: 51 times

Re: Image Management in osCommerce 2.2 - PhoenixCart 1.1.0.8

Post by Mort_Lemur »


User avatar
bonbec
100+
Posts: 225
Joined: Mon Oct 26, 2020 12:23 pm
Phoenix Version: V1.1.0.8
Has thanked: 61 times
Been thanked: 45 times

Re: Image Management in osCommerce 2.2 - PhoenixCart 1.1.0.8

Post by bonbec »

burt wrote: ↑Fri Oct 23, 2026 9:08 am I think I remember reading maybe, Heather @Mort_Lemur also did not enjoy the tabbed system and so made a one page system instead...
Yes, exactly; now that you mention it, it comes back to me.
burt wrote: ↑Fri Oct 23, 2026 9:08 amEDIT: found it.
https://phoenixcart.org/forum/app.php/a ... t_manager/
Thank you very much ! I’m going to download it right away.



Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply