Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] More_pics_6 v1.1 For osC 2.2 MS2


surfalot

Recommended Posts

  • Replies 1.6k
  • Created
  • Last Reply

Top Posters In This Topic

Check your database. All of the added lines should be in the configuration_group and configuration tables, probably near the end.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Cheers for that piece of code Jim, I think it worked, but waiting on an answer from my host as my images display with an red cross and i think its because file permissions are 644 on the images, but 777 on the folder.

Link to comment
Share on other sites

It could be. Try changing the permissions on one of your images to 644 and see if it shows up.

 

If that's not it, do View Source in your browser and look at the image tag. Is it calling the image from the correct location? Is the image name incorrect or missing?

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Hi Guys,

 

I installed this contribution and my admin->Products Images shows:

 

1146 - Table 'allscoot_enly.TABLE_PRODUCTS_IMAGES' doesn't exist

select count(*) as total from TABLE_PRODUCTS_IMAGES pi, products_description pd where pd.products_id = pi.products_id and pd.language_id = '1'

 

I did insert the database.sql into my database. I checked and products_images is there.

 

Anything I'm missing?

 

Thanks much for your input.

Link to comment
Share on other sites

It could be. Try changing the permissions on one of your images to 644 and see if it shows up.

 

If that's not it, do View Source in your browser and look at the image tag. Is it calling the image from the correct location? Is the image name incorrect or missing?

 

Regards

Jim

 

Hi Jim,

 

According to my host image permissions are fine, but where i put the code you gave me it is returning this

<img src="images/" border="0" alt="">

So it looks like it is not calling the images properly. Any ideas..

Link to comment
Share on other sites

That tells me that

$product_info['products_image'], $product_info['products_name']

are not being set. Perhaps your template has changed the database query for the information. Check your original version for the image tag. Is the query result $product_info? If that has changed, substitute the variable that your site uses.

 

If that is not the problem, then have you accidentally deleted the database query, or have you pasted the code I gave you above the query? The query needs to come first.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

That tells me that
$product_info['products_image'], $product_info['products_name']

are not being set. Perhaps your template has changed the database query for the information. Check your original version for the image tag. Is the query result $product_info? If that has changed, substitute the variable that your site uses.

 

If that is not the problem, then have you accidentally deleted the database query, or have you pasted the code I gave you above the query? The query needs to come first.

 

Regards

Jim

 

You are right, Just comparing it together i can see which query you mean. Now to try and solve it without messing up the template. Feel like starting again and just use sts or something to create my own. :')

Link to comment
Share on other sites

You probably missed an edit to catalog/index.php or catalog/includes/modules/product_listing.php.

 

Regards

Jim

 

Nope.. are you sure it is in catalog/index.php or catalog/includes/modules/product_listing.php?? could not find anything here..

 

The problem occurs only when you click on a subcategorie product.

 

Anyone?

 

Regards!

Link to comment
Share on other sites

This contribution only affects product images. Subcategory images are not altered by More Pics. Did you assign images to your subcategories?

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

"Did you assign images to your subcategories?" How do i do this?

 

 

My problem is the ...includes/modules/new_products.php file, i tried to upload this file from morepics contribution and it works with that file. but my design is then missing...

 

Can you please have a look at this file:

http://rapidshare.com/files/210809403/new_products.php.html

Edited by premium
Link to comment
Share on other sites

I have an older version of this code, I am hoping someone can help me. I am having the same issue as a previous post Here

 

When I click a product in the shopping cart, I go back to the product info page and the image is the full size (not the restricted parent image) and the url is a little different. Exactly as in the post linked to above.

 

I scrolled through the posts in response to that one and I couldn't quite follow if there had been a resolution to this or not.

 

I do not want to upgrade to the most recent more pics since I have mine working on a very heavily modified site and don't want to "break" it. Can anyone help me find the answer to that previous post to solve my problem?

 

Thank you in advance for your help!

Link to comment
Share on other sites

Go to your Admin -> Catalog -> Categories/Products, select your category and click Edit. Add an image and click Save.

 

In your New Products file, you missed the changes to the database query on Line 27. Your file comparison program should highlight that error. If you're not using one, I strongly recommend that you do so.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

I have an older version of this code, I am hoping someone can help me. I am having the same issue as a previous post Here

<snipped>

Do you have either Use SMALL_IMAGE_ Restrictions or Restrict parent image size set to true?

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Restrict parent image is true. I need it to be smaller because our images are huge (there is a reason for them to be huge).

 

I did just discover this. It does NOT happen on products which have no options (attributes). It is only happening on products with options. Maybe that would help determine the problem since I cant figure it out.

 

Thank you for your help!

Link to comment
Share on other sites

That is an odd problem. The attributes are certainly the key factor. osCommerce adds attribute codes onto the end of the products_id. We have to strip that off to use it for database querys, etc. I just haven't found where it would cause this problem. Yet.

 

As a preemptive strike, let's make certain that the attributes are bing stripped. In catalog/products_info.php, find all of the occurances of

$HTTP_GET_VARS['products_id']

in a database query. Make certain that all of them have (int) in front of that code. If it's not there, add it. There are quite a few places on that page, so be careful that you have them all.

 

If that doesn't work, look at the page source for a page that works and one that fails, and see what's in the <img > tags. Maybe the difference will give me a clue.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Hi Everybody!

 

I'm sooo excited to find this feature!! Here is my problem... I'm not sure anymore what to download. There are so many contributions listed. I downloaded the More Pics 2.0.5 - Bugfix, but it only had the code and no read me text. So I'm thinking I need to download something else first. Is there more than one file I'm supposed to download?

 

Please be gentle with me... I'm new! :blush:

Link to comment
Share on other sites

Jim,

 

Thanks for the help! I checked for the (int) and it was missing in a couple places. But, alas, it didnt matter. I dont know why I didnt think to compare the files! So, I did just that. Here's what I've found, it looks like an imagemagic issue!

 

The page with the image in the size uploaded, "incorrect":

 

<img src="images/20090318130106-Untitled-7090318.jpg"

 

The page with the image in the adjusted "correct" size:

 

<img src="imagemagic.php?page=prod_info&img=images/20090318130106-Untitled-7090318.jpg&w=250&h=386" width="250" height="386"

 

I dont think imagemagic is supported anywhere, so I might be screwed here. I'll have to take more time to look at it to see if I can find the cause.

Link to comment
Share on other sites

Go to your Admin -> Catalog -> Categories/Products, select your category and click Edit. Add an image and click Save.

 

In your New Products file, you missed the changes to the database query on Line 27. Your file comparison program should highlight that error. If you're not using one, I strongly recommend that you do so.

 

Regards

Jim

 

Thanks!!! line 27 is now edited and it`s working. :)

 

 

Hi Everybody!

 

I'm sooo excited to find this feature!! Here is my problem... I'm not sure anymore what to download. There are so many contributions listed. I downloaded the More Pics 2.0.5 - Bugfix, but it only had the code and no read me text. So I'm thinking I need to download something else first. Is there more than one file I'm supposed to download?

 

Please be gentle with me... I'm new! :blush:

download More Pics 2.0.5.

Link to comment
Share on other sites

Hello,

 

It appears to be a need for at least 3 images for the extra image function shows the images. When 'show original image on product info page' is set to false, there will no images be shown.

 

Can this be changed easily? Is there a special reason for this?

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.

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