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

Disable switching product images when variants defined?

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

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

Default Disable switching product images when variants defined?

I have a medium problem: Variants Images. I defined an option named color (Red, Blue, Green), and added an image for every color.

When loading in Frontend the product page, for a second it shows the product thumbnail, and then it switches to the default color image (the first one in the pop-up form). This make me crazy. It is a way to get rid off this?

I would like also to disable switching the color images in product page, when choosing them from the pop-up form. I want to keep untouch the product thumbnail.

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, 12:51 AM
  Gijs's Avatar 
Gijs Gijs is offline
 

eXpert
  
Join Date: Aug 2004
Location: Belgium
Posts: 295
 

Default Re: Disable switching product images when variants defined?

Hi am2003,

I've got a similar problem with variant images.

On the product page for a second the correct image shows up and then it becomes "blurry".
A right-hand click on the image shows that it "enlarges" the 100x100 thumbnail to 150x150 pix.
This in itself I find strange, because on the product page, according to the manual, the product image and not the thumbnail should be shown.

Then, when you select a variant: the image becomes "clear" with the 150x150 image showing up.

When you go back to the category-level and then go back to the product page the image renders correctly.

However, when you closed your browser session it starts all over again.

Very strange.

Beste Regard,

Gijs
__________________
X-cart 4.1.11
PHP 5 MySQL 5
www.wheelpalace.eu
Reply With Quote
  #3  
Old 12-09-2008, 04:42 AM
  JWait's Avatar 
JWait JWait is offline
 

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

Default Re: Disable switching product images when variants defined?

Are you using a product image, or just the thumbnail?
__________________
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, 08:56 PM
  Gijs's Avatar 
Gijs Gijs is offline
 

eXpert
  
Join Date: Aug 2004
Location: Belgium
Posts: 295
 

Default Re: Disable switching product images when variants defined?

Hi JWait,

I don't want to take over am2003 post and I don't know if your question was for one or both of us.

But if my answer helps ...

In product Details I always use 2 images:
Product Thumbnail with a size of 100x100
Product Image with a size of 150x150

In Product Variants I allways use a 150x150 image (=same as Product Image)

Best Regards,

Gijs
__________________
X-cart 4.1.11
PHP 5 MySQL 5
www.wheelpalace.eu
Reply With Quote
  #5  
Old 12-10-2008, 03:43 AM
  JWait's Avatar 
JWait JWait is offline
 

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

Default Re: Disable switching product images when variants defined?

By default, X-cart will display the thumbnail when you don't have a product image. If you have a product image it will display that instead of the thumbnail. If you have variant images defined then it will display those according to the choice made in the options selection box. If you have detail images, those are either opened in a popup window, or displayed below the product details, depending on the choice made in admin/general options/appearance options about having the images in a popup.

am2003 - "I defined an option named color (Red, Blue, Green), and added an image for every color." Did you define a image for each variant? If you delete them the product image (if you have one), or the product thumbnail will be the only thing displayed.

Gijs - Have you made any modifications to your installation of x-cart? What you describe is not normal behavior. The product thumbnail should not be loading if you have a product image defined. I am thinking you may have a 3rd party image mod of some sort that is causing this, correct?
__________________
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
  #6  
Old 12-10-2008, 09:54 PM
  Gijs's Avatar 
Gijs Gijs is offline
 

eXpert
  
Join Date: Aug 2004
Location: Belgium
Posts: 295
 

Default Re: Disable switching product images when variants defined?

Hi JWait,

Quote:
Originally Posted by JWait
Gijs - Have you made any modifications to your installation of x-cart? What you describe is not normal behavior. The product thumbnail should not be loading if you have a product image defined. I am thinking you may have a 3rd party image mod of some sort that is causing this, correct?

My cart is modded, but to my knowlegde, not at "picture"-level.
If you want to take a look, send me a PM and I'll forward you a shopkey.

Best Regards,

Gijs
__________________
X-cart 4.1.11
PHP 5 MySQL 5
www.wheelpalace.eu
Reply With Quote
  #7  
Old 12-11-2008, 03:23 AM
  JWait's Avatar 
JWait JWait is offline
 

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

Default Re: Disable switching product images when variants defined?

send me a link
__________________
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
  #8  
Old 12-11-2008, 04:53 AM
  Gijs's Avatar 
Gijs Gijs is offline
 

eXpert
  
Join Date: Aug 2004
Location: Belgium
Posts: 295
 

Default Re: Disable switching product images when variants defined?

Hi Jwait,

Done !

Gijs
__________________
X-cart 4.1.11
PHP 5 MySQL 5
www.wheelpalace.eu
Reply With Quote
  #9  
Old 12-11-2008, 05:58 AM
  JWait's Avatar 
JWait JWait is offline
 

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

Default Re: Disable switching product images when variants defined?

It appears you do not have a default image defined so x-cart is using the thumbnail and stretching it to the size you defined for the product image to be. I see where you do have a image in the images/D folder but it is not being used.

When you go to product modify are both the thumbnail and the product image showing in admin? If not, try adding a product image (it can be one of the product variant images as they are the same size) and see if that fixes the problem.
__________________
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
  #10  
Old 12-11-2008, 06:31 AM
  Gijs's Avatar 
Gijs Gijs is offline
 

eXpert
  
Join Date: Aug 2004
Location: Belgium
Posts: 295
 

Default Re: Disable switching product images when variants defined?

Hi Jwait,

Thanks for taking a look.

Quote:
Originally Posted by JWait
It appears you do not have a default image defined so x-cart is using the thumbnail and stretching it to the size you defined for the product image to be.

This I had noticed as well, but I don't understand the reason why.

Quote:
Originally Posted by JWait
I see where you do have a image in the images/D folder but it is not being used.
I checked my D folder and all the images are present. But I think I don't fully understand what you mean. My english is probably not good enough.

Quote:
Originally Posted by JWait
IWhen you go to product modify are both the thumbnail and the product image showing in admin? If not, try adding a product image (it can be one of the product variant images as they are the same size) and see if that fixes the problem.
In the Modify Product-section I always add a 100x100 pic as thumbnail and a 150x150 pic as product image. In the variant section I always use 150x150 pics.
See the 2 pictures attached.

Best Regards,

Gijs
__________________
X-cart 4.1.11
PHP 5 MySQL 5
www.wheelpalace.eu
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 03:30 PM.

   

 
X-Cart forums © 2001-2020