Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Problem with image preview


Recommended Posts

Hi all !


I have a little problem with this contribution. When i add or modify a product I lost the picture of the product in the Preview window but the image is correct in the store or in admin. I have located the problem: the problem is coming from the modification made at line 312 in the categories.php file:


FIND: line 312


case 'new_product_preview':

// copy image only if modified

$products_image = new upload('products_image');



if ($products_image->parse() && $products_image->save()) {

$products_image_name = $products_image->filename;

$products_image_name = $products_image;

} else {

$products_image_name = (isset($HTTP_POST_VARS['products_previous_image']) ? $HTTP_POST_VARS['products_previous_image'] : '');






case 'new_product_preview':


$products_image = $HTTP_POST_VARS['products_image'];

if ($products_image==''){

$products_image = $HTTP_POST_VARS['products_previous_image'];





Prior to the modifications made by the installation of Image Preview (06.02.2007 version) all was correct (i have the Open Featured Sets contribution, the ImageMagick contribution and the Category Fields contribution installed). Any way to get me preview images back ?


Thanks a lot in advance and keep up the good work !

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...