Upon further review it appears that DDD is using the file tpl_modules_attributes.php to create the dropdown lists for the attributes while AIS wants to use the file tpl_modules_ajax_image_swapper_attr.php. Both of these files are located in your custom template directory inside the templates directory. My initial thought for a solution (after a 20 hour day at 3:15AM my time mind you) is that since the AIS only supports swapping images on one attribute (lets say attribute #1) then the AIS file needs to win. However for each other attribute which presumably we wish to control with DDD, then its file needs to win.
In other words, for the first attribute dropdown (if i exactly equal to 0) use AIS, for each successive iteration (else i greater than or equal to 1 i++) of the loop use DDD.
Then I guess the next step would be to get DDD and AIS to use this common file, but I don't yet know what other files in each module are looking for these two specific files.
Does this sound like the right track to anybody else?
yes it can.the small image and medium image were generated by the AIS.but the size are not right comparing to what I configed.
I ran into this same issue. It appears that the database doesn't update the default configuration value... I don't know enough about the zen cart database structure to say where to edit the value manually. However, if you're at a point where you're doing a fresh install of AIS you can probably change the sql script prior to install
('', 'Small Image Height', 'IMAGE_VIEWER_SMALL_IMAGE_HEIGHT','75 (change to whatever you need)','The height of small images in AJAX Image Swapper, shown as thumbnails. Default 75.', @last_id, 1, now()),
etc for the other values... I know this is hacky but all I can offer for now if you're in a hurry!
Hey, thanks!
Been away for a bit, now reading the posts...
it won't currently work without hacking the module since the tpl_modules_attributes[I forgot the name].php file was replaced during installation.
My next goal with this module is to fully integrate IH2 into it, to enhance the quality of resized image produced by this module. Which one do you think more critical?
The greatest pleasure in life is doing what people say you cannot do.
Check on www.WebExtremeCustomiser.com for my modules (free contribution):
AJAX Image Swapper
AJAX Banner Swapper
Fixed Navigation
Hi John, looks like you still got problem with image resizing until now, I hope I can assist you in this.
The resizing is working perfectly, I tried that on test site:
http://demosites.webextremecustomise...roducts_id=190
Which country are you in? I am not sure if it is the language difference problem since this module doesn't do anything with it.
One think you should know, sorry if you already do, the configuration won't have any effect until your next upload, so if you changed the medium sizes to 360 x 480, the images sizes you uploaded before won't change.
Good luck with it. Let me know if there's any problem. This week I hope I can reply sooner than before.
The greatest pleasure in life is doing what people say you cannot do.
Check on www.WebExtremeCustomiser.com for my modules (free contribution):
AJAX Image Swapper
AJAX Banner Swapper
Fixed Navigation
The greatest pleasure in life is doing what people say you cannot do.
Check on www.WebExtremeCustomiser.com for my modules (free contribution):
AJAX Image Swapper
AJAX Banner Swapper
Fixed Navigation
Thank you Jay.
I am still falling into the resize problem. We can notice that when the image is in landscape mode, AIS resize porperly. As the image in portrait mode ,the resize function go wrong.
landscape(w: 800* h: 600): http://www.he15.com/index.php?main_p...products_id=75
protrait(w: 600* h: 800): http://www.he15.com/index.php?main_p...products_id=76
I also try to upload the images after the new configuration, luckly the problem is still there.
I come from China,the source code is in UTF-8 format.
Bookmarks