Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
xtinexoop
Nope - I'm definitely dim.
I have now installed it onto a server based demo shop. See
http://cumfybumfy.co.uk/zenshop
PHP is 5.2.6 (Zend 2.2.0) , SQL 5.0.51a-community
I have all the menu options that I think I need on the admin console, but it doesn't seem to be doing anything to the products?
Please tell me I am missing something really stupid in the 'how to use it' stakes.
Christine
Hi Christine, the link's not working? Think it works fine with stock by attributes module.
Have you made the changes to tpl_product_info_page.php?
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
xtinexoop
Arghhh... I did when I first installed it... but I didn't use that install because I got sidetracked with XAMPP probs, and I forgot to do it for the classic template & the new one I was testing!!! arghhhh!
That was it! Thanks
Christine
Whoops didn't read this one, case closed! Well done for getting this right:clap:
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
greydawgjr
Where are you seeing that error?
Also I looked at the page source of your site, your thumbnail images are actually 640 by 427 pixels. I can't say why that is because it's obviously resized the medium one. So it's not that IE is messing up somehow, it's that other browsers are just paying attention to the height and width rules and cramming the large image into those dimensions and IE isn't. If that is a production site and you need a quick fix I'd resize the images manually and overwrite the ones on your server (use the same file name of course). I think that'll leave the browsers that are working alone and fix your IE issue. Are you uploading the largest image you have to the small image field in AIS? If you do that it should be making a thumbnail (keeping the original file name), a medium image in your medium directory (appends _MED to file name) and large image in your large directory (appends _LRG to file name).
Exactly! Good luck in getting that done
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
Arquetipo
Hello,
I´ve tried introducing the images with AIS in
http://www.piperitahouse.com/menta/i...products_id=22
and allthough the jpeg compression is a bit low the resizing problems are solved, but new problems appear on the produc listing
The image os the product appear smaller.
There seems to be some kind of incompatibility between file-names.
When i use zen cart catalog or Image Handler a lot of incompatibilities appear...
What am I doig wrong?
Why firefox works with my last page and explorer messes things up?
Thank you.
Jacobo
Thats the weirdest problem I've ever seen with AIS!
Looks like the javascript for AIS crashes with those of other module's. Try disabling the other modules' javascript and see if thats working. If you need me to debug it for you, let me know via pm.
1 Attachment(s)
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
john4
thank you for the clear explanation.I know the logic now.
My configuration:
Small w75* h88
Medium w360*h420
Large w514*h600
*all the three proportion is 75:88=360:420=514:600=6:7
the image original size w600*700.
After it is uploaded by AIS, the 3 sizes are below:
Small w64* h88
Medium w308*h420
Large w514*h600
now we should know the problem. the proportion cannt be kept at smal size and medium size.:blush:
You can click here to see the wrong operation now :
http://www.he15.com/index.php?main_p...products_id=76
I think I see what is going on here. Rename this file by removing _test and placing it in your admin/includes/functions/extra_functions/ directory. Be sure to save the original but I think this one should work for you. If it works be sure to let Jay know.
Jay: commented out line 38 and added line 39. Looks like it was an error in calculating the zoom ratio. (Just checked attachment, and commented out the line I changed without changing it back to the original! It's late, I'm going to bed!
(Oops, just need the one file in that zip, not sure how I got the directory in there again. Either one, both are identical!)
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
greydawgjr
I think I see what is going on here. Rename this file by removing _test and placing it in your admin/includes/functions/extra_functions/ directory. Be sure to save the original but I think this one should work for you. If it works be sure to let Jay know.
Jay: commented out line 38 and added line 39. Looks like it was an error in calculating the zoom ratio. (Just checked attachment, and commented out the line I changed without changing it back to the original! It's late, I'm going to bed!
(Oops, just need the one file in that zip, not sure how I got the directory in there again. Either one, both are identical!)
Thank you man. After I replace the file,the following error message appear.I use AJAX Image Swapper v.3.1.1.
Fatal error: Cannot redeclare upload_resized_image() in /usr/ide/webs/e08050901/ROOT/admin/includes/functions/extra_functions/ais_image_functions.php on line 14
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
john4
Thank you man. After I replace the file,the following error message appear.I use AJAX Image Swapper v.3.1.1.
Fatal error: Cannot redeclare upload_resized_image() in /usr/ide/webs/e08050901/ROOT/admin/includes/functions/extra_functions/ais_image_functions.php on line 14
Hmmm, we aren't redeclaring anything here, although the file I edited came from 3.1.2 but I believe they are the same between versions. I dropped the new file in my install with 3.1.1 and had no issues. Where are you getting that error; admin, frontend, after trying to add an image?
All I did was change how the ratio was calculated. Originally it was this:
PHP Code:
$zoom = $width / $currheight;
and I changed it to this:
PHP Code:
$zoom = $height / $currheight;
You might open you original file and replace line 38 with the second line above and try it that way. It does work (at least for me :D)
Look at your images though... Your large size is 440 x 514 for a (w:h) ratio of .85, however your medium is 308 x 420 for a ratio of .73.
So what we have is 420/514 = .81 and .81 * 440 for 359. 359/420 = .85 just like 440/514. Maybe I'm missing something, (I think this does assume that your AIS config has 359 and 420 as your medium image dimensions). Especially since landscape images are calculated by taking $width / $currwidth and that's working, which is what I believe Jay meant to do for portrait images.
Give it a shot and let us know what happens...
Re: AJAX IMAGE Swapper support thread
HI Jay,
After I installed everything followed by the instruction, there is still some bugs:
I go to Admin-> Catalog-> AJAX Image Swapper v.3.1.2
I choose "Select category" but the product on "Product name:" won't show up.
Please kindly help!
Once I get everything fixed up I will definiately donate to your website.
Cheer!:smile:
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
iammad
HI Jay,
After I installed everything followed by the instruction, there is still some bugs:
I go to Admin-> Catalog-> AJAX Image Swapper v.3.1.2
I choose "Select category" but the product on "Product name:" won't show up.
Please kindly help!
Once I get everything fixed up I will definiately donate to your website.
Cheer!:smile:
Jay can probably provide more specific help but in the meantime can you verify that there is a file called mootools-complete.js in your admin/includes/javascript/ directory? This file is found in the mootoolsonadmin directory of the install package. See this post for further discussion:
http://www.zen-cart.com/forum/showpo...&postcount=214
1 Attachment(s)
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
john4
Thank you man. After I replace the file,the following error message appear.I use AJAX Image Swapper v.3.1.1.
Fatal error: Cannot redeclare upload_resized_image() in /usr/ide/webs/e08050901/ROOT/admin/includes/functions/extra_functions/ais_image_functions.php on line 14
Hi John,
I realized my original configurations were for landscape so the edit I did was never actually being called. I changed it to portrait and tried again and have been unable to produce any error. Furthermore, it's working PERFECTLY!:clap:
Maybe if you had AIS up when you swapped out that file it was complaining? Give it another shot, let me know if you need help...