Jump to content

Edit History

www.bio-krby-kamna.cz

www.bio-krby-kamna.cz

on product-edit.php you have correct selection image directory 

 

	  { $legacy_images = get_configuration_value('PS_LEGACY_IMAGES');
   	    $base_uri = get_base_uri();
	  }
	  $imgsizing = 'style="width:'.$prod_imgwidth.'px; height:'.$prod_imgheight.'px;"';
	  $path = getpath($id_image);


	  if($legacy_images) // right select !!!

	  { $imgbase = $base_uri.'img/p/'.$id_product.'-'.$id_image;
		$imgdir = $base_uri.'img/p/';
		$localbase = $localpath.'/img/p/'.$id_product.'-'.$id_image;
		$localdir = $localpath.'/img/p/';
		$namebase = $id_product.'-'.$id_image;
	  }
	  else
	  { $imgbase = $base_uri.'img/p'.$path.'/'.$id_image;
		$imgdir = $base_uri.'img/p'.$path.'/';
		$localbase = $localpath.'/img/p'.$path.'/'.$id_image;
		$localdir = $localpath.'/img/p'.$path.'/';
		$namebase = $id_image;
	  }

on the other php section, script work only with one image file system without support Legacy

www.bio-krby-kamna.cz

www.bio-krby-kamna.cz

on product-edit.php you have correct selection image directory 

 

	  { $legacy_images = get_configuration_value('PS_LEGACY_IMAGES');
   	    $base_uri = get_base_uri();
	  }
	  $imgsizing = 'style="width:'.$prod_imgwidth.'px; height:'.$prod_imgheight.'px;"';
	  $path = getpath($id_image);


	  if($legacy_images) // right select !!!

	  { $imgbase = $base_uri.'img/p/'.$id_product.'-'.$id_image;
		$imgdir = $base_uri.'img/p/';
		$localbase = $localpath.'/img/p/'.$id_product.'-'.$id_image;
		$localdir = $localpath.'/img/p/';
		$namebase = $id_product.'-'.$id_image;
	  }
	  else
	  { $imgbase = $base_uri.'img/p'.$path.'/'.$id_image;
		$imgdir = $base_uri.'img/p'.$path.'/';
		$localbase = $localpath.'/img/p'.$path.'/'.$id_image;
		$localdir = $localpath.'/img/p'.$path.'/';
		$namebase = $id_image;
	  }

on other section php, script work only with new image system 

www.bio-krby-kamna.cz

www.bio-krby-kamna.cz

on product-edit.php you have correct selection image directory 

 

	  { $legacy_images = get_configuration_value('PS_LEGACY_IMAGES');
   	    $base_uri = get_base_uri();
	  }
	  $imgsizing = 'style="width:'.$prod_imgwidth.'px; height:'.$prod_imgheight.'px;"';
	  $path = getpath($id_image);
	  if($legacy_images)
	  { $imgbase = $base_uri.'img/p/'.$id_product.'-'.$id_image;
		$imgdir = $base_uri.'img/p/';
		$localbase = $localpath.'/img/p/'.$id_product.'-'.$id_image;
		$localdir = $localpath.'/img/p/';
		$namebase = $id_product.'-'.$id_image;
	  }
	  else
	  { $imgbase = $base_uri.'img/p'.$path.'/'.$id_image;
		$imgdir = $base_uri.'img/p'.$path.'/';
		$localbase = $localpath.'/img/p'.$path.'/'.$id_image;
		$localdir = $localpath.'/img/p'.$path.'/';
		$namebase = $id_image;
	  }

on other section php script work only with new image system 

www.bio-krby-kamna.cz

www.bio-krby-kamna.cz

on product-edit.php you have correct selection on image directory 

 

	  { $legacy_images = get_configuration_value('PS_LEGACY_IMAGES');
   	    $base_uri = get_base_uri();
	  }
	  $imgsizing = 'style="width:'.$prod_imgwidth.'px; height:'.$prod_imgheight.'px;"';
	  $path = getpath($id_image);
	  if($legacy_images)
	  { $imgbase = $base_uri.'img/p/'.$id_product.'-'.$id_image;
		$imgdir = $base_uri.'img/p/';
		$localbase = $localpath.'/img/p/'.$id_product.'-'.$id_image;
		$localdir = $localpath.'/img/p/';
		$namebase = $id_product.'-'.$id_image;
	  }
	  else
	  { $imgbase = $base_uri.'img/p'.$path.'/'.$id_image;
		$imgdir = $base_uri.'img/p'.$path.'/';
		$localbase = $localpath.'/img/p'.$path.'/'.$id_image;
		$localdir = $localpath.'/img/p'.$path.'/';
		$namebase = $id_image;
	  }

on other section script work only with new image system 

×
×
  • Create New...