Jump to content



Latest News: (loading..)

* * * * * 5 votes

[Contribution] OPI: OsC Product Image Module


  • Please log in to reply
129 replies to this topic

#81   Parikesit

Parikesit
  • Members
  • 263 posts
  • Real Name:zaenal
  • Gender:Male
  • Location:Bandung, Indonesia

Posted 16 October 2011 - 06:27 PM

View Postg2777, on 16 October 2011 - 10:25 AM, said:

Absolute path:
http://www.rain-e-da...llow-lily-1.jpg
Thumbnail paths:
http://www.rain-e-da...llow-lily-1.jpg
http://www.rain-e-da...llow-lily-1.jpg
http://www.rain-e-da...llow-lily-1.jpg

But I still get the spinning 'loading' image on my product_info.php.

Hi Graham,

I have no idea why it's did not show up on your product info page, because the thumbnail images work properly. I try to access your store but seem it's on "maintenance" mode...

Try to "view source" and find the IMG tag that load thumbnail image. How it look like? Does the SRC attribute pointing to the right URL?

<img src=".../images/thumbs/def/display/products/0-3-months-yellow-lily-1.jpg" />

@zaenal

#82   OSC-Sevilla

OSC-Sevilla
  • Members
  • 391 posts
  • Real Name:George
  • Gender:Male
  • Location:Sevilla, Spain

Posted 16 October 2011 - 08:06 PM

View PostParikesit, on 16 October 2011 - 12:23 AM, said:


Hi Gemma,

Open file in admin: /includes/classes/productImageHandler.php, and replace below line
if (mkdir($dest . $new_folder)) {
with this one
if (mkdir($dest . $new_folder, 0755)) {

Hope that help.

Note: It's seem OPI need one more configuration for handling this. So it's can be configured from admin page.

Thanks,
@zaenal



Thanks for the post - no joy im affraid - still 700...- please post me any further suggestions to try.

Many Thanks
OSC 2.3.1
INSTALLED:Document Manager / Monthly Sales and Tax Returns / Batch Print Invoices / Ultimate HTML EMAILs / AJAX Attribute Manager / OSC PDF Catalog / Move Bookmarks / Sort Order / Easy Populate / Sales Reports / Low Stock Report / Admin: Model # on Category / Product Administration Screen / Mini images in admin / SLiCK reCaptcha / Google + / Beautiful Breadcrumbs / 2.3.1 - Banner Language Mod / ADD New Page / EASY MAP (google) v.3.0 / Who's Online Enhancement for 2.3.1 / Admin Notes / scrambled order number / remove_unused_images / Quantity Select / Unit Weight / Product Specifions (filter results) / AJAX Product Attributes/ Attribute Codes/ Date & Order No. to Invoice/ O.P.I. 2.0 / Attribute Images / Manual Order Editor / Attributes Clone / Order Editor / Create Order / Company VAT No. / Add customer/  CKEditor 2.3.1 / Page Manager / Default images via admin / Percentage Shipping Price / QTPro / Scroll to Top / PDF Invoice / Featured Products / Product Listing Enhancements / AutoBackups /  Ultimate SEO URLS 5 Pro / Kiss Tags/ ..Custom Admin Mods /

#83   Parikesit

Parikesit
  • Members
  • 263 posts
  • Real Name:zaenal
  • Gender:Male
  • Location:Bandung, Indonesia

Posted 16 October 2011 - 09:46 PM

View Postgfasal, on 15 October 2011 - 09:01 PM, said:

I am running a linux server -  when creating a new directory it creates itself with a CHMOD 700 -

opi_thumnails.php - i have tiried 755 or 777, but the diredtcory still creates itself with CHMOD 700 -

On linux you should use octal value with leading zero. On opi_thumbnail.php find OPI_FS_CHMOD, and set 0755

define('OPI_FS_CHMOD', 0755);


If you can't find OPI_FS_CHMOD on that file, I'm afraid you use older version. Download the new one here: http://addons.oscommerce.com/info/8139

Edited by Parikesit, 16 October 2011 - 09:50 PM.


#84 ONLINE   g2777

g2777
  • Members
  • 25 posts
  • Real Name:Graham Moore
  • Gender:Male
  • Location:Torquay, Devon, UK

Posted 16 October 2011 - 11:55 PM

View PostParikesit, on 16 October 2011 - 06:27 PM, said:


Try to "view source" and find the IMG tag that load thumbnail image. How it look like? Does the SRC attribute pointing to the right URL?

<img src=".../images/thumbs/def/display/products/0-3-months-yellow-lily-1.jpg" />

@zaenal

Sorry zaenal,
I forgot about the Maintenance mode.  My pc bypasses it. I've turned it off now so you can see it if you need to.
I've been crawling through the code all evening trying to find the cause and I think I have, but not a solution.  It turns out that my tep_image() function doesn't work with 'thumbs/def/****' in the path. There is no "<img src=" at all in the html source because the function doesn't output. I can't figure out why.
If I take out the relative thumbs/ path and have an absolute path to the image on the server then it will display it.  The href links work and I can see them in the source just not the actual images themselves.

It's probably worth noting that I've tried this with 1 picture on a product and 4 pictures on a product. No images display either way.. At the moment the only products with more than one image are:

http://www.rain-e-daze.co.uk/shop/product_info.php/cPath/29_30/products_id/43
and
http://www.rain-e-daze.co.uk/shop/product_info.php/cPath/29_30/products_id/51

Thanks for your input,
Graham
Rain-e-Daze v2.32.3.11.0 (Live, frequently updated) - osC v2.3.2
Add-Ons
Advanced Special Offers, AJAX Attribute Manager, Consolidated Login, Header Cart, Delete Customer Account, Discount Code, Enhanced Categories (partial), Enhanced Contact Us, Header Search, Header Tags SEO, Header/Footer Content Modules, Keyword Search Report, KissIT Thumbnailer, KissER Error Reporting, Margin Report, MATC, PHP Intrusion Detection System, Product Monitor, Quantity Tracker Pro 4.6.1, Reviewers Average Rating, Roadmap, Security Pro, Simple Modal Shopping Cart, Sitemap SEO, SLiCK reCaptcha, Spiders, Supertracker, Tracking Module, UK Shipping Methods, Ultimate SEO URLs 5 PRO, Version Checker, Virus Scanner, Who's Online Enhancement

#85   OSC-Sevilla

OSC-Sevilla
  • Members
  • 391 posts
  • Real Name:George
  • Gender:Male
  • Location:Sevilla, Spain

Posted 17 October 2011 - 07:48 AM

View PostParikesit, on 16 October 2011 - 09:46 PM, said:


On linux you should use octal value with leading zero. On opi_thumbnail.php find OPI_FS_CHMOD, and set 0755

define('OPI_FS_CHMOD', 0755);


If you can't find OPI_FS_CHMOD on that file, I'm afraid you use older version. Download the new one here: http://addons.oscommerce.com/info/8139



------------


I am using the lastest version and my opi_thumbnail.php reads:

define('OPI_FS_CHMOD', 0755);  // some servers required 0775 or 0777


-----------------

Still no joy - the folder being created is CHMOD  still 0700............

Does any else have this issue? It only occurs when creating a new directory.
OSC 2.3.1
INSTALLED:Document Manager / Monthly Sales and Tax Returns / Batch Print Invoices / Ultimate HTML EMAILs / AJAX Attribute Manager / OSC PDF Catalog / Move Bookmarks / Sort Order / Easy Populate / Sales Reports / Low Stock Report / Admin: Model # on Category / Product Administration Screen / Mini images in admin / SLiCK reCaptcha / Google + / Beautiful Breadcrumbs / 2.3.1 - Banner Language Mod / ADD New Page / EASY MAP (google) v.3.0 / Who's Online Enhancement for 2.3.1 / Admin Notes / scrambled order number / remove_unused_images / Quantity Select / Unit Weight / Product Specifions (filter results) / AJAX Product Attributes/ Attribute Codes/ Date & Order No. to Invoice/ O.P.I. 2.0 / Attribute Images / Manual Order Editor / Attributes Clone / Order Editor / Create Order / Company VAT No. / Add customer/  CKEditor 2.3.1 / Page Manager / Default images via admin / Percentage Shipping Price / QTPro / Scroll to Top / PDF Invoice / Featured Products / Product Listing Enhancements / AutoBackups /  Ultimate SEO URLS 5 Pro / Kiss Tags/ ..Custom Admin Mods /

#86   Parikesit

Parikesit
  • Members
  • 263 posts
  • Real Name:zaenal
  • Gender:Male
  • Location:Bandung, Indonesia

Posted 17 October 2011 - 01:51 PM

View Postgfasal, on 17 October 2011 - 07:48 AM, said:

Still no joy - the folder being created is CHMOD  still 0700............

Does any else have this issue? It only occurs when creating a new directory.

Never seen it... I'm not linux expert, but this could be happen on some server that appoint specific privilege (user and user group) to PHP.

Another workaround, try to CHMOD the folder manually. Open opi_thumbnail.php, and find @mkdir(OPI_FS_IMAGES_OPI_THUMB . $subdir, OPI_FS_CHMOD), and make some change like below:

	//check directory
	$dirs = explode(DIRECTORY_SEPARATOR, $imMode['thumb']);
	$subdir = '';
	for ($i=0; $i < sizeof($dirs)-1; $i++) {
		$subdir .= $dirs[$i] . DIRECTORY_SEPARATOR;
		if (!is_dir(OPI_FS_IMAGES_OPI_THUMB . $subdir)) {
			@mkdir(OPI_FS_IMAGES_OPI_THUMB . $subdir);
		}
		@chmod(OPI_FS_IMAGES_OPI_THUMB . $subdir, OPI_FS_CHMOD);
	}

@zaenal

#87   Parikesit

Parikesit
  • Members
  • 263 posts
  • Real Name:zaenal
  • Gender:Male
  • Location:Bandung, Indonesia

Posted 17 October 2011 - 03:05 PM

There is no error on your opi_thumbnail.php and .htaccess. I try to access your rain_light.gif and 0-3-months-yellow-lily.jpg using opi thumbnailer, and it's works:

View Postg2777, on 16 October 2011 - 11:55 PM, said:

It's probably worth noting that I've tried this with 1 picture on a product and 4 pictures on a product. No images display either way..

I guess the problem come from your tep_image function. Did you add an addon that modify tep_image function? Well, if you add file_exists check to tep_image, the result will always null because the thumbnail is generated on-the-fly by opi_thumbnail.php.

Just try to write IMG tag without tep_image on your product_info.php:

<?php
	if (tep_not_null($product_info['products_image'])) {
	  //$pi_query = tep_db_query("select image, htmlcontent from " . TABLE_PRODUCTS_IMAGES . " where products_id = '" . (int)$product_info['products_id'] . "' order by sort_order");
	  $products_images = explode(',', $product_info['products_images']);
	  if (sizeof($products_images) > 1) {		
?>
	<div id="piGal" style="float: right;">
	  <ul>
<?php
		$pi_counter = 0;
		foreach ($products_images as $pi) {
			$pi_counter++;
			$pi_entry = '		<li><a href="';
			$pi_entry .= tep_href_link(DIR_WS_IMAGES . 'thumbs/def/large/' . $pi);
			$pi_entry .= '" target="_blank" rel="fancybox"><img src="' . tep_href_link(DIR_WS_IMAGES . 'thumbs/def/display/' . $pi) . '" /></a>';
			$pi_entry .= '</li>';
			echo $pi_entry;
		}
?>
	  </ul>
	</div>
<script type="text/javascript">
$('#piGal ul').bxGallery({
  maxwidth: 300,
  maxheight: 200,
  thumbwidth: <?php echo (($pi_counter > 1) ? '75' : '0'); ?>,
  thumbcontainer: 300,
  load_image: 'ext/jquery/bxGallery/spinner.gif'
});
</script>
<?php
	  } else {
?>
	<div id="piGal" style="float: right;">
	  <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . 'thumbs/def/large/' . $product_info['products_image']) . '" target="_blank" rel="fancybox"><img src="' . tep_href_link(DIR_WS_IMAGES . 'thumbs/def/display/' . $product_info['products_image']) . '" alt="' . addslashes($product_info['products_name']) . '" hspace="5" vspace="5" /></a>'; ?>
	</div>
<?php
	  }
?>
<script type="text/javascript">
$("#piGal a[rel^='fancybox']").fancybox({
  cyclic: true
});
</script>
<?php
	}
?>


@zaenal

#88   OSC-Sevilla

OSC-Sevilla
  • Members
  • 391 posts
  • Real Name:George
  • Gender:Male
  • Location:Sevilla, Spain

Posted 17 October 2011 - 03:21 PM

GOT IT!!!!

productImageHandler.php

    if (!$this->error) {
    if (mkdir($dest . $new_folder, 0755)) {
    $this->error = 0;
                @chmod($dest . $new_folder, 0755);
OSC 2.3.1
INSTALLED:Document Manager / Monthly Sales and Tax Returns / Batch Print Invoices / Ultimate HTML EMAILs / AJAX Attribute Manager / OSC PDF Catalog / Move Bookmarks / Sort Order / Easy Populate / Sales Reports / Low Stock Report / Admin: Model # on Category / Product Administration Screen / Mini images in admin / SLiCK reCaptcha / Google + / Beautiful Breadcrumbs / 2.3.1 - Banner Language Mod / ADD New Page / EASY MAP (google) v.3.0 / Who's Online Enhancement for 2.3.1 / Admin Notes / scrambled order number / remove_unused_images / Quantity Select / Unit Weight / Product Specifions (filter results) / AJAX Product Attributes/ Attribute Codes/ Date & Order No. to Invoice/ O.P.I. 2.0 / Attribute Images / Manual Order Editor / Attributes Clone / Order Editor / Create Order / Company VAT No. / Add customer/  CKEditor 2.3.1 / Page Manager / Default images via admin / Percentage Shipping Price / QTPro / Scroll to Top / PDF Invoice / Featured Products / Product Listing Enhancements / AutoBackups /  Ultimate SEO URLS 5 Pro / Kiss Tags/ ..Custom Admin Mods /

#89   Parikesit

Parikesit
  • Members
  • 263 posts
  • Real Name:zaenal
  • Gender:Male
  • Location:Bandung, Indonesia

Posted 17 October 2011 - 03:34 PM

View Postg2777, on 16 October 2011 - 11:55 PM, said:


Some others suggestion...
  • Your product list (index.php) seem still use default image (a big one) that slowdown your site. Try to use opi thumbnail to display your product image everywhere.
  • Files that display product image
    • product_info.php (done)
    • popup_image.php
    • product_reviews.php
    • product_reviews_info.php
    • product_reviews_write.php
    • products_new.php
    • reviews.php
    • shopping_cart.php
    • specials.php
    • includes/modules/also_purchased_products.php
    • includes/modules/new_products.php
    • includes/modules/product_listing.php (!important)
    • includes/modules/boxes/bm_reviews.php
    • includes/modules/boxes/bp_specials.php
    • includes/modules/boxes/bm_whats_new.php
Just use the same method as product_info.php. Below an example to edit includes/modules/product_listing.php file...

Find...
		  case 'PRODUCT_LIST_IMAGE':
			if (isset($HTTP_GET_VARS['manufacturers_id'])  && tep_not_null($HTTP_GET_VARS['manufacturers_id'])) {
			  $prod_list_contents .= '		<td align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id'] . '&products_name=' . $listing['products_name']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>';
			} else {
			  $prod_list_contents .= '		<td align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id'] . '&products_name=' . $listing['products_name']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>';
			}
			break;

Replace with:
--here we use "thumbs/def/small/" but you can use other "def", or just edit opi_thumbnail.php to fit your need.
		  case 'PRODUCT_LIST_IMAGE':
			if (isset($HTTP_GET_VARS['manufacturers_id'])  && tep_not_null($HTTP_GET_VARS['manufacturers_id'])) {
			  $prod_list_contents .= '		<td align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '"><img src="' . tep_href_link(DIR_WS_IMAGES . 'thumbs/def/small/' . $listing['products_image']) . '" alt="' . $listing['products_name'] . '" /></a></td>';
			} else {
			  $prod_list_contents .= '		<td align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '"><img src="' . tep_href_link(DIR_WS_IMAGES . 'thumbs/def/small/' . $listing['products_image']) . '" alt="' . $listing['products_name'] . '" /></a></td>';
			}
			break;

@zaenal

Edited by Parikesit, 17 October 2011 - 03:43 PM.


#90   Parikesit

Parikesit
  • Members
  • 263 posts
  • Real Name:zaenal
  • Gender:Male
  • Location:Bandung, Indonesia

Posted 17 October 2011 - 03:35 PM

View Postgfasal, on 17 October 2011 - 03:21 PM, said:

GOT IT!!!!

productImageHandler.php

if (!$this->error) {
if (mkdir($dest . $new_folder, 0755)) {
$this->error = 0;
@chmod($dest . $new_folder, 0755);

Glad to hear that.

#91 ONLINE   g2777

g2777
  • Members
  • 25 posts
  • Real Name:Graham Moore
  • Gender:Male
  • Location:Torquay, Devon, UK

Posted 17 October 2011 - 06:39 PM

Parikesit said:

I guess the problem come from your tep_image function. Did you add an addon that modify tep_image function?

Actually I haven't touched the html_output.php or the general.php files at all so I don't know what's going on. If I find out I'll let you know just in case you come across it again.

View PostParikesit, on 17 October 2011 - 03:34 PM, said:

Some others suggestion...
  • Your product list (index.php) seem still use default image (a big one) that slowdown your site. Try to use opi thumbnail to display your product image everywhere.

Thank you.  This was the reason I was trying to get this to work.  I wanted to thumbnail the images everywhere but not have to make copies.  I'd only just started to implement OPI so I hadn't reached all the files yet.  Just finishing that off now.
I didn't say it before but this contribution is amazing. Just what I needed, thank you.


Off topic question: I noticed on the demo site that you linked to earlier (http://www.rhinebutik.com/en/product_info.php?products_id=2) that you had a drop down box that changes depending on the option selected. Do you know of any contributions that do something like that?


Many thanks again for all your help,
Graham
Rain-e-Daze v2.32.3.11.0 (Live, frequently updated) - osC v2.3.2
Add-Ons
Advanced Special Offers, AJAX Attribute Manager, Consolidated Login, Header Cart, Delete Customer Account, Discount Code, Enhanced Categories (partial), Enhanced Contact Us, Header Search, Header Tags SEO, Header/Footer Content Modules, Keyword Search Report, KissIT Thumbnailer, KissER Error Reporting, Margin Report, MATC, PHP Intrusion Detection System, Product Monitor, Quantity Tracker Pro 4.6.1, Reviewers Average Rating, Roadmap, Security Pro, Simple Modal Shopping Cart, Sitemap SEO, SLiCK reCaptcha, Spiders, Supertracker, Tracking Module, UK Shipping Methods, Ultimate SEO URLs 5 PRO, Version Checker, Virus Scanner, Who's Online Enhancement

#92   Parikesit

Parikesit
  • Members
  • 263 posts
  • Real Name:zaenal
  • Gender:Male
  • Location:Bandung, Indonesia

Posted 17 October 2011 - 11:25 PM

View Postg2777, on 17 October 2011 - 06:39 PM, said:

Off topic question: I noticed on the demo site that you linked to earlier (http://www.rhinebuti...p?products_id=2) that you had a drop down box that changes depending on the option selected. Do you know of any contributions that do something like that?

There is an addon "Stock View with Quantity per Attribute" out there, but I did not know how the frontpage look like. But I guess it's easy to create some javascript function using jQuery to get similar output.

As for the site mentioned, I did not use that addon but created myself, including the backend and frontend. I also use prototypejs instead of jQuery for frontpage catalog.

@zaenal

#93   mattmcginnis

mattmcginnis
  • Members
  • 1 posts
  • Real Name:Matt McGinnis

Posted 24 October 2011 - 10:08 PM

Hello,

I am having trouble installing this add on to my page. Everything seems to work fine, except for whatever reason, there is no modRewrite option available in my admin panel. Every other option is there, but there simply isn't a way for me to enable or disable modRewrite. I am using OSC Version 2.3, and I am attempting to use OPI V 2.0.

Has this problem happened to anyone else? What file would the modRewrite information be in? I checked opi_prodcutimage.php, and it seems like that's where it'd be, but I don't see any code that would implement it. Any help is appreciated. Thanks!

#94   Parikesit

Parikesit
  • Members
  • 263 posts
  • Real Name:zaenal
  • Gender:Male
  • Location:Bandung, Indonesia

Posted 26 October 2011 - 12:58 AM

View Postmattmcginnis, on 24 October 2011 - 10:08 PM, said:

Hello,

I am having trouble installing this add on to my page. Everything seems to work fine, except for whatever reason, there is no modRewrite option available in my admin panel. Every other option is there, but there simply isn't a way for me to enable or disable modRewrite. I am using OSC Version 2.3, and I am attempting to use OPI V 2.0.

Has this problem happened to anyone else? What file would the modRewrite information be in? I checked opi_prodcutimage.php, and it seems like that's where it'd be, but I don't see any code that would implement it. Any help is appreciated. Thanks!

Sorry, that's a bug...

Just create a php file in admin folder, with the code below. Run that file once and delete it afterward.

<?php
//bug no modRewrite
 
  require('includes/application_top.php');
  
  if (!defined('OSC_PRODUCT_IMAGE_MODREWRITE')) {
	  tep_db_query("INSERT INTO " . TABLE_CONFIGURATION . " (configuration_title,configuration_key,configuration_value,configuration_description,configuration_group_id,sort_order,date_added, set_function) VALUES ('OPI: mod_rewrite enabled', 'OSC_PRODUCT_IMAGE_MODREWRITE', 'true', 'OsC Product Image Module: If mod_rewrite enable, set to true. Otherwise, set to false. <br />', '4', '264', NOW(), '" . tep_db_input("tep_cfg_select_option(array('true', 'false'), ") . "')");
  }
 
  require(DIR_WS_INCLUDES . 'application_bottom.php');
?>

Edited by Parikesit, 26 October 2011 - 12:58 AM.


#95   drhigham

drhigham
  • Members
  • 12 posts
  • Real Name:Dave Higham
  • Gender:Male

Posted 12 November 2011 - 07:47 PM

I may have missed something, but the front of store thumbnails are using the big original sized images uploaded and this is making the front page of the store take a long time to load. Is there a way of making the thumbnails of the front end of the store use the images/_thumbnail_/adminthumb images?

Many thanks.

#96   drhigham

drhigham
  • Members
  • 12 posts
  • Real Name:Dave Higham
  • Gender:Male

Posted 15 November 2011 - 01:46 AM

View Postdrhigham, on 12 November 2011 - 07:47 PM, said:

I may have missed something, but the front of store thumbnails are using the big original sized images uploaded and this is making the front page of the store take a long time to load. Is there a way of making the thumbnails of the front end of the store use the images/_thumbnail_/adminthumb images?

Many thanks.
Managed to solve this. The auto generated images didn't appear on the frontend of the store because I had another add-on which interfered with the OPI auto generator.
Thanks again for OPI.

#97   patheon

patheon
  • Members
  • 1 posts
  • Real Name:Graham Clarke

Posted 19 November 2011 - 10:20 PM

Thanks you for such a great contribution to Oscommerce.  This is a very beautiful interface and I love the way it works.  I followed all the instructions and went into the Categories and explored a few of my previously added products.  It populated all of the pictures as I had expected.  I went to add a new product and it added all of the pictures that I asked it too.  However, when I went to my store's product page Only one picture was showing.  I had added five so I was confused.  I added another product with this same result.  I then went to add a picture to an existing product page and the picture did not show up.  I am confused.  Please help!

Thanks for your Time.

#98   zousug

zousug
  • Members
  • 1 posts
  • Real Name:Andrew

Posted 14 December 2011 - 03:43 AM

Hello,

I need some help, I have installed this ok so far.

But when I go to upload a image it just sits there loading.

In the server logs I am getting a PHP Fatal error:  Call to undefined function json_encode() error.

I am running PHP 5.2 but the tech does not want to upload encase it breaks Ensim.

I am running osCommerce Online Merchant v2.3.1 as well.

I need to find away to get this working as it needs to have multiple images per product.

Can any one help please.

Thank you.

#99   GniDhal

GniDhal
  • Members
  • 32 posts
  • Real Name:Francois-Xavier
  • Gender:Male
  • Location:France (56400 Auray)

Posted 23 December 2011 - 08:07 PM

Hi zaenal!
Nice job, your mod is very effective thanks a lot.
I use it on my store and it works very fine..
But... ;)
I have a very large catalog and a lot of images.
Browsing all the image directory is very long time and find the good picture is a challenge.
However I solve this problem by create automaticly subdir in the 'products' directory named like the products_model.
It Works.
But now I need to reduce the start directory browsing in the right directory : images/products/products_model/
I tried to push the new 'relative_dir' to the class but whithout effect.
How could I define the relative_dir different in each page edit product ?

I would to get the 'products/products_model/' folder  as the base directory to browse and target to uoload new file different for each product.

If you could help me You save me :)

Thanks again

#100   mumme

mumme
  • Validating
  • 121 posts
  • Real Name:magnus andersson
  • Gender:Male
  • Location:Stockholm | sweden

Posted 02 January 2012 - 10:35 AM

This is the best image addon I have tried during my soon 10 years experience with Oscommerce.
I have all up and running, looks great, but one thing thats concers me is the admin part isnt fully working if you use Internet Explorer 9.

The process in Google Chrome or Mozilla Firefox is like this:
Click on Upload Image -> Choose File -> Select Picture -> Click on Upload -> Upload bars shows  -> The picture saves

The process in Internet Explorer 9 is like this:
Click on Upload Image -> Choose File -> Select Picture -> Click on Upload -> Upload bars shows -> The "select picture" window showes again -> Re select the picture -> the upload bars shows, and just loading. The picture isnt saved.

Why does it works in mozilla, google chrome and not in IE9?