Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Working with Product Images - Let's improve it!

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-07-2008, 10:36 AM
  ADDISON's Avatar 
ADDISON ADDISON is offline
 

X-Man
  
Join Date: Jan 2008
Posts: 2,613
 

Cool Working with Product Images - Let's improve it!

I just spent a few days on the new 4.2 X-Cart beta version. They said we will have an easy way to work with product images, generating thumbnails. I was not impressed. Actually, yes you can create one thumbnail using GD library, but this will not help you anyway. Those who used a photo editor for resizing an image, can continue working in this way with better results. If you expect an alternative to Telefirma (who just dissapeared) module you will be dissapointed.

I would like to make the things easy, and with a little help from you, a small customization, being able to have an alternative to Telefirma module.

Let's tell you the steps:

1. When creating a product in Admin section, to be able to insert the following images:

- product_thumbnail - used when listing the product in a category (100 x 100)
- product_image - used as default image in product page (300 x 300)
- product_fullsize - used when the customer clicks on the default product image (600 x 600)
- product_xthumbnail - used as default image in "Customer who bought ..." area. (50 x 50)

2. Now, the detailed images:

- product_detailed_thumbnail - used as thumbnail for detailed image (50 x 50)
- product_detailed_fullsize - used when customer clicks on the thumbnail (600 x 600)
Also great to be able to order these images.

3. Let's use these images in Customer Frontend -> product page

- product_image (300 x 300) with link to product_fullsize (600 x 600)
- if exists detailed image, bellow the default product image to show all product_detailed_thumbnail (50 x 50) with links to product_detailed_fullsize (600 x 600)

For image sizes, you can decide if need to set up the values, or not (in X-Cart store configuration)

For showing the full size images I will use HighSlide JavaScript (http://highslide.com/) or other script (Lightbox, ...)

Can anyone help with this customization?

THANKS
__________________
X-Cart Next: Business 5.2 (learning and testing)
X-Cart Classic: Gold and Gold Plus 4.7
Lots of Modules and Customizations
OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux
Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions)

You can catch my ideas here: http://ideas.x-cart.com
Reply With Quote
  #2  
Old 12-08-2008, 05:36 AM
  ADDISON's Avatar 
ADDISON ADDISON is offline
 

X-Man
  
Join Date: Jan 2008
Posts: 2,613
 

Default Re: Working with Product Images - Let's improve it!

I got a private message with a good tip for this:

1. To have the ability to enter the dimensions of all images in a configuration page. For example:

- extra small thumbnails: 50 x 50 px
- thumbnails: 100 x 100 px
- fullsize: 600 x 600 px
- product page default: 300 x 300 px

2. It is not necessary to create and upload all the image sizes. Just upload the biggest ones. Then a resize PHP script with a unsharp filter effect will do everything. This Unsharp Mask should be configurated for every type of size (Amount, Radius, Threshold). All the small sizes will be generated automatically by this script.

So, could anyone help?
__________________
X-Cart Next: Business 5.2 (learning and testing)
X-Cart Classic: Gold and Gold Plus 4.7
Lots of Modules and Customizations
OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux
Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions)

You can catch my ideas here: http://ideas.x-cart.com
Reply With Quote
  #3  
Old 12-09-2008, 07:06 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Working with Product Images - Let's improve it!

Doesn't the mod discussed at http://forum.x-cart.com/showthread.php?t=41912 do what you are asking?
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #4  
Old 12-09-2008, 07:09 AM
  ADDISON's Avatar 
ADDISON ADDISON is offline
 

X-Man
  
Join Date: Jan 2008
Posts: 2,613
 

Default Re: Working with Product Images - Let's improve it!

JWait did you installed that module? If yes, please let me know your comments about it. Could it be close to my requests?
__________________
X-Cart Next: Business 5.2 (learning and testing)
X-Cart Classic: Gold and Gold Plus 4.7
Lots of Modules and Customizations
OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux
Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions)

You can catch my ideas here: http://ideas.x-cart.com
Reply With Quote
  #5  
Old 12-09-2008, 07:33 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Working with Product Images - Let's improve it!

We had the Telafirma dynamic image mod back when we were using the 4.0.x version of X-cart, but when the 4.1.x version came out we found the mod was incompatible. The lack of product support also influenced our decision.

Because of this (and several other reasons) when we decided to upgrade to the 4.1.x version we abandoned the mod and are now using the standard method x-cart has. About the only modification we added as far as images was Thickbox (mainly because it works better and can easily be removed if need be).

To answer your question, no we have not looked into using this modification for the reasons I already stated, and the fact that it most likely will not be compatible with version 4.2.x, and this sounds like something we really want to do.

The only reason I referenced the thread at http://forum.x-cart.com/showthread.php?t=41912 is that it sounded like what you were proposing and it didn't seem to make sense that you should start at square 1 when there was already a similar project underway.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:23 AM.

   

 
X-Cart forums © 2001-2020