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:
- 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');?>
- 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