Forums / All Other Contributions/Addons / AJAX Image Swapper Basic Support

AJAX Image Swapper Basic Support

Locked

Views: 11,833

Results 21 to 37 of 37
This thread is locked. New replies are disabled.
4 Dec 2007, 4:08 AM
#21
osdude avatar

osdude

New Zenner

Join Date:
Nov 2007
Location:
south carolina
Posts:
42
Plugin Contributions:
0

AJAX Image Swapper Basic Support

I have noticed an undocumented feature, which may be unique to me.

Regular images don't show in the product info display. If I don't add pictures with the Swapper, then no images display in the product. I add a single image to swapper and the image displays on the product info page. I tried playing around with else and if statements, but I'm not that talented.

And I have this mod working with:
SEO URLs
Image Handler
Column Grid
Stock by Attributes
FEC
Improved Attributes Controller

I had to tweak around some settings, but other than the image no showing on product info display without loading image into swapper, everything works great!

4 Dec 2007, 4:28 AM
#22
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Location:
Australia - Melbourne
Posts:
306
Plugin Contributions:
1

Re: AJAX Image Swapper Basic Support

osdude:

I have noticed an undocumented feature, which may be unique to me.

Regular images don't show in the product info display. If I don't add pictures with the Swapper, then no images display in the product. I add a single image to swapper and the image displays on the product info page. I tried playing around with else and if statements, but I'm not that talented.

And I have this mod working with:
SEO URLs
Image Handler
Column Grid
Stock by Attributes
FEC
Improved Attributes Controller

Whoa you actually tested that?
Thanks a lot mate!:laugh:

osdude:

I had to tweak around some settings, but other than the image no showing on product info display without loading image into swapper, everything works great!

It was done like that on purpose, I'm afraid. With my websites, I only uploaded small, thumbnail pics for the product info, and the three picture sizes for each image on the swapper.

But that should be an easy fix. I will fix it by adding an if statement on product_info page, if there are no image for the shown product, then show the default zen-cart image screen. Stay tuned for the next update (maybe sometimes tomorrow)

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

4 Dec 2007, 6:34 AM
#23
kimsonvu avatar

kimsonvu

Zen Follower

Join Date:
Aug 2006
Location:
HCMC
Posts:
263
Plugin Contributions:
0

Re: AJAX Image Swapper Basic Support

Can this modules work fine with IM2 or i must uninstall IM2?

Thanks you for you modules !

From Hochiminh City - Vietnam !
Call me when you travel here : +840983038939
KIMSON

4 Dec 2007, 8:57 AM
#24
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Location:
Australia - Melbourne
Posts:
306
Plugin Contributions:
1

Re: AJAX Image Swapper Basic Support

kimsonvu:

Can this modules work fine with IM2 or i must uninstall IM2?

Thanks you for you modules !

What is IM2?

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

4 Dec 2007, 9:05 AM
#25
kimsonvu avatar

kimsonvu

Zen Follower

Join Date:
Aug 2006
Location:
HCMC
Posts:
263
Plugin Contributions:
0

Re: AJAX Image Swapper Basic Support

jaycode:

What is IM2?

Sory ! It is IMAGE HANDER 2.

From Hochiminh City - Vietnam !
Call me when you travel here : +840983038939
KIMSON

4 Dec 2007, 9:31 AM
#26
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Location:
Australia - Melbourne
Posts:
306
Plugin Contributions:
1

Re: AJAX Image Swapper Basic Support

Well, I haven't actually tried that, but after I read about image handler's function, I think:

  1. Both of them work on different area, image handler 2 to resize your images, while image swapper to display the images. So I don't think they could disturb each other (you can install image swapper and your site would still work)
  2. However they won't work together, ie you won't be able to upload your images through image handler 2 and wish they would be available to view with image swapper.
  3. I believe the image hover functionality would work though.
  4. One workaround to number 2 is by uploading the images using image handler 2, then download the different sizes images from your server, then upload them again using image swapper haven't been tested yet

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

5 Dec 2007, 12:38 AM
#27
osdude avatar

osdude

New Zenner

Join Date:
Nov 2007
Location:
south carolina
Posts:
42
Plugin Contributions:
0

Re: AJAX Image Swapper Basic Support

kimsonvu:

Sory ! It is IMAGE HANDER 2.

I'm using IM2 with AIS (Ajax Image Swapper) It works, but I had a lot of problems with it. The only feature I use for IM2 is making nice thumbnails, so everything else IM2 does, I have disabled or removed.

I installed AIS on top of IM2. It took a bit of tweaking, but I have both working simultaneously. They are not working together - when you load the images through AIS, the images aren't resized and sampled by IM2. Having the two integrated would be great. eg: uploading an image through AIS and having it resized, sampled and appropriate image size created.

If you do install AIS with IM2 and need to peek at some files, let me know. If you get them working together, let me know :D

5 Dec 2007, 3:24 AM
#28
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Location:
Australia - Melbourne
Posts:
306
Plugin Contributions:
1

Re: AJAX Image Swapper Basic Support

osdude:

eg: uploading an image through AIS and having it resized, sampled and appropriate image size created.

Interesting idea:yes:

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

5 Dec 2007, 11:28 AM
#29
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Location:
Australia - Melbourne
Posts:
306
Plugin Contributions:
1

Re: AJAX Image Swapper Basic Support

jaycode:

Whoa you actually tested that?
Thanks a lot mate!:laugh:

It was done like that on purpose, I'm afraid. With my websites, I only uploaded small, thumbnail pics for the product info, and the three picture sizes for each image on the swapper.

But that should be an easy fix. I will fix it by adding an if statement on product_info page, if there are no image for the shown product, then show the default zen-cart image screen. Stay tuned for the next update (maybe sometimes tomorrow)

Hi, following that message, here I post how to make your product info page able to switch between AIS and normal Zen-Cart view. I don't include this as an update since this method would make installation steps a bit harder, which I really don't want to do.

Here it goes:

  1. Go to your includes/templates/YOUR_TEMPLATE/templates/tpl_modules_ajax_image_viewer.php file, cut this line of code from there:```
<?php include(DIR_WS_MODULES . 'AJAX_image_swapper.php'); ?>
2. Then go to tpl_product_info_display.php file, and paste that code block on top of the page
3. find:```
require($template->get_template_dir('/tpl_modules_ajax_image_viewer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_ajax_image_viewer.php');?>
``` replace it with: ```
if ($opt_id_used == null) 
   require($template->get_template_dir('/tpl_modules_main_product_image.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_main_product_image.php');
else    
   require($template->get_template_dir('/tpl_modules_ajax_image_viewer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_ajax_image_viewer.php');?>
  1. find:require($template->get_template_dir('/tpl_modules_ajax_image_swapper_attr.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_ajax_image_swapper_attr.php'); ?> replace it with: ```
    if ($opt_id_used == null)
    require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php');
    else
    require($template->get_template_dir('/tpl_modules_ajax_image_swapper_attr.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_ajax_image_swapper_attr.php'); ?>

Jay

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

5 Dec 2007, 4:25 PM
#30
osdude avatar

osdude

New Zenner

Join Date:
Nov 2007
Location:
south carolina
Posts:
42
Plugin Contributions:
0

Re: AJAX Image Swapper Basic Support

Works beautifully, but that's no surprise.

To make it all the pages look the same, whether that page is using AIS or IM2

go to OUR_TEMPLATE/tpl_modules_main_product_image.php and change the div ID to the one you're using for AIS,

Change the div to that of the AIS div. Then in Admin>Images, change the Product Info - Image Width to 300 and change the Info Product Info - Image Height to 380

Viola!

All your product images in AIS or regular look great!

I'm still trying to get AIS to take images from IM2, but I've gotten nowhere so far, if I get something working, I'll let you know

6 Dec 2007, 4:09 PM
#31
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Location:
Australia - Melbourne
Posts:
306
Plugin Contributions:
1

Re: AJAX Image Swapper Basic Support

And I haven't even tried IM2 heheh

(btw shouldn't it be abbreviated IH ->Image Handler?o.O)

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

6 Dec 2007, 7:19 PM
#32
osdude avatar

osdude

New Zenner

Join Date:
Nov 2007
Location:
south carolina
Posts:
42
Plugin Contributions:
0

Re: AJAX Image Swapper Basic Support

yes, I think so - doh!

I'm new to Zen, and I kept calling it image manipulator.

not enough coffee or sleep :D

7 Dec 2007, 12:55 PM
#33
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Location:
Australia - Melbourne
Posts:
306
Plugin Contributions:
1

Re: AJAX Image Swapper Basic Support

Both for me heheh this few days been sleeping over 2am lol.

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

14 Dec 2007, 6:52 AM
#34
markpr9 avatar

markpr9

New Zenner

Join Date:
Dec 2007
Posts:
54
Plugin Contributions:
0

Re: AJAX Image Swapper Basic Support

Great Script!!!! If only I could use it.. hehe

On the admin panel, when I go to Catalogo >> Image Swapper Manager i don't have the category option...

Is there a reason for that?

Cheers,

16 Dec 2007, 4:25 AM
#35
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Location:
Australia - Melbourne
Posts:
306
Plugin Contributions:
1

Re: AJAX Image Swapper Basic Support

Hi Markpr9,

The one that has category option is the commercial version...

Well the reason was the basic was actually an initial version of AIS, which I decided to share. Currently the development is still continued with the commercial version. But other than that the basic version works perfectly.

Do you find it hard to use?

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

23 Dec 2007, 10:29 AM
#36
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: AJAX Image Swapper Basic Support

It's now about 5:22am here so this may be just a complete brain freeze, but after reading through this thread, do I understand it correctly that if I have image handler installed, I need to:

  1. mod the image swapper code like the posts on page 2 of the thread?
  2. add an image attribute to the other attributes of each product?

If #2 is the case, I'm doing golf clubs and the image doesn't change on most items as the attributes are mainly the length of the clubs (so far). The various images are merely different views of the clubs. So how would I put those as attributes?

For example if I have a model with 5 sizes, and the same 3 images that go with the 5 sizes?

ok, now I'm making myself dizzy......time to decide if I need more coffee or to go to bed....NAH...time for coffee and to wake up with a keyboard impression on my forehead again....

thank you,

betty

31 Dec 2007, 5:48 PM
#37
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Location:
Australia - Melbourne
Posts:
306
Plugin Contributions:
1

Re: AJAX Image Swapper Basic Support

Alrighty!

I have published the new face of my website, and uploaded the new version of AJAX Image Swapper.

The good news is, the was commercial module is now a free contribution!

So you all can try the new module here:
http://www.webextremecustomiser.com/index.php?main_page=product_info&cPath=1&products_id=1

and subscribe to the new thread here:
http://www.zen-cart.com/forum/showthread.php?t=84145

Happy New Year!

:D

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