Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product listing


FWR Media

Recommended Posts

8 hours ago, raiwa said:

try this:


 <?php echo tep_image('images/' . $product_info['products_image'], addslashes($product_info['products_name']), KISSIT_MAIN_PRODUCT_IMAGE_WIDTH, KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT, ((KISSIT_MAIN_PRODUCT_WATERMARK_SIZE > 0)? preg_replace('%<img width="[0-9 ]+" height="[0-9 ]+" src="(.*)title=.+%', 'data-highres="$1', tep_image('images/' . $product_info['products_image'], null, $width, $height, $product_info['products_id'])) : 'data-highres="'. 'images/' . $product_info['products_image'] . '"' . $product_info['products_id'])); ?> 

 

Many thanks,  Rainer.

forgot that i also must pass the $product_info['products_quantity'] aswell.

i tried this but its not passing the value:

       echo tep_image('images/' . $product_info['products_image'], addslashes($product_info['products_name']), KISSIT_MAIN_PRODUCT_IMAGE_WIDTH, KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT, ((KISSIT_MAIN_PRODUCT_WATERMARK_SIZE > 0)? preg_replace('%<img width="[0-9 ]+" height="[0-9 ]+" src="(.*)title=.+%', 'data-highres="$1', tep_image('images/' . $product_info['products_image'], null, $width, $height, $product_info['products_id'], $product_info['products_quantity'])) : 'data-highres="'. 'images/' . $product_info['products_image'] . '"' . $product_info['products_id'] . $product_info['products_quantity']));


It doesnt seem to pass the product image height or width correctly either. You can check it here when you go to the products page:

https://www.naturhigia.pt/lojaEDGE/index.php

the "sold out" triangle is pure CSS and should adapt to the product image just as it does in the front page.

 

Mind to give me an hand, please? This might be an interesting extra to your module. :)

Link to comment
Share on other sites

Hello Luis @Icebird,

I'm sorry, this kind of customization doesn't seem to be required by other users. You can always leave the KissIt thumbs out for the product page, you have only one product image there as far as I could see.

I would need to install your addition on a test store to see how to fix it and this is far beyond what I can offer here in the forum for free.

Hope you understand

Best regards

Rainer

Link to comment
Share on other sites

3 hours ago, raiwa said:


@Icebird

I would need to install your addition on a test store to see how to fix it and this is far beyond what I can offer here in the forum for free.

Yes, i understand.

Many thanks for the previous answer. It gave an highlight about the fix.

Once again, many thanks Rainer.

Link to comment
Share on other sites

57 minutes ago, ArtcoInc said:

@Icebird

Your problem has nothing to do with Kissit Image Thumbnailer, but have you looked at either of these:

HTH

Malcolm

 

Greetings,

Thanks for your answer.

Yes, i have taken a look at to those 2 add ons.

My issue is indeed with KissIT since i added code to the tep_image() modified for KissIT to overlay an css triangle to the detected out of stock products.

KissIT is a tremendous great add on and it should be core implemented since it highly decreases the stores loadout wich is crucial nowadays. Adding the out of stock overlay code in the tep_image is a way to accomplish it.

Link to comment
Share on other sites

On 20/03/2018 at 7:43 AM, raiwa said:

try this:


 <?php echo tep_image('images/' . $product_info['products_image'], addslashes($product_info['products_name']), KISSIT_MAIN_PRODUCT_IMAGE_WIDTH, KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT, ((KISSIT_MAIN_PRODUCT_WATERMARK_SIZE > 0)? preg_replace('%<img width="[0-9 ]+" height="[0-9 ]+" src="(.*)title=.+%', 'data-highres="$1', tep_image('images/' . $product_info['products_image'], null, $width, $height, $product_info['products_id'])) : 'data-highres="'. 'images/' . $product_info['products_image'] . '"' . $product_info['products_id'])); ?> 

 

Sorry to be at this again, Rainer, but that "fix" doesnt work.

This does pass the data

  echo tep_image('images/' . $product_info['products_image'], addslashes($product_info['products_name']), KISSIT_MAIN_PRODUCT_IMAGE_WIDTH, KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT, $product_info['products_id'], $product_info['products_quantity'], ((KISSIT_MAIN_PRODUCT_WATERMARK_SIZE > 0)? preg_replace('%<img width="[0-9 ]+" height="[0-9 ]+" src="(.*)title=.+%', 'data-highres="$1', tep_image('images/' . $product_info['products_image'], null, $width, $height)) : 'data-highres="'. 'images/' . $product_info['products_image'] . '"'));

...but then i get the following error bellow the product image at products_info.php:

" data-highres="images/thumbs/500_400/thai_cream.jpg" />  "

any thoughts?

 

Best regards,

Luis Xavier

Link to comment
Share on other sites

Hello

I have a problem with renaming images an I have Kissit installed.

I have just installed googlesitemap,xml and was trying to make my images names more google friendly.

Stupidly it seems, I changed the image name in my computers file manager and re-uploaded the newly named product image, now I am getting an internal server error when I attempt to save the changed product image.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

 

I have checked the my shop and admin error logs, but nothing shows up there, is there another error log?

How do I rectify this please?

 

Regards Shaun

Link to comment
Share on other sites

Hello @Dan Cole

No I didn’t. Do I just change the name in the product_images database using phpmyadmin to the same as the name of the changed file?

Is this the best way to change the image filenames? Or am I going to regret changing them? I think I will need to change maybe 100 image names.

Kind regards Shaun

Link to comment
Share on other sites

I would have a look at how one of the images is currently set up in the database table...make note of that and then update it in the normal manner using your usual product page within the admin and see how it is handled, what changes are made to your database table and whether that solves your problem when you view it in the store...ie the error you are seeing goes away.   If that works you can then edit the names using phpMyAdmin or by doing it one at a time in the usual manner using the product page.

What you did sounds like something I might have done. :laugh:

Dan

Link to comment
Share on other sites

This has turned into a real pickle!

I started a new product and used the offending image, again I had an internal server error. 

From this I take it that the Image has been corrupted.

Therefore how can I change the name of the images so that they do not become corrupted?

There must be a superbrain out there that can teach us fools.

Shaun

Link to comment
Share on other sites

Hello Shaun @RAC,

 

The superbrain nowadays is called Google. Just search for example for: "allowed web image names" and you'll find for example this page:

http://www.mtu.edu/umc/services/digital/writing/characters-avoid/

Another possibility would be to post us the name(s) of your problematic image(s) and maybe a normal brain here could tell you what is wrong with them.:wink:

Best regards

Rainer

 

Link to comment
Share on other sites

  • 4 weeks later...

Support for core colorbox and photoset-grid is included. Others you have to research.

Link to comment
Share on other sites

Is there an influence of the /thumbs directory in the creating SEO pages by Google xml sitemaps in Osc Edge? Is it necessary to disallow this folder it in robots.txt? (Or exclude it somehow)

Link to comment
Share on other sites

  • 4 weeks later...

can anyone advise

 

whenever i upload an image,

the product info page is failing to load fully

i checked error log and it says this

 

PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 12000 bytes) 

 

not sure why. i have 3 other sites running exact same code and same php 5.4 on server

 

what could it be?

the page loads fine when there are no images uploaded

Link to comment
Share on other sites

Link to comment
Share on other sites

@Owl Sauron,

Maybe for the product page (product_info.php).

And there is something reported with $HTTP_POST_VARS or $HTTP_GET_VARS still in some modification for the admin side. Not a big problem therefore, it will still work.

I'm already working on the updates of all my add-ons. Please be patient.

Link to comment
Share on other sites

Just now, raiwa said:

@Owl Sauron,

Maybe for the product page (product_info.php).

And there is something reported with $HTTP_POST_VARS or $HTTP_GET_VARS still in some modification for the admin side. Not a big problem therefore, it will still work.

I'm already working on the updates of all my add-ons. Please be patient.

Excelent!

maybe you could include a function for "out of stock" with an overlaying image or css over the products image :rolleyes:

Link to comment
Share on other sites

11 minutes ago, Owl Sauron said:

maybe you could include a function for "out of stock" with an overlaying image or css over the products image :rolleyes:

Sorry, but this is not subject of kiss it image thumbnailer. This should be a separate module.

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