Jump to content
Parikesit

[Contribution] OPI: OsC Product Image Module

Recommended Posts

@@Papanco,

 

Your modified product_info.php works on my teststore.

So it must be a problem of the database entries.

  • Please confirm that additional images show correct with the original product_info.php
  • Make sure that the thumbs are correct produced. Look in the thumbs directory for them (images/_thumbnail_/display1..2..3..4..5).
  • Then please post the image names you are using
  • Then please post a screenshot of the datase entries for the additional images.

 

regards

Rainer

Edited by raiwa

Share this post


Link to post
Share on other sites

@@alladin76ro

 

It seems to be different in your store, the main image doesn't show neither. I can't find any OPI thumbnail image in your store.

Please check the same like I suggested to papanco in the above post.

 

regards

Rainer

Edited by raiwa

Share this post


Link to post
Share on other sites

@@raiwa

 

Thank you for your answer. i started all over again. I added a new product, first image is shown, others are not. It's a fresh install of oscommerce, nothing changed.

 

Regads,

Dorian

Share this post


Link to post
Share on other sites

@@alladin76ro,

 

If you have a look on that screenshot:

http://www.magazinuldepescuit.ro/images/screenshots/products.jpg

You'll see that the product image path is duplicated in the database:

Example:

products/product.jpg,products/product-1.jpg,product............

 

It seems the image upload part is not correct installed or has a configuration problem. It doesn't produce the correct image paths.

I know that this part may not be ok out of the box, I do not give support for that part. Please use the original admin/categories.php file without the image upload tool.

The only important modification in admin/categories.php to get it to work is to include that line:

require(DIR_WS_CLASSES . 'productImageHandler.php');

at the beginning below:

require(DIR_WS_CLASSES . 'currencies.php');
$currencies = new currencies();

Then upload again the additional images and check if they show.

If they show, see the database entries of the images to see how the correct image paths have to look like.

Then try again with the opi image upload and check the configuration/coding.

 

I'm sorry, but I do not consider the image upload tool useful and will not give support for now. When I have a time in future maybe I will rewrite all this part and give support.

 

@@Papanco , please check this explained above, you should have the same issue in your database entries.

 

regards

Rainer

Share this post


Link to post
Share on other sites

I found the problem. This update uses different tabels in database, wich is not good for me. I already have a db with 20.000 products in OPI 2.0 version. 2.2 uses for images "products_images" instead of "products" table. I'll try to use 2.0 version. Thanks for all your help!

Share this post


Link to post
Share on other sites

@@alladin76ro,

 

You can adapt version 2.2 comparing the code differences in admin/categories.php

Share this post


Link to post
Share on other sites

I'm studying this contribution to see if it fits my needs and to try to understand why it uses a separate file instead a function to return the path of the thumbnail. Anyone has figured out why this setup?

 

The separate php file just loads the config.php file so it is quick, but application_top and all other functions are already loaded, so it shouldn't take more time to use the function. Don't you think?

Edited by piernas

Share this post


Link to post
Share on other sites

Hola Rainier,

 

 

I studied the Manual 3 times, sorry my friend but it's easier to understand Chinese.

I copied all the OPI files to a clean 235BS EDGE.

Because the manual is soooo clear in which code to add /change in admin/categorie and product_info a use yours to be shure it will work.

 

Login to administration page, than go to Configuration > Images. Here you'll find: xxx

 

Find NOTHING

 

Checked the files, all in right directories, but NO OPI in admin

 

saludos

Camella

Edited by SpicyGirl

Share this post


Link to post
Share on other sites

Hola Camella @@SpicyGirl,

 

I already several times answered in this forum:

 

I only updated the old OPI add on for Bootstrap and added some other features for the thumbnail part.

I didn't write the instructions.

 

I'm sorry, but I do not consider the image upload tool useful and will not give support for now. When I have a time in future maybe I will rewrite all this part and give support.

 

The only important modification in admin/categories.php to get the thumbnails to work is to include that line:

require(DIR_WS_CLASSES . 'productImageHandler.php');

at the beginning below:

require(DIR_WS_CLASSES . 'currencies.php');
$currencies = new currencies();

Then to install the configuration entries open once the file : Admin => Catalog => Categories/Products

 

Make sure you added the thumbnail path snippets to all image calls: tep_image(DIR_WS_IMAGES . 'thumbs/def/small/' . .

 

Then the thumbnails should work.

 

Again: I do not give support for the image upload feature in Admin => Categories/products :- Not my baby!

 

If you wants an easier thumbnail generator, try kissit thumbnailer. It has almost the same features and you do not need to edit all tep_image calls. But you need to use the tep_image functions with all images you wants to apply thumbs, no html coded <img scr=.....!

 

Un saludo cordial

Rainer

Edited by raiwa

Share this post


Link to post
Share on other sites

Hola Rainer,

 

 

I understand, thanks for your time. I tried Kissit few days ago, it was installed in no time without problems, but it f*ck up all the pics.

I tried for hours to changed it, but in index, category, product info all the pictures where decorated with a background.

Dont need background and could get it out, result ; KISSIT -> BASURA

Later I realised I could maybe ask help on the forum, reason i am here.

KISSIT was ok except the background.

If you can help me get that out, I would appriate it.

 

besitos

Camella

Share this post


Link to post
Share on other sites

Hola Camella,
 
Admin => Images => KissIT Product Watermark Size => KissIT Product Main Watermark size relativ to the image size (1.0=100%, 0.5 = 50%, 0=no watermark).

Just set the Watermark image size to 0 (zero)

Un saludo
Rainer

PS: It's explained in the Instruction file at the bottom: :-
Configuration Settings in Admin:

D.  Admin : Configure : Images : KissIT Product Watermark Size: Default : 0.6

KissIT Product Main Watermark size relativ to the image size (1.0=100%, 0.5 = 50%, 0=no watermark).

Edited by raiwa

Share this post


Link to post
Share on other sites

@raiwa  Thank you for updating this addon for bs 

Before install it I have question's ...   adding product images in some directory will all the images be active (that they will show in the product info page)?  Can I make some images inactive until there are in that directory (to not show in the product info page)?

Thank you

Joe

Share this post


Link to post
Share on other sites

@joe122joe, I'm very sorry, but I do not understand.

I really give no support to the admin upload feature part. I unly support the thumbnail generation part.

Anyway I recommend for that the kissit image thumbnailer. It's much easier to install and handle and has more and better features:

https://apps.oscommerce.com/oTI8V&kissit-image-thumbnailer-bs

Share this post


Link to post
Share on other sites

@raiwa thank you for answering  and sorry for my bad English ..
here is a screenshot. I  hope it will help to explain my question .. so when the active checkbox clicked the image will show in the product page, if not clicked it will not shown 

main-view1.jpg

Share this post


Link to post
Share on other sites
1 hour ago, raiwa said:

I really give no support to the admin upload feature part. I unly support the thumbnail generation part.

I do not use the image upload feature and have no test store with it installed. Just try.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×