Results 1 to 10 of 35

Hybrid View

  1. #1
    Join Date
    Jun 2007
    Location
    Australia - Melbourne
    Posts
    310
    Plugin Contributions
    6

    Default Re: AJAX Image Swapper Basic Support

    Quote Originally Posted by osdude View Post
    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!

    Quote Originally Posted by osdude View Post
    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

  2. #2
    Join Date
    Jun 2007
    Location
    Australia - Melbourne
    Posts
    310
    Plugin Contributions
    6

    Default Re: AJAX Image Swapper Basic Support

    Quote Originally Posted by jaycode View Post
    Whoa you actually tested that?
    Thanks a lot mate!



    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:
      Code:
      <?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:
      Code:
      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:
      Code:
      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');?>
    4. find:
      Code:
        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:
      Code:
      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'); ?>
    Cheers,

    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

  3. #3
    Join Date
    Nov 2007
    Location
    south carolina
    Posts
    43
    Plugin Contributions
    0

    Default 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

  4. #4
    Join Date
    Jun 2007
    Location
    Australia - Melbourne
    Posts
    310
    Plugin Contributions
    6

    Default 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

  5. #5
    Join Date
    Nov 2007
    Location
    south carolina
    Posts
    43
    Plugin Contributions
    0

    Default 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

  6. #6
    Join Date
    Jun 2007
    Location
    Australia - Melbourne
    Posts
    310
    Plugin Contributions
    6

    Default 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

  7. #7
    Join Date
    Dec 2007
    Posts
    54
    Plugin Contributions
    0

    Default 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,
    Attached Images Attached Images  

 

 

Similar Threads

  1. AJAX IMAGE Swapper support thread
    By jaycode in forum All Other Contributions/Addons
    Replies: 785
    Last Post: 13 Jan 2016, 11:48 PM
  2. AJAX BANNER Swapper support thread
    By jaycode in forum All Other Contributions/Addons
    Replies: 19
    Last Post: 11 Oct 2012, 05:55 AM
  3. Any way to import image massively to AJAX Image Swapper ?
    By mybiz9999 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 17 Sep 2010, 04:35 PM
  4. Is there any way to massivly upload image to Ajax Image swapper?
    By mybiz9999 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 26 Jul 2010, 03:38 PM
  5. Error on AJAX IMAGE Swapper
    By easy665 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 28 Aug 2009, 02:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg