Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] Additional Images Module


Parikesit

Recommended Posts

Hi Surfalot!

 

Firstly I'd like to say a massive thank you for your wonderful add-on and the support you're providing on here.

I'm a complete newbie to osCommerce and any programming at all, so this has all been rather daunting and installing AI was scary (particularly the file comparison bit!) but so rewarding when it was done, I'm pretty proud of myself! lol

 

Just a quick question, have I done something wrong...

Since installing AI the product images look great when you view the individual product pages and the lists of products on the Sub-Categories pages. However, the images in the small boxes at the sides (for example the "Specials" or the "What's New") are all blurred, pixelated and distorted. The same is seen in the Grid View of the product on the main category pages.

 

What have a done wrong and is it fixable?

 

The address of the site (which is only a day or two into construction) is:

http://fancyfrocks4u.co.uk/catalog/index.php

 

I really do appreciate any help you may be able to give.

 

Kindest regards

 

Mark

Link to comment
Share on other sites

Hello All.... I am new to OSCommerce and I need a bit of help.

 

I just installed the latest contribution for the unlimited pictures..... http://addons.oscommerce.com/info/1611 (21 Jan 2009) but it is not loading all the pictures on the product info page. It only shows one. Also, in the administration site I could only set one picture to show, as soon as I make a picture active, the other pictures goes inactive. I am not sure what else to do. I am not so good with PHP and I tried to follow the setup instructions but there where files that looked a lot different than the contributions.

 

Please help! I am lost and don't know what else to do. Thanks!

Link to comment
Share on other sites

hi mark.

 

its a good ad on isnt it.

 

i had the same problem with some of my pictures, and worked round it like this.

 

i use photoshop to make sure that the picture of the product looks as good as it can (without deceiving the customer), and then save it as a .psd file, and a jpeg using the save for web and devices at my default resolution (750pix by whatever it works out to). keep the photo open in photoshop.

 

i use this as my default image and upload it via the add products section of the admin area. i allow the contrib to create the 3 image set, and then look at them in the live site. keep the admin area of the shop and the user area of the shop open in separate browser windows.

 

if im not happy with the resizing that the contrib dose, i make a note of the image size, and go back to the original . psd file, and save for web and devices with the same filename that the contrib created, and the appropriate image size.

 

then upload the new file via ftp, and its all good. refresh the user window of your browser to check that all is ok. it sounds complicated, but once you have done it a couple of times and you get used to swapping between aplications, its real quick.

 

i must say that i only need to do this for around 10% of the pictures that i put on the site. i must also say that i need to go and reedit around 1% of the original pictures in photoshop as they look bad when photoshop saves them.

 

maybe im using awkward pictures, but it does go to show that even a dedicated picture editing application cant get it right all the time.

 

hope this helps.

Link to comment
Share on other sites

Hi

 

I'm a newbie to OSC and have just installed the additional images contribution.

 

Configuration seems OK but I get this error when I try to edit a product.

 

1146 - Table 'ecomtool_ecomtools1.TABLE_ADDITIONAL_IMAGES' doesn't exist

 

SELECT additional_images_id, medium_images, popup_images, thumb_images, images_description FROM TABLE_ADDITIONAL_IMAGES where products_id = '33'

 

[TEP STOP]

 

This is where I am when this happens - http://www.ecomtools.co.uk/catalog/admin/c...ath=&pID=33

 

I've looked at the database in phpMyAdmin and a table called additional_images is there.

 

Sorry its such a vague question but I have no experience of this. Any help / ideas would be gratefully received.

 

Thanks............Ken

sounds like you missed the changes to /catalog/admin/includes/filenames.php

Link to comment
Share on other sites

Hello All.... I am new to OSCommerce and I need a bit of help.

 

I just installed the latest contribution for the unlimited pictures..... http://addons.oscommerce.com/info/1611 (21 Jan 2009) but it is not loading all the pictures on the product info page. It only shows one. Also, in the administration site I could only set one picture to show, as soon as I make a picture active, the other pictures goes inactive. I am not sure what else to do. I am not so good with PHP and I tried to follow the setup instructions but there where files that looked a lot different than the contributions.

 

Please help! I am lost and don't know what else to do. Thanks!

This is not the support thread for "More Pics". This is for "Additional Images". http://www.oscommerce.com/community/contributions,1032

Link to comment
Share on other sites

Hi Surfalot!

 

Firstly I'd like to say a massive thank you for your wonderful add-on and the support you're providing on here.

I'm a complete newbie to osCommerce and any programming at all, so this has all been rather daunting and installing AI was scary (particularly the file comparison bit!) but so rewarding when it was done, I'm pretty proud of myself! lol

 

Just a quick question, have I done something wrong...

Since installing AI the product images look great when you view the individual product pages and the lists of products on the Sub-Categories pages. However, the images in the small boxes at the sides (for example the "Specials" or the "What's New") are all blurred, pixelated and distorted. The same is seen in the Grid View of the product on the main category pages.

 

What have a done wrong and is it fixable?

 

The address of the site (which is only a day or two into construction) is:

http://fancyfrocks4u.co.uk/catalog/index.php

 

I really do appreciate any help you may be able to give.

 

Kindest regards

 

Mark

 

The issue that causes this is when you choose the images sizes in the Admin > Configuration > Images. Lets say your images are in the ratio of 3:2, that is 300px by 200px or 600px by 400px. And you set the smaller image sizes in the admin to resize, no larger then 300px by 300px. osCommerce code also uses those values to "force" images into 300px by 300px on the web page that is output since that is what is set in the admin (Admin > Configuration > Images).

 

Without changing any code the only way to fix this is to use a limiting width and height that is the same proportions as the images you are working with.

 

Unfortunately, often, images we get from manufacturers are not always the same proportion for all images. In that case this may be required. See this post for the rest of the information about this issue.

 

you will need to make those changes to any of the boxes and modules that use the SMALL_IMAGE_WIDTH and SMALL_IMAGE_HEIGHT constants:

/catalog/includes/boxes/

/catalog/includes/modules/

Edited by surfalot
Link to comment
Share on other sites

sounds like you missed the changes to /catalog/admin/includes/filenames.php

 

Hi Surfalot

 

Thanks for your help with the above, I had missed the changes to filenames.php

 

That got me further along and now I have a problem when trying to display a product.

 

Fatal error: Class 'displayimages' not found in /home/ecomtool/public_html/catalog/product_info.php on line 140

 

This problem also came up in Aug 2008 - see below

 

QUOTE (mkam @ Aug 22 2008, 05:05 AM)

Fatal error: Class 'displayimages' not found in /var/www/vhosts/olagiatospiti.gr/httpdocs/oscommerce/product_info.php on line 147

 

YOUR ANSWER: Look for the /includes/classes/ folder in the AI package you downloaded. Most likely you forgot to upload the file in that folder to your shop. (or maybe put it in the wrong place)

 

doulble check that all the "unique" files have been uploaded along with the changes to the current files.

 

I have the displayimages.php file in /includes/classes and I've checked the updates but am still getting the same error.

 

Any other ideas?

 

Thanks.......Ken

Link to comment
Share on other sites

Hallo, surfalot.

 

i have some stupid question want to ask you, where i can edit my additional image description? Because i also add images and forgot to write the describe. Where i can edit the describe of each addition images.

 

Thank.

Rocdy

 

Beginner in php programming and still learning from this forums.

Special thanks for Oscommerce Community Forums that help me a lot. :-)

Link to comment
Share on other sites

That got me further along and now I have a problem when trying to display a product.

 

Fatal error: Class 'displayimages' not found in /home/ecomtool/public_html/catalog/product_info.php on line 140

if the class file has been uploaded then you missed the change to the application_top.php.

Link to comment
Share on other sites

Hallo, surfalot.

 

i have some stupid question want to ask you, where i can edit my additional image description? Because i also add images and forgot to write the describe. Where i can edit the describe of each addition images.

 

Thank.

 

there is an image description field in every place the image is uploaded. If you missed in the primary image, edit it there. for the secondary images, you will need to delete the secondary images and add them again, this time with descriptions. Sorry, no place to edit the secondary images, only delete and add again.

Link to comment
Share on other sites

there is an image description field in every place the image is uploaded. If you missed in the primary image, edit it there. for the secondary images, you will need to delete the secondary images and add them again, this time with descriptions. Sorry, no place to edit the secondary images, only delete and add again.

 

Ok. Thank you very much. Your contribution are great. :D

Rocdy

 

Beginner in php programming and still learning from this forums.

Special thanks for Oscommerce Community Forums that help me a lot. :-)

Link to comment
Share on other sites

Lately there is a problem with my product pictures using AI. They look fuzzy and when I check the links they are linked to catalog/images/imagecache/ rather than just /images/

The 3 sizes still get generated but all link to the imagecache. This problem is quiet recent, but I have no idea what I could have done to cause it.

All the cache settings are set to „off“. I tried to search this entire thread for a similar problem but its just too big and the search wont allow to search just within 1 thread, so I hope someone solved this problem before...

I run apache linux php4.4 server with OsC 2.2 R1. The module ran fine for months... Please let me know what additional information is required to solve this!

EDIT: with new products, the directories, files and thumbnails are created but THERE IS NO PICTURE at all! the above imagecache problem only relates to existing products...

Edited by NewBudda

Open Source Newsletter: PhPList

Open Source Questionnaire: Lime Survey

Link to comment
Share on other sites

I just don't know. This contribution does nothing with an imagecache folder. The only guess I have is that maybe some kind of server level script was enabled, that is of course if you haven't installed something link Drupal.

Link to comment
Share on other sites

Where should I go then? When I downloaded that contribution it said to come here.

 

the correct link is shown on the download page for More Pics. If that contribution's docs show a different link, please mention that in your post. There was a little confusion when the newest contributor took over the project.

Link to comment
Share on other sites

EDIT: with new products, the directories, files and thumbnails are created but THERE IS NO PICTURE at all! the above imagecache problem only relates to existing products...

Is there any way that I can troubleshoot this problem? I mean are there any log files that tell me what wrong?

Open Source Newsletter: PhPList

Open Source Questionnaire: Lime Survey

Link to comment
Share on other sites

Is there any way that I can troubleshoot this problem? I mean are there any log files that tell me what wrong?

I would like to help, but don't know where to start. As I said above, this contribution does nothing with an "imagecache" folder. If you didin't install drupal or some other server level image caching, then check with your host and see if they know what could be caching and moving images.

Link to comment
Share on other sites

The only conribution i installed after AI was the supertracker. I can imagine what the problem is. It looks like i will have to digg out backups from 4 months ago... :(

Open Source Newsletter: PhPList

Open Source Questionnaire: Lime Survey

Link to comment
Share on other sites

When trying to delete the whole catalog folder i find that all the images created with AI are non deletable. Is that supposed to be like that? Changing the file ownership did not help.

Open Source Newsletter: PhPList

Open Source Questionnaire: Lime Survey

Link to comment
Share on other sites

Ok I have re-installed the contribution but now I get this error message when trying to add ne products.

Error This: /srv/www/vhosts/domain.com/httpdocs/shop/images/product/ directory is not writable. Attempting to correct...
Erfolg Directory permissions on /srv/www/vhosts/domain.com/httpdocs/shop/images/product/ was set successfully.
Error Failed to create directory /srv/www/vhosts/domain.com/httpdocs/shop/images/product/product_further/.
Error Error returned from alterimage class: 1
Error Thumb file: /srv/www/vhosts/domain.com/httpdocs/shop/images/product/product_further/product_name.jpg could not be created.
Error Error returned from alterimage class: 1
Error Products Info file: /srv/www/vhosts/domain.com/httpdocs/shop/images/product/product_further/product_name.jpg  could not be created.

 

Why is that? It worked before, why wouldnt it work now?

Open Source Newsletter: PhPList

Open Source Questionnaire: Lime Survey

Link to comment
Share on other sites

When trying to delete the whole catalog folder i find that all the images created with AI are non deletable. Is that supposed to be like that? Changing the file ownership did not help.

you will need to check with your host on that. It usually has to do with file ownership (as apposed to file permissions, there's a difference). Default setup for apache web server is to run the web pages under the default account "nobody". If your host is running your web space under the account nobody, then your FTP account will not have the correct permissions to manage the files AI creates.

 

Hosts that allow customers to manage content through web pages will normally have suPHP or suEXEC running on the server. That allows web pages in your account to create files with your account name as the owner rather then nobody.

Link to comment
Share on other sites

Ok I have re-installed the contribution but now I get this error message when trying to add ne products.

Error This: /srv/www/vhosts/domain.com/httpdocs/shop/images/product/ directory is not writable. Attempting to correct...
Erfolg Directory permissions on /srv/www/vhosts/domain.com/httpdocs/shop/images/product/ was set successfully.
Error Failed to create directory /srv/www/vhosts/domain.com/httpdocs/shop/images/product/product_further/.
Error Error returned from alterimage class: 1
Error Thumb file: /srv/www/vhosts/domain.com/httpdocs/shop/images/product/product_further/product_name.jpg could not be created.
Error Error returned from alterimage class: 1
Error Products Info file: /srv/www/vhosts/domain.com/httpdocs/shop/images/product/product_further/product_name.jpg  could not be created.

 

Why is that? It worked before, why wouldnt it work now?

 

you need to make sure /srv/www/vhosts/domain.com/httpdocs/shop/images folder has 0755 permissions for web space that is running under the account name of the web space. For servers running under the nobody (see above) account, the folder permissions need to be 777.

 

also check to make sure /srv/www/vhosts/domain.com/httpdocs/shop/images/products also complies if the folder exists.

Link to comment
Share on other sites

Thank you for that reply! The problem is that i am my own host. linux box, no support. the files were created with a different ownership than the rest of the catalog. strangely though, I coul not change them back to the right owner. For now, I just ignored the problem as its only pictures that are concerned, not important files. The real problem is that I cant add any new products...

Open Source Newsletter: PhPList

Open Source Questionnaire: Lime Survey

Link to comment
Share on other sites

Thank you for that reply! The problem is that i am my own host. linux box, no support. the files were created with a different ownership than the rest of the catalog. strangely though, I coul not change them back to the right owner. For now, I just ignored the problem as its only pictures that are concerned, not important files. The real problem is that I cant add any new products...

With the root login you can:

chown -R owner:group images

and the files and folders should get reset to the correct owner. (of course change owner:group to the correct owner and group for that account)

then set the permissions to 0755 with the CHMOD -R

 

My best advice after that is to get and install suPHP so that your web pages will be able to work under the correct owner and permissions. suPHP also protects against some attacks.

 

Time to bone-up on your LAMP (Linux/Apache/MySQL/PHP)

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.
Note: Your post will require moderator approval before it will be visible.

Guest
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...