-
1 Attachment(s)
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
greydawgjr
That's awesome! I'd like details on how you did that if you can! :clap:
Greydawgjr,
I edited the file includes/modules/pages/product_info/jscript_2_imageveiwer
Here is the file.
/* ImageViewer Class, a mootools based class made by Jaycode ([email protected])
** it's all object oriented, baby!
** 15 Apr 2008
*/
var ImageViewer = new Class({
arrowLeft_image_url : 'images/web_images/arrow_left.gif',
arrowRight_image_url : 'images/web_images/arrow_right.gif',
options: {
small_container_width : 75,
small_container_height : 75,
scroll_size : 3 //How many images to scroll when left or right arrow pressed
},
initialize: function(medium_image_element, navigator_element, image_array, displayed_image_num, options) {
this.medium_image_element = $(medium_image_element);
this.navigator_element = $(navigator_element);
this.num_small_images_displayed = displayed_image_num; //Number of small images displayed
this.total_image = image_array.length; //The total of images returned from server
this.leftmost_image_index = 0; //Leftmost index of displayed image
this.rightmost_image_index = displayed_image_num - 1; //Rightmost index of displayed image
this.image_array = image_array;
if (this.total_image <= this.num_small_images_displayed) {
this.num_small_images_displayed = this.total_image;
this.rightmost_image_index = this.total_image - 1;
}
this.set_previous_arrow();
this.init_small_images();
this.set_next_arrow();
if (this.options.initialize) this.options.initialize.call(this);
},
set_small_images: function() { // Display all the small images
for (var i=0; i < this.image_array.length; i++) {
this.counter = i;
var a_image = new Element('a', {
'id' : 'image_small_link-' + i,
'class' : 'back image_small',
'styles' : {
'height' : this.options.small_container_height + 'px',
'width' : this.options.small_container_width + 'px'
},
'events' : {
'click' : function(i) {
//var id = this.getProperty('id').replace('image_small_link-','');
this.set_medium_image(i);
return false;
}.bind(this, i)
},
'rel' : 'lightbox[gallery]',
'title' : this.image_array[i]['image_title']
});
var img_image = new Element('img', {
'width' : this.image_array[i]['image_width_small'],
'height' : this.image_array[i]['image_height_small'],
'src' : this.image_array[i]['image_path_small']
});
img_image.injectInside(a_image);
a_image.injectInside(this.navigator_element);
}
},
set_medium_image: function(index) {
var a_image = new Element('a', {
'id' : 'image_medium',
'class' : 'MagicZoom',
'href' : this.image_array[index]['image_path_large'],
'rel' : 'lightbox[gallery]',
'title' : this.image_array[index]['image_title']
});
var img_image = new Element('img', {
'width' : this.image_array[index]['image_width_medium'],
'height' : this.image_array[index]['image_height_medium'],
'src' : this.image_array[index]['image_path_medium'],
'alt' : this.image_array[index]['image_title'],
'title' : this.image_array[index]['image_title']
});
this.medium_image_element.empty();
img_image.injectInside(a_image);
a_image.injectInside(this.medium_image_element);
MagicZoom_findZooms();
Lightbox.init();
},
set_displayed_small_images: function() { // Set which images to set visible or not
for (var i = 0; i < this.image_array.length; i++) {
if (i < this.leftmost_image_index || i > this.rightmost_image_index) {
$('image_small_link-' + i).setStyle('display', 'none');
}
else {
$('image_small_link-' + i).setStyle('display', 'block');
}
}
},
init_small_images: function() {
if (this.total_image <= 1) { //No need to display small thumbnails if only one or less image found
this.set_medium_image(0);
}
else {
this.set_small_images();
this.set_displayed_small_images();
this.set_medium_image(0);
}
},
set_previous_arrow: function(){
var a_left = new Element('a', {
'class' : 'back',
'id' : 'arrow_left',
'events' : {
'click' : function() {
if (this.leftmost_image_index > 0) {
for (var i = 0; i < this.options.scroll_size && this.leftmost_image_index > 0; i++) {
this.leftmost_image_index--;
this.rightmost_image_index--;
}
this.set_displayed_small_images();
$('img_arrow_right').setStyle('display', 'block');
}
if (this.leftmost_image_index == 0) {
$('img_arrow_left').setStyle('display', 'none');
$('span_spacer').setStyle('display', 'inline');
}
}.bind(this)
}
});
var img = new Element('img', {
'src' : this.arrowLeft_image_url,
'id' : 'img_arrow_left',
'styles' : {'display' : 'none'}
});
new Element('span', {'id' : 'span_spacer'}).setText('\xa0').injectInside(a_left);
img.injectInside(a_left);
a_left.injectInside(this.navigator_element);
},
set_next_arrow: function(){
var a_right = new Element('a', {
'class' : 'back',
'id' : 'arrow_right',
'events' : {
'click' : function() {
if (this.rightmost_image_index < this.total_image - 1) {
for (var i = 0; i < this.options.scroll_size && this.rightmost_image_index < this.total_image - 1; i++) {
this.rightmost_image_index++;
this.leftmost_image_index++;
}
this.set_displayed_small_images();
$('img_arrow_left').setStyle('display', 'block');
$('span_spacer').setStyle('display', 'none');
}
if (this.rightmost_image_index == this.total_image - 1) {
$('img_arrow_right').setStyle('display', 'none');
}
}.bind(this)
}
});
if (this.num_small_images_displayed >= this.total_image) {
var display_mode = 'none';
}
else {
var display_mode = 'block';
}
var img = new Element('img', {
'src' : this.arrowRight_image_url,
'id' : 'img_arrow_right',
'styles' : {
'display' : display_mode
}
});
img.injectInside(a_right);
a_right.injectInside(this.navigator_element);
}
});
ImageViewer.implement(new Options, new Events);
and uploaded the files in this zip.
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
monkeypeach
Sorry to sound stupid, but in the readme file, it states in the installation section:
1. Read (& follow) point I.3 above, copy & paste everything inside the folders
into your website's root folder.
Do I simply copy the whole AJAX_image_swapper_v3.1.3 folder in to my root folder, or do I need to place each individual file in the correct place myself?
Thanks.
You need to place each individual file yourself.
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
dscott1966
You need to place each individual file yourself.
Thanks!:smile:
-
Re: AJAX IMAGE Swapper support thread
Just about there, except I'm not sure where the "fual slimbox v0.1.5 documentation" should go?
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
monkeypeach
Just about there, except I'm not sure where the "fual slimbox v0.1.5 documentation" should go?
Thats nothing that just documentation on how to install fual slimbox and how to use it. If this is a fresh install then you do not need to do anything in that file. If you have installed fual slimbox before you installed ajax image swapper then you need to install the zen_lightbox patch that is included in that file.
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
greydawgjr
I think you need all of this:
PHP Code:
UNINSTALLATION
SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4
FROM configuration_group
WHERE configuration_group_title= 'Fual Slimbox';
DELETE FROM configuration WHERE configuration_group_id = @t4;
DELETE FROM configuration_group WHERE configuration_group_id = @t4;
DROP TABLE products_attributes_images;
SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4
FROM configuration_group
WHERE configuration_group_title= 'AJAX Image Swapper';
DELETE FROM configuration WHERE configuration_group_id = @t4;
DELETE FROM configuration_group WHERE configuration_group_id = @t4;
Those double dashes are commented out lines, I uncommented them in the code above...
Do I just copy and paste the above into "install sql patches" to delete this? I don't quite understand your double dashes comment?.:no:
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
monkeypeach
Do I just copy and paste the above into "install sql patches" to delete this? I don't quite understand your double dashes comment?.:no:
What are you trying to do delete it?
-
Re: AJAX IMAGE Swapper support thread
Realised I don't really need this contribution, so I'd like to uninstall it.
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
monkeypeach
Realised I don't really need this contribution, so I'd like to uninstall it.
Yes, just copy and paste that code. The double dashes was referring to the original code where it is commented out.
-
Re: AJAX IMAGE Swapper support thread
ok, tried it, but I get the following message:
1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UNINSTALLATION SET @t4=0' at line 1
in:
[UNINSTALLATION SET @t4=0;]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
:(
-
3 Attachment(s)
Re: AJAX IMAGE Swapper support thread
really need a hand. not working to me, trying 2 days and still cannot get any fruit.
1. i should install this AIS correctly. following your read me text to correct tpl_product_info_display.php
2. 1 product, i made 1 attribute : SIZE : S, M , L , please see my attached photo. when i go to catolog/ AIS manager, check NO attribute , i got 1 photo.
but do not know how to use this photo.
if i check YES attribute, the box showed. : "there is no photo in this attribute",
but i already added a photo to SIZE: Small attribute.
how to do next?
please help.
-
Re: AJAX IMAGE Swapper support thread
I also don't have UPLOAD IMAGE button.
please help
thank you.
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
colour97
really need a hand. not working to me, trying 2 days and still cannot get any fruit.
1. i should install this AIS correctly. following your read me text to correct tpl_product_info_display.php
2. 1 product, i made 1 attribute : SIZE : S, M , L , please see my attached photo. when i go to catolog/ AIS manager, check NO attribute , i got 1 photo.
but do not know how to use this photo.
if i check YES attribute, the box showed. : "there is no photo in this attribute",
but i already added a photo to SIZE: Small attribute.
how to do next?
please help.
First the box that you use to upload the image was for an image swatch not for the main images used for ajax image swapper.
After you have created your attribute you need to go to catalog>ajax image swapper manager.
1) Then you will see select category, Select your category
2) After you selected your category, You want to go to the next box and select the product name that you want the attributes for.
3) Select use attributes radio button to yes
4) Set the product image for option name ( in your case it would be size)
5) Then option value you should see s , m, l ( That would be the product or image you want to set that size for)
6) Once you do all that you can go over to the image side browse for the image you have for lets say small, upload all the images for small.
And that should be it!!!!
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
monkeypeach
ok, tried it, but I get the following message:
1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UNINSTALLATION SET @t4=0' at line 1
in:
[UNINSTALLATION SET @t4=0;]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
:(
Hmm, can you try copying and pasting everything from SET down (in other words don't copy and paste UNINSTILLATION) in the above referenced code? I'm sure your sql is above 4.1 but you might want to double check that as well. If this doesn't work I can walk you through how to do it with phpmyadmin or similar.
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
dscott1966
Hello, could you please help me with moving my attributes to the side of my product images like the way yours is. I hate the way I have to scroll down and scroll back up to see my images swap.
http://Muncheys.com/index.php?main_p...&products_id=6
Can you share the code you used and where they should be placed?
Thank you
-
Re: AJAX IMAGE Swapper support thread
Hi, and thanks for working on this product for so long!
I am new to Zen-Cart, and I have been trying to get this working for a couple days now.
I believe I have hit absolutely every issue possilbe! :smile: and I have worked through most of them, from originally having a database witha prefix on it, to having misplaced files, to not having deployed all files, basically everything.
At this point, I am pretty sure I have almost everything correct, as through the admin panel, I am able to actually use the AIS control panel to add images to individual attributes and see that they are getting stored and retrieved to the database. (This was also an issue, as the first time through, the tables didn't get created and I didn't realize it).
So now, the final problem is that the product_info page doesn't seem to be engaging the AIS engine to perform the rendering.
In my file structure i have
StoreRoot\includes\templates\SophyBlue\templates
tpl_modules_ajax_image_swapper_attr.php
tpl_modules_ajax_image_viewer.php
tpl_product_info_display.php <-- I suspect an issue here, i have tried placing it in
StoreRoot and in StoreRoot\includes to no avail.
I have set up radio button attributes on a product, and assigned 1 image to the small image to each option. I have Apache 2.2.8, PHP 5.2.6, and GD is enabled.
When I go to view a product, the normal image is displayed an nothing happens when I click to change an attribute...
Any help would be greatly appreciated!
-
Re: AJAX IMAGE Swapper support thread
I finally figured it out. The tpl_product_info_display.php that is currently in the AJAX_image_swapper_v3.1.3.zip does not have the lines
require($template->get_template_dir('/tpl_modules_ajax_image_viewer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_ajax_image_viewer.php');?>
and
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'); ?>
actually in it. It has the default values...
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
highroller
Hello, could you please help me with moving my attributes to the side of my product images like the way yours is. I hate the way I have to scroll down and scroll back up to see my images swap.
http://Muncheys.com/index.php?main_p...&products_id=6
Can you share the code you used and where they should be placed?
Thank you
Very easy to do in the file includes/template/your_template/templates/tpl_product _info _display and includes/template/your_template/css/stylesheet.css file you just have to move the corresponding information into DIV's and use the syles sheet to move and place them.
Here is my code for includes/template/your_template/templates/tpl_product _info _display
Code:
<div id="rightFloat">
<!--bof Attributes Module -->
<?php
if ($pr_attr->fields['total'] > 0) {
?>
<?php
/**
* display the product atributes
*/
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'); ?>
<?php
}
?>
<!--eof Attributes Module --></div>
move what you want inside that (div) <div id="rightFloat">.
Then add this to the end of your style sheet
Code:
#rightFloat {
float:right;
width:45%;
}
and that should work for you.
-
Re: AJAX IMAGE Swapper support thread
Hello, thank for your help. I added the code you gave and it did move it but not by the side of the product image. Can you take a look and see if I added the code in the wrong place.
Thank you
Code:
<?php
/**
* Page Template
*
* Loaded automatically by index.php?main_page=product_info.<br />
* Displays details of a typical product
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_product_info_display.php 5369 2006-12-23 10:55:52Z drbyte $
*/
//require(DIR_WS_MODULES . '/debug_blocks/product_info_prices.php');
?>
<div class="centerColumn" id="productGeneral">
<!--bof Form start-->
<?php echo zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product'), 'post', 'enctype="multipart/form-data"') . "\n"; ?>
<!--eof Form start-->
<?php if ($messageStack->size('product_info') > 0) echo $messageStack->output('product_info'); ?>
<!--bof Category Icon -->
<?php if ($module_show_categories != 0) {?>
<?php
/**
* display the category icons
*/
require($template->get_template_dir('/tpl_modules_category_icon_display.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_icon_display.php'); ?>
<?php } ?>
<!--eof Category Icon -->
<!--bof Prev/Next top position -->
<?php if (PRODUCT_INFO_PREVIOUS_NEXT == 1 or PRODUCT_INFO_PREVIOUS_NEXT == 3) { ?>
<?php
/**
* display the product previous/next helper
*/
require($template->get_template_dir('/tpl_products_next_previous.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_products_next_previous.php'); ?>
<?php } ?>
<!--eof Prev/Next top position-->
<!--bof Main Product Image -->
<?php
if (zen_not_null($products_image)) {
?>
<?php
/**
* display the main product image
*/
require($template->get_template_dir('/tpl_modules_ajax_image_viewer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_ajax_image_viewer.php');?>
<?php
}
?>
<!--eof Main Product Image-->
<!--bof Product Name-->
<h1 id="productName" class="productGeneral"><?php echo $products_name; ?></h1>
<!--eof Product Name-->
<!--bof Product Price block -->
<h2 id="productPrices" class="productGeneral">
<?php
// base price
if ($show_onetime_charges_description == 'true') {
$one_time = '<span >' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />';
} else {
$one_time = '';
}
echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int)$_GET['products_id']);
?></h2>
<!--eof Product Price block -->
<!--bof free ship icon -->
<?php if(zen_get_product_is_always_free_shipping($products_id_current) && $flag_show_product_info_free_shipping) { ?>
<div id="freeShippingIcon"><?php echo TEXT_PRODUCT_FREE_SHIPPING_ICON; ?></div>
<?php } ?>
<!--eof free ship icon -->
<!--bof Product description -->
<?php if ($products_description != '') { ?>
<div id="productDescription" class="productGeneral biggerText"><?php echo stripslashes($products_description); ?></div>
<?php } ?>
<!--eof Product description -->
<br class="clearBoth" />
<!--bof Add to Cart Box -->
<?php
if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
// do nothing
} else {
?>
<div id="rightFloat">
<!--bof Attributes Module -->
<?php
if ($pr_attr->fields['total'] > 0) {
?>
<?php
/**
* display the product atributes
*/
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'); ?>
<?php
}
?>
<!--eof Attributes Module --></div>
<?php
$display_qty = (($flag_show_product_info_in_cart_qty == 1 and $_SESSION['cart']->in_cart($_GET['products_id'])) ? '<p>' . PRODUCTS_ORDER_QTY_TEXT_IN_CART . $_SESSION['cart']->get_quantity($_GET['products_id']) . '</p>' : '');
if ($products_qty_box_status == 0 or $products_quantity_order_max== 1) {
// hide the quantity box and default to 1
$the_button = '<input type="hidden" name="cart_quantity" value="1" />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
} else {
// show the quantity box
$the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><br />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
}
$display_button = zen_get_buy_now_button($_GET['products_id'], $the_button);
?>
<?php if ($display_qty != '' or $display_button != '') { ?>
<div id="cartAdd">
<?php
echo $display_qty;
echo $display_button;
?>
</div>
<?php } // display qty and button ?>
<?php } // CUSTOMERS_APPROVAL == 3 ?>
<!--eof Add to Cart Box-->
<!--bof Product details list -->
<?php if ( (($flag_show_product_info_model == 1 and $products_model != '') or ($flag_show_product_info_weight == 1 and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name))) ) { ?>
<ul id="productDetailsList" class="floatingBox back">
<?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? '<li>' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n"; ?>
<?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li>' . TEXT_PRODUCT_WEIGHT . $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>' : '') . "\n"; ?>
<?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n"; ?>
<?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n"; ?>
</ul>
<br class="clearBoth" />
<?php
}
?>
<!--eof Product details list -->
<!--bof Attributes Module -->
<?php
if ($pr_attr->fields['total'] > 0) {
?>
<?php
}
?>
<!--eof Attributes Module -->
<!--bof Quantity Discounts table -->
<?php
if ($products_discount_type != 0) { ?>
<?php
/**
* display the products quantity discount
*/
require($template->get_template_dir('/tpl_modules_products_quantity_discounts.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_products_quantity_discounts.php'); ?>
<?php
}
?>
<!--eof Quantity Discounts table -->
<!--bof Prev/Next bottom position -->
<?php if (PRODUCT_INFO_PREVIOUS_NEXT == 2 or PRODUCT_INFO_PREVIOUS_NEXT == 3) { ?>
<?php
/**
* display the product previous/next helper
*/
require($template->get_template_dir('/tpl_products_next_previous.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_products_next_previous.php'); ?>
<?php } ?>
<!--eof Prev/Next bottom position -->
<!--bof Tell a Friend button -->
<?php
if ($flag_show_product_info_tell_a_friend == 1) { ?>
<div id="productTellFriendLink" class="buttonRow forward"><?php echo ($flag_show_product_info_tell_a_friend == 1 ? '<a href="' . zen_href_link(FILENAME_TELL_A_FRIEND, 'products_id=' . $_GET['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_TELLAFRIEND, BUTTON_TELLAFRIEND_ALT) . '</a>' : ''); ?></div>
<?php
}
?>
<!--eof Tell a Friend button -->
<!--bof Reviews button and count-->
<?php
if ($flag_show_product_info_reviews == 1) {
// if more than 0 reviews, then show reviews button; otherwise, show the "write review" button
if ($reviews->fields['count'] > 0 ) { ?>
<div id="productReviewLink" class="buttonRow back"><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS, zen_get_all_get_params()) . '">' . zen_image_button(BUTTON_IMAGE_REVIEWS, BUTTON_REVIEWS_ALT) . '</a>'; ?></div>
<br class="clearBoth" />
<p class="reviewCount"><?php echo ($flag_show_product_info_reviews_count == 1 ? TEXT_CURRENT_REVIEWS . ' ' . $reviews->fields['count'] : ''); ?></p>
<?php } else { ?>
<div id="productReviewLink" class="buttonRow back"><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, zen_get_all_get_params(array())) . '">' . zen_image_button(BUTTON_IMAGE_WRITE_REVIEW, BUTTON_WRITE_REVIEW_ALT) . '</a>'; ?></div>
<br class="clearBoth" />
<?php
}
}
?>
<!--eof Reviews button and count -->
<!--bof Product date added/available-->
<?php
if ($products_date_available > date('Y-m-d H:i:s')) {
if ($flag_show_product_info_date_available == 1) {
?>
<p id="productDateAvailable" class="productGeneral centeredContent"><?php echo sprintf(TEXT_DATE_AVAILABLE, zen_date_long($products_date_available)); ?></p>
<?php
}
} else {
if ($flag_show_product_info_date_added == 1) {
?>
<p id="productDateAdded" class="productGeneral centeredContent"><?php echo sprintf(TEXT_DATE_ADDED, zen_date_long($products_date_added)); ?></p>
<?php
} // $flag_show_product_info_date_added
}
?>
<!--eof Product date added/available -->
<!--bof Product URL -->
<?php
if (zen_not_null($products_url)) {
if ($flag_show_product_info_url == 1) {
?>
<p id="productInfoLink" class="productGeneral centeredContent"><?php echo sprintf(TEXT_MORE_INFORMATION, zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($products_url), 'NONSSL', true, false)); ?></p>
<?php
} // $flag_show_product_info_url
}
?>
<!--eof Product URL -->
<!--bof also purchased products module-->
<?php require($template->get_template_dir('tpl_modules_also_purchased_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_also_purchased_products.php');?>
<!--eof also purchased products module-->
<!--bof Form close-->
</form>
<!--bof Form close-->
</div>
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
highroller
Hello, thank for your help. I added the code you gave and it did move it but not by the side of the product image. Can you take a look and see if I added the code in the wrong place.
Thank you
Code:
<?php
/**
* Page Template
*
* Loaded automatically by index.php?main_page=product_info.<br />
* Displays details of a typical product
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_product_info_display.php 5369 2006-12-23 10:55:52Z drbyte $
*/
//require(DIR_WS_MODULES . '/debug_blocks/product_info_prices.php');
?>
<div class="centerColumn" id="productGeneral">
<!--bof Form start-->
<?php echo zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product'), 'post', 'enctype="multipart/form-data"') . "\n"; ?>
<!--eof Form start-->
<?php if ($messageStack->size('product_info') > 0) echo $messageStack->output('product_info'); ?>
<!--bof Category Icon -->
<?php if ($module_show_categories != 0) {?>
<?php
/**
* display the category icons
*/
require($template->get_template_dir('/tpl_modules_category_icon_display.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_icon_display.php'); ?>
<?php } ?>
<!--eof Category Icon -->
<!--bof Prev/Next top position -->
<?php if (PRODUCT_INFO_PREVIOUS_NEXT == 1 or PRODUCT_INFO_PREVIOUS_NEXT == 3) { ?>
<?php
/**
* display the product previous/next helper
*/
require($template->get_template_dir('/tpl_products_next_previous.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_products_next_previous.php'); ?>
<?php } ?>
<!--eof Prev/Next top position-->
<!--bof Main Product Image -->
<?php
if (zen_not_null($products_image)) {
?>
<?php
/**
* display the main product image
*/
require($template->get_template_dir('/tpl_modules_ajax_image_viewer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_ajax_image_viewer.php');?>
<?php
}
?>
<!--eof Main Product Image-->
<!--bof Product Name-->
<h1 id="productName" class="productGeneral"><?php echo $products_name; ?></h1>
<!--eof Product Name-->
<!--bof Product Price block -->
<h2 id="productPrices" class="productGeneral">
<?php
// base price
if ($show_onetime_charges_description == 'true') {
$one_time = '<span >' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />';
} else {
$one_time = '';
}
echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int)$_GET['products_id']);
?></h2>
<!--eof Product Price block -->
<!--bof free ship icon -->
<?php if(zen_get_product_is_always_free_shipping($products_id_current) && $flag_show_product_info_free_shipping) { ?>
<div id="freeShippingIcon"><?php echo TEXT_PRODUCT_FREE_SHIPPING_ICON; ?></div>
<?php } ?>
<!--eof free ship icon -->
<!--bof Product description -->
<?php if ($products_description != '') { ?>
<div id="productDescription" class="productGeneral biggerText"><?php echo stripslashes($products_description); ?></div>
<?php } ?>
<!--eof Product description -->
<br class="clearBoth" />
<!--bof Add to Cart Box -->
<?php
if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
// do nothing
} else {
?>
<div id="rightFloat">
<!--bof Attributes Module -->
<?php
if ($pr_attr->fields['total'] > 0) {
?>
<?php
/**
* display the product atributes
*/
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'); ?>
<?php
}
?>
<!--eof Attributes Module --></div>
<?php
$display_qty = (($flag_show_product_info_in_cart_qty == 1 and $_SESSION['cart']->in_cart($_GET['products_id'])) ? '<p>' . PRODUCTS_ORDER_QTY_TEXT_IN_CART . $_SESSION['cart']->get_quantity($_GET['products_id']) . '</p>' : '');
if ($products_qty_box_status == 0 or $products_quantity_order_max== 1) {
// hide the quantity box and default to 1
$the_button = '<input type="hidden" name="cart_quantity" value="1" />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
} else {
// show the quantity box
$the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><br />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
}
$display_button = zen_get_buy_now_button($_GET['products_id'], $the_button);
?>
<?php if ($display_qty != '' or $display_button != '') { ?>
<div id="cartAdd">
<?php
echo $display_qty;
echo $display_button;
?>
</div>
<?php } // display qty and button ?>
<?php } // CUSTOMERS_APPROVAL == 3 ?>
<!--eof Add to Cart Box-->
<!--bof Product details list -->
<?php if ( (($flag_show_product_info_model == 1 and $products_model != '') or ($flag_show_product_info_weight == 1 and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name))) ) { ?>
<ul id="productDetailsList" class="floatingBox back">
<?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? '<li>' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n"; ?>
<?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li>' . TEXT_PRODUCT_WEIGHT . $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>' : '') . "\n"; ?>
<?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n"; ?>
<?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n"; ?>
</ul>
<br class="clearBoth" />
<?php
}
?>
<!--eof Product details list -->
<!--bof Attributes Module -->
<?php
if ($pr_attr->fields['total'] > 0) {
?>
<?php
}
?>
<!--eof Attributes Module -->
<!--bof Quantity Discounts table -->
<?php
if ($products_discount_type != 0) { ?>
<?php
/**
* display the products quantity discount
*/
require($template->get_template_dir('/tpl_modules_products_quantity_discounts.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_products_quantity_discounts.php'); ?>
<?php
}
?>
<!--eof Quantity Discounts table -->
<!--bof Prev/Next bottom position -->
<?php if (PRODUCT_INFO_PREVIOUS_NEXT == 2 or PRODUCT_INFO_PREVIOUS_NEXT == 3) { ?>
<?php
/**
* display the product previous/next helper
*/
require($template->get_template_dir('/tpl_products_next_previous.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_products_next_previous.php'); ?>
<?php } ?>
<!--eof Prev/Next bottom position -->
<!--bof Tell a Friend button -->
<?php
if ($flag_show_product_info_tell_a_friend == 1) { ?>
<div id="productTellFriendLink" class="buttonRow forward"><?php echo ($flag_show_product_info_tell_a_friend == 1 ? '<a href="' . zen_href_link(FILENAME_TELL_A_FRIEND, 'products_id=' . $_GET['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_TELLAFRIEND, BUTTON_TELLAFRIEND_ALT) . '</a>' : ''); ?></div>
<?php
}
?>
<!--eof Tell a Friend button -->
<!--bof Reviews button and count-->
<?php
if ($flag_show_product_info_reviews == 1) {
// if more than 0 reviews, then show reviews button; otherwise, show the "write review" button
if ($reviews->fields['count'] > 0 ) { ?>
<div id="productReviewLink" class="buttonRow back"><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS, zen_get_all_get_params()) . '">' . zen_image_button(BUTTON_IMAGE_REVIEWS, BUTTON_REVIEWS_ALT) . '</a>'; ?></div>
<br class="clearBoth" />
<p class="reviewCount"><?php echo ($flag_show_product_info_reviews_count == 1 ? TEXT_CURRENT_REVIEWS . ' ' . $reviews->fields['count'] : ''); ?></p>
<?php } else { ?>
<div id="productReviewLink" class="buttonRow back"><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, zen_get_all_get_params(array())) . '">' . zen_image_button(BUTTON_IMAGE_WRITE_REVIEW, BUTTON_WRITE_REVIEW_ALT) . '</a>'; ?></div>
<br class="clearBoth" />
<?php
}
}
?>
<!--eof Reviews button and count -->
<!--bof Product date added/available-->
<?php
if ($products_date_available > date('Y-m-d H:i:s')) {
if ($flag_show_product_info_date_available == 1) {
?>
<p id="productDateAvailable" class="productGeneral centeredContent"><?php echo sprintf(TEXT_DATE_AVAILABLE, zen_date_long($products_date_available)); ?></p>
<?php
}
} else {
if ($flag_show_product_info_date_added == 1) {
?>
<p id="productDateAdded" class="productGeneral centeredContent"><?php echo sprintf(TEXT_DATE_ADDED, zen_date_long($products_date_added)); ?></p>
<?php
} // $flag_show_product_info_date_added
}
?>
<!--eof Product date added/available -->
<!--bof Product URL -->
<?php
if (zen_not_null($products_url)) {
if ($flag_show_product_info_url == 1) {
?>
<p id="productInfoLink" class="productGeneral centeredContent"><?php echo sprintf(TEXT_MORE_INFORMATION, zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($products_url), 'NONSSL', true, false)); ?></p>
<?php
} // $flag_show_product_info_url
}
?>
<!--eof Product URL -->
<!--bof also purchased products module-->
<?php require($template->get_template_dir('tpl_modules_also_purchased_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_also_purchased_products.php');?>
<!--eof also purchased products module-->
<!--bof Form close-->
</form>
<!--bof Form close-->
</div>
Try putting the div above this code like this:
Code:
<div id="rightFloat">
<!--bof Attributes Module -->
<?php
if ($pr_attr->fields['total'] > 0) {
?>
<?php
/**
* display the product atributes
*/
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'); ?>
<?php
}
?>
<!--eof Attributes Module --></div>
<?php
/**
* display the main product image
*/
require($template->get_template_dir('/tpl_modules_ajax_image_viewer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_ajax_image_viewer.php');?>
<?php
}
?>
<!--eof Main Product Image-->
-
Re: AJAX IMAGE Swapper support thread
I moved the code to where you specified but it made my product listing disappear. Any more ideas would be appreciated.
Thank you
-
Re: AJAX IMAGE Swapper support thread
Hey all,
First, I'd really like to thank to all of you guys who make this thread alive, and my very special thanks goes to them who helped supporting other users of this module. I TOTALLY appreciate that, this module won't have gone this far without you guys, so KUDOS to you!!! :D
Quote:
Originally Posted by
colour97
really need a hand. not working to me, trying 2 days and still cannot get any fruit.
1. i should install this AIS correctly. following your read me text to correct tpl_product_info_display.php
2. 1 product, i made 1 attribute : SIZE : S, M , L , please see my attached photo. when i go to catolog/ AIS manager, check NO attribute , i got 1 photo.
but do not know how to use this photo.
if i check YES attribute, the box showed. : "there is no photo in this attribute",
but i already added a photo to SIZE: Small attribute.
how to do next?
please help.
You must've added the images not from AIS? Click the "Setup Images" button. From now on, you'll need to add the images through AIS manager.
Good luck,
Jay
-
Re: AJAX IMAGE Swapper support thread
This is a great contribution and the hardest for me.
Some of the php masters above made it work with lightbox 1.4 in internet explorer without that stupid error "Internet explorer cannot open...." then" page not found ".
I need this mod working with lightbox in internet explorer :frusty::lamo:, so how did you guys do it?
i got installed ajax image swapper 3.1.3 + slimbox package
zen_ lightbox 1.4 updated
Please advise:wacko:
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
highroller
I moved the code to where you specified but it made my product listing disappear. Any more ideas would be appreciated.
Thank you
I'm Sorry i forgot for some reason when you put it above it makes the page disappear. Go back to post #320 and just switch it and put it below the main product image code.
That should work.
-
Re: AJAX IMAGE Swapper support thread
Thanks jaycode leave us a great addon mod I have some problem with this one.
1. Do I have to install fual_slimbox be4 install this mod?
2. I install this mod but it seem no effect on the product info page(just like normal not display as the demo site).
3. Do I have to edit something to make the addiction image display?
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
JohnsonY
Thanks jaycode leave us a great addon mod I have some problem with this one.
1. Do I have to install fual_slimbox be4 install this mod?
2. I install this mod but it seem no effect on the product info page(just like normal not display as the demo site).
3. Do I have to edit something to make the addiction image display?
If you read in the install instructions you have to add two lines of code to
includes/templates/your template/templates/tpl_product_info_display.
-
Re: AJAX IMAGE Swapper support thread
OK thanks for dscott1966 it work now but here is another problem. I did setup the image as the guide said. But when I visit the product info page it keep loading and loading the image never show up
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
JohnsonY
OK thanks for dscott1966 it work now but here is another problem. I did setup the image as the guide said. But when I visit the product info page it keep loading and loading the image never show up
Can i have the link to your page.
-
Re: AJAX IMAGE Swapper support thread
HI ! I JUST Install the ajax image swapper.
and in catalog ajax image swapper manager i press the setup images button then try to upload image ,and on the ie window left down .there show's a wrong meassage syas
Line:468
Char:5
Code:0
Error:'undefined' 为空或不是对象<= is blank or is not object in chinease
网址:http://www.airguncn.com/admin/AJAX_image_swapper.php
what's wrong??
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
e9space
HI ! I JUST Install the ajax image swapper.
and in catalog ajax image swapper manager i press the setup images button then try to upload image ,and on the ie window left down .there show's a wrong meassage syas
Line:468
Char:5
Code:0
Error:'undefined' 为空或不是对象<= is blank or is not object in chinease
网址:
http://www.airguncn.com/admin/AJAX_image_swapper.php
what's wrong??
Not understanding the question. Can you show a image of what the message is your getting. If in a different language i do not know why you would be getting that.
Can you give a little more detail?
-
Re: AJAX IMAGE Swapper support thread
hey dscott1966 I got my site working(reinstall site+ mod) thanks for the info. But there another question on it :D I am try to use the Xampp to setup a local test site for test and edit this mod but it since not working. I double check that xampp Apache HTTPD 2.2.9, MySQL 5.0.51b, PHP 5.2.6. I think this setting already meet the requirement of this mod but it since like not able to load the product after I pick the categorie. Does anyone know what to do for fix this?
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
JohnsonY
hey dscott1966 I got my site working(reinstall site+ mod) thanks for the info. But there another question on it :D I am try to use the Xampp to setup a local test site for test and edit this mod but it since not working. I double check that xampp Apache HTTPD 2.2.9, MySQL 5.0.51b, PHP 5.2.6. I think this setting already meet the requirement of this mod but it since like not able to load the product after I pick the categorie. Does anyone know what to do for fix this?
Can you send me a link? i never did like xampp had problems with it. I used this one NetServer, Reactor server, or wampserver.
The best to me is Netserver has everything.
-
Re: AJAX IMAGE Swapper support thread
wow I install the NetServer it is working now thanks again :P
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
JohnsonY
wow I install the NetServer it is working now thanks again :P
Your Welcome, anything else let me know.
-
Re: AJAX IMAGE Swapper support thread
I would like to see an example of this Addon. I've gone to: the Developers Website but don't get anything but a spinning icon. I've even tried it in I.E. If there is something that needs downloaded to view, let me know. Also, if that's the case, is there a warning to the viewing customer to do so? Help please.
Paul
:unsure:
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
pacdad
I would like to see an example of this Addon. I've gone to: the Developers
Website but don't get anything but a
spinning icon. I've even tried it in I.E. If there is something that needs downloaded to view, let me know. Also, if that's the case, is there a warning to the viewing customer to do so? Help please.
Paul
:unsure:
You can see it here:http://dealz-r-us.com/index.php?main...243ed02a370044
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
dscott1966
Thanks for letting me know, somebody's accidentally removed the .htaccess file, turned the site back into php4. It's fixed now.
You can get better demo from http://demosites.webextremecustomise..._image_swapper though. Admin access: user & pass
-
Re: AJAX IMAGE Swapper support thread
Thank you both, however not quite what I was looking for. I'm looking for a Color Swatch, kinda like the Mustang Color Selector :cool:
-
2 Attachment(s)
Re: AJAX IMAGE Swapper support thread
First, I want to thank you for the work you have put into this module. It is exactly what I was looking for, and after reading through this thread was able to easily integrate Magic Zoom with it.
The only issue I have right now is the poor quality of the jpg compression. My original files are around 530x800px. Using the Image Swapper Manager to resize them down to 200x300 results in a very small file that looks horrible on screen. The resulting file is just under 10kb. When I resize them myself using 80 quality with Irfanview the resulting file is much cleaner, and also slightly smaller. See attached images for comparison.
I will continue to use this module (by manually uploading 3 images per attribute), but I would love to see better image quality in the future.
-
Re: AJAX IMAGE Swapper support thread
Hi,
I am having a devil of a time with getting the small images that are displayed image_nav_container not to float outside the image_medium_container if i set the medium image size to smaller than 300. I have gone into styles_ajax_image_swapper.css and played around with the #image_viewer and #image_nav_container sections, including the padding-top of the image-nav_container, but nothing i do seems to have an effect on where the small images get rendered...
Anybody got any ideas?
Tim
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
ttrahan
Hi,
I am having a devil of a time with getting the small images that are displayed image_nav_container not to float outside the image_medium_container if i set the medium image size to smaller than 300. I have gone into styles_ajax_image_swapper.css and played around with the #image_viewer and #image_nav_container sections, including the padding-top of the image-nav_container, but nothing i do seems to have an effect on where the small images get rendered...
Anybody got any ideas?
Tim
Hmm, wouldn't you know, if you make a backup of a .css file, i.e. styles_ajax_image_swapper_bak.css and leave it in the same directory, it gets pushed down to the browser also and overrides any changes you make to the original! That was a fun waste of 3 hours.
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
ttrahan
Hmm, wouldn't you know, if you make a backup of a .css file, i.e. styles_ajax_image_swapper_bak.css and leave it in the same directory, it gets pushed down to the browser also and overrides any changes you make to the original! That was a fun waste of 3 hours.
Zen will automatically pick up any file with a .css extension in the css folder of your template, regardless of the name. Renaming to styles_ajax_image_swapper.css.bak should do the trick.
-
Re: AJAX IMAGE Swapper support thread
Hi all,
is there any way of showing the 'small' images of the product attributes on the 'product info' page and make them clickable.
My idea is to replace the radio-button for a specific product attribute with small-sized attribute images and when clicked, the main product image should change.
For example:
I have a 'shirt' with 2 colors - white and black.
I want to have main product image - black shirt.
I want to have 1 additional product image - white shirt.
On the product page I want to have - one medium image for the white model, and small images for both white and black models.
When I click on the black model, the medium product image should change to the appropriate image and the selected model should be selected for purchase.
Thank you in advance!
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
jaycode
The image quality doesn't seem as good as image handler. Is it just because of the images you used are poor or is that the way it is?
-
Re: AJAX IMAGE Swapper support thread
This mod seems to be broken in IE7 for me.
The demo page just shows the loading image forever, and nothing in the image selection box.
http://www.webextremecustomiser.com/...&products_id=1
Can anyone else confirm this?
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
pjb923
It seems to have problem the page shows but it is doing some funny wierd stuff were the page gets large and things over lap.
Try using firefox works good there.
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
dscott1966
It seems to have problem the page shows but it is doing some funny wierd stuff were the page gets large and things over lap.
Try using firefox works good there.
:blink::blink: Thanks for telling me, turns out it was pointing to the wrong file before, but I reuploaded again and it is fine now.
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
monkeypeach
The image quality doesn't seem as good as image handler. Is it just because of the images you used are poor or is that the way it is?
It is something to do with the script unfortunately. I'd really really really like to get this fixed, but I am hellishly busy these few weeks (more like months really...).
I promise I'll improve this, someday...
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
slck
Hi all,
is there any way of showing the 'small' images of the product attributes on the 'product info' page and make them clickable.
My idea is to replace the radio-button for a specific product attribute with small-sized attribute images and when clicked, the main product image should change.
For example:
I have a 'shirt' with 2 colors - white and black.
I want to have main product image - black shirt.
I want to have 1 additional product image - white shirt.
On the product page I want to have - one medium image for the white model, and small images for both white and black models.
When I click on the black model, the medium product image should change to the appropriate image and the selected model should be selected for purchase.
Thank you in advance!
I think that got something to do with attribute swatch? Read the Zen-Cart book it should be there somewhere.
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
pjb923
Zen will automatically pick up any file with a .css extension in the css folder of your template, regardless of the name. Renaming to styles_ajax_image_swapper.css.bak should do the trick.
yeap, any css file with styles_ as its prefix will be loaded on every page. Actually, if you're into site speed improvements, you can move everything inside syles_ajax_image_swappers.css into product_info.css so they will be loaded only on product info page.
-
2 Attachment(s)
Re: AJAX IMAGE Swapper support thread
AIS is working on my site, however I've setup the images sizes in the admin->config, yet when I use AIS to upload the images it resizes them to squares... hmm what am I doing wrong?
Attachment 4502
Attachment 4503
-
Re: AJAX IMAGE Swapper support thread
Looking through this thread the problem is with the way the resize code is calculated. Images which are portrait are resized skewed (too thin).
Jcode I'm sure you're busy, but it wouldn't take long to quickly updated the code, especially as people are donating to you (hope you enjoyed your sushi from me!)
For the solution see page 26
http://www.zen-cart.com/forum/showth...=84145&page=26
-
Re: AJAX IMAGE Swapper support thread
With the MagicZoom and AIS mod from dscott1966 I'm get errors in IE7. You can zoom the first image, however the rest don't want to zoom. Has anyone else seen this? Any ideas?
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
dsided
AIS is working on my site, however I've setup the images sizes in the admin->config, yet when I use AIS to upload the images it resizes them to squares... hmm what am I doing wrong?
It's been awhile, but I believe I also modified the code as well and the as the settings in the admin to get the proper dimensions to my images. I'm pretty sure the code was in the stylesheet for the image swapper.
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
dsided
With the MagicZoom and AIS mod from dscott1966 I'm get errors in IE7. You can zoom the first image, however the rest don't want to zoom. Has anyone else seen this? Any ideas?
I just discovered the same problem and don't have any solution yet.
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
dsided
With the MagicZoom and AIS mod from dscott1966 I'm get errors in IE7. You can zoom the first image, however the rest don't want to zoom. Has anyone else seen this? Any ideas?
What is the link to your site? So, i can have a look at it.
-
Re: AJAX IMAGE Swapper support thread
At the very end of the update_sql_installer.sql file
"ALTER TABLE products_attributes_images ADD products_id_no_attribute INT NOT NULL AFTER products_attributes_id;"
I get an error on import because there is no table "products_attributes_images"?
there is a table "products_attributes" and then inside that a column titled "attributes_iamges"...
Can you advise me in manually achieving what it is I need to do in the db.
-
Re: AJAX IMAGE Swapper support thread
Sorry, disregard the last post... figured out I was using the wrong sql file (I thought the fresh.sql was going to remove any existing attribute images etc.)
-
Re: AJAX IMAGE Swapper support thread
Hello All.
I am working on a new ecommerce website and I have a problem with the AJAX image swapper function and get it to work the way I want it, especially to work harmonously with IH2.
First of all I have tried to read pretty much every reply to this thread trying to find the answer to my question(s) and if the answer it's hidden within I apologize in advance for repeating the questions and my oversight.
1. First of all I'd like to know why I have a rectangle surrounding the image item. I have tried to look for a way to remove this box but I can't. I suspect the spacing between the image and the bottom line of the box is so other images of the product can be placed within.
Example: http://www.bcboardshop.com/index.php...&products_id=2
Which takes me to my next question:
2. I have placed an image of 8100600_wiserplaid_back.jpg within the same dir as 8100600_wiserplaid.jpg which is the main image name, but I am not seeing the AJAX image swapper recognizing this additional image and thus is not displaying it below the main image. What am I doing wrong?
3. Bonus question :) -- I obviously enjoy the way IH2 smoothes images out and while I can make IH2 handle the smoothing of images for items that do not have attributes, I can't with items that do contain attributes and which AIS handles natually. Has anyone been able to play around with both products to find out a way to get it to work harmonously?
Any help is greatly appreciated!
PS. I don't have zen lightbox installed, only slimbox, if that makes a difference.
-
Re: AJAX IMAGE Swapper support thread
Here are the solutions for my previously asked questions:
1. The box is handled by the #image_viewer entry within css/styles_ajax_image_swapper.css
2. The issue was that I was loading the additional images manually but AIS uses an internal database for additional images. The additional images need to be entered from within the AIS picture manager as additional images for that same product.
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
BikeFormula
Hi I need some hlep on this.
After installing this module, I kept getting the following error when uploading images.
Warning: imagecreate() [function.imagecreate]: Invalid image dimensions in /home2/bikeform/public_html/admin/includes/functions/extra_functions/ais_image_functions.php on line 47
Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home2/bikeform/public_htmladmin/includes/functions/extra_functions/ais_image_functions.php on line 52
I only uploaded the Large size of image, putin title, and click upload and got this error.
Thanks for help.
Hi, I am facing the same above problem. Please some one help me.
1)I just installed Ajax Image Swapper 3.1.3. Now product's page no image in a blank and bigger box.
2)In Admin --> Catalog --> Ajax Image Swapper Manager, I click 'Setup Images' button but nothing happens. It seems as there is no action taken/no page refresh etc.
3)When I try to upload an image using Ajax Image Swapper Manager window, in 'Small Image' (default image) box. but I see this error message:
Warning: imagecreate() [function.imagecreate]: Invalid image dimensions in /home2/bikeform/public_html/admin/includes/functions/extra_functions/ais_image_functions.php on line 47
Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home2/bikeform/public_htmladmin/includes/functions/extra_functions/ais_image_functions.php on line 52
Thanks in advance :smile:
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
mnaeemsattar
Hi, I am facing the same above problem. Please some one help me.
1)I just installed Ajax Image Swapper 3.1.3. Now product's page no image in a blank and bigger box.
2)In Admin --> Catalog --> Ajax Image Swapper Manager, I click 'Setup Images' button but nothing happens. It seems as there is no action taken/no page refresh etc.
3)When I try to upload an image using Ajax Image Swapper Manager window, in 'Small Image' (default image) box. but I see this error message:
Warning: imagecreate() [function.imagecreate]: Invalid image dimensions in /home2/bikeform/public_html/admin/includes/functions/extra_functions/ais_image_functions.php on line 47
Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home2/bikeform/public_htmladmin/includes/functions/extra_functions/ais_image_functions.php on line 52
Thanks in advance :smile:
Hmm, this is new, I'm not sure, maybe you uploaded wrong image files?
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
zgambitx
Hello All.
I am working on a new ecommerce website and I have a problem with the AJAX image swapper function and get it to work the way I want it, especially to work harmonously with IH2.
First of all I have tried to read pretty much every reply to this thread trying to find the answer to my question(s) and if the answer it's hidden within I apologize in advance for repeating the questions and my oversight.
1. First of all I'd like to know why I have a rectangle surrounding the image item. I have tried to look for a way to remove this box but I can't. I suspect the spacing between the image and the bottom line of the box is so other images of the product can be placed within.
Example:
http://www.bcboardshop.com/index.php...&products_id=2
Which takes me to my next question:
2. I have placed an image of 8100600_wiserplaid_back.jpg within the same dir as 8100600_wiserplaid.jpg which is the main image name, but I am not seeing the AJAX image swapper recognizing this additional image and thus is not displaying it below the main image. What am I doing wrong?
3. Bonus question :) -- I obviously enjoy the way IH2 smoothes images out and while I can make IH2 handle the smoothing of images for items that do not have attributes, I can't with items that do contain attributes and which AIS handles natually. Has anyone been able to play around with both products to find out a way to get it to work harmonously?
Any help is greatly appreciated!
PS. I don't have zen lightbox installed, only slimbox, if that makes a difference.
Hey its already working, congrats :smile:
Regarding IH2, I haven't really got time to work on this. I'd definitely will when I can.
Good luck,
Jay
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
jaycode
Hmm, this is new, I'm not sure, maybe you uploaded wrong image files?
Hi, Thanks for quick reply. What do you mean by wrong image files??? Please help ...
Please also confirm me that is it necessary to install 'fual slimbox' and/or 'zen_lightbox' with Ajax Image Swapper??? I didn't have these installed..
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
mnaeemsattar
Hi, Thanks for quick reply. What do you mean by wrong image files??? Please help ...
Please also confirm me that is it necessary to install 'fual slimbox' and/or 'zen_lightbox' with Ajax Image Swapper??? I didn't have these installed..
You don't need to have these installed since AIS has fual slimbox integrated to it.
Good luck:smile:
-
Re: AJAX IMAGE Swapper support thread
Hi @Jaycode!
Please guide me ::: i am facing problem when i press 'Setup Images' button, nothing happens. No previous images are updated with AJAX Image swapper. So when some one goes to my product page, they see nothing except a blank box, plz see:
http://www.buy92.com/colorfulmetalicbangles-p-329.html
And really thanks for such a good work :)
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
mnaeemsattar
Hi @Jaycode!
Please guide me ::: i am facing problem when i press 'Setup Images' button, nothing happens. No previous images are updated with AJAX Image swapper. So when some one goes to my product page, they see nothing except a blank box, plz see:
http://www.buy92.com/colorfulmetalicbangles-p-329.html
And really thanks for such a good work :)
I didn't see my module being installed there, have you followed the installation script correctly?
Looks like you haven't set up the images, have you tried taking a peek at AJAX Image Swapper manager?
Cheers!
-
Re: AJAX IMAGE Swapper support thread
Hi Jay,
I've been having similar problems to some of the other guys on here. I have copied all of the files to the correct locations, but when I go to create an image ( I just put my picture.jpg) in the small(default) input form. I get the following errors.
Warning: imagecreate() [function.imagecreate]: Invalid image dimensions in /home/gadget/www/www/admin/includes/functions/extra_functions/ais_image_functions.php on line 47
Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/gadget/www/www/admin/includes/functions/extra_functions/ais_image_functions.php on line 52
Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/gadget/www/www/admin/includes/functions/extra_functions/ais_image_functions.php on line 52
Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/gadget/www/www/admin/includes/functions/extra_functions/ais_image_functions.php on line 52
Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/gadget/www/www/admin/includes/functions/extra_functions/ais_image_functions.php on line 52
Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/gadget/www/www/admin/includes/functions/extra_functions/ais_image_functions.php on line 52
If you could help out it would be very much appreciated... This looks like a great tool once i can get it working. thank u.
-
Re: AJAX IMAGE Swapper support thread
Sorry Ignore my last post.... I hadn't updates the database! silly me...
I'm nearly there. However for some reason when I click on the product info page for a product. I just see an empty box with a little flash like loading symbol in it. The images never display.
Any ideas anyone????
-
Re: AJAX IMAGE Swapper support thread
Shocker, I looked at your site and wondered, how did you get those tabs at the bottom of your description, and especially, how did you get that "Additional Images" tab to work? What module did you use?
Reallly interested in this...
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
dscott1966
Can you send me a link? i never did like xampp had problems with it. I used this one NetServer, Reactor server, or wampserver.
The best to me is Netserver has everything.
So for those using XAMPP and trying to install this addon.... any suggestions?
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
spacebowie
So for those using XAMPP and trying to install this addon.... any suggestions?
I cannot begin to tell you why it does not work with Xampp, The only thing i can suggest to you is to switch your serve that you use.
Go with netserver like i told someone else to do it is a better server. With netserver you get everything including, your own ftp server and email server, mysql server, so you can test zencart installations to the fullest before you go live with it. He changed and did not have any problems after that. he could test everything. Me personally tried using Xampp and nothing ever worked right then i started using netserver and no problems. if you decide to use it, you can download it here:
http://sourceforge.net/project/showf...roup_id=128207
Sorry i can't be any help, but to suggest this. :(
Good luck to you!!!!
-
1 Attachment(s)
Re: AJAX IMAGE Swapper support thread
Hi...
sorry im still new.....
i have a question...
i can't insert the image in Admin > Catalog > Ajax Image Swaper Manager
the eror message like this...
1146 Table 'chartse_zc1.zen_products_attributes_images' doesn't exist
in:
[INSERT INTO zen_products_attributes_images (image_id, products_attributes_id, products_id_no_attribute, image_path, image_title, image_sort_order) VALUES ( NULL, '0', '2', 'images/handphone.jpg', 'handphone.jpg', 0)]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
can someone give me an answer???
-
Re: AJAX IMAGE Swapper support thread
i've got the solution....
in fresh_sql_installer
Code:
CREATE TABLE products_attributes_images (
image_id INT NOT NULL AUTO_INCREMENT,
products_attributes_id INT NOT NULL,
products_id_no_attribute INT,
image_path VARCHAR(255),
image_title VARCHAR(255),
image_sort_order INT,
PRIMARY KEY(`image_id`)
);
change the table name to zen_products_attributes_images...
thx before
-
Re: AJAX IMAGE Swapper support thread
I get the same "loading image forever icon" on my site with IE 7 and Firefox.
Was there a fix and which file need to be edited.
Quote:
Originally Posted by
pjb923
Quote:
Originally Posted by
dscott1966
It seems to have problem the page shows but it is doing some funny wierd stuff were the page gets large and things over lap.
Try using firefox works good there.
Quote:
Originally Posted by
jaycode
:blink::blink: Thanks for telling me, turns out it was pointing to the wrong file before, but I reuploaded again and it is fine now.
-
Re: AJAX IMAGE Swapper support thread
And on IE 8 too. Ok guys guess its time to update this module, cant be helped eh? Next version: full compatibility with IH2, and fixing stuff on IE and Safari.
I'll let you know after this two weeks.
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
jaycode
And on IE 8 too. Ok guys guess its time to update this module, cant be helped eh? Next version: full compatibility with IH2, and fixing stuff on IE and Safari.
I'll let you know after this two weeks.
Excellent :smile:
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
jaycode
And on IE 8 too. Ok guys guess its time to update this module, cant be helped eh? Next version: full compatibility with IH2, and fixing stuff on IE and Safari.
I'll let you know after this two weeks.
Dear Jay,remember to improve the image quality afer uploaded.
Now the quality is too low to be used. Thanks a lot.
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
john4
Dear Jay,remember to improve the image quality afer uploaded.
Now the quality is too low to be used. Thanks a lot.
No prob, will do,
dang its really, really hard to combine this with IH2. I think the best I can do for now is fish for IH2's high quality image resizing technique...
-
Re: AJAX IMAGE Swapper support thread
Crossing your own words is not a good thing to do but man, really busy like hell these days I haven't got time to update the module... tho I have mapped up what needed to be done code-wise. I'd rather not promise anything yet but I'll definitely update this module when I get some free time.
Guess time is scarce nowadays eh?...
-
1 Attachment(s)
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
jaycode
No prob, will do,
dang its really, really hard to combine this with IH2. I think the best I can do for now is fish for IH2's high quality image resizing technique...
I hope I can help out here. If a few brave souls want to help test this hopefully we'll all benefit until Jay has some free time to work on the Image Handler integration.
I am having much better luck with the file I've attached. If anyone wants to try it out for themselves simply replace the ais_image_functions.php file found in admin->inclueds->functions->extra_functions . Then go into the image swapper manager and give it a shot on a test product.
PS, the first time I tried this I simply renamed the file that was on the server and then uploaded the one I'd edited and got this message when I went into the image swapper manager:
Quote:
Fatal error: Cannot redeclare upload_resized_image() (previously declared in /admin/includes/functions/extra_functions/ais_image_functions_jay.php:14)
I simply backed up the file that was there then deleted it the replaced it with the new one and was fine.
If it doesn't work for you please create a php file with the following code and upload it to your server, then go to that page and copy and paste the results.
PHP Code:
<?php
var_dump(gd_info());
?>
For reference the version on my server is:
GD Version"]=> string(27) "bundled (2.0.34 compatible)
From what I understand about gd2, bundled is the key word for using some of their functions.
Good luck!
-
Re: AJAX IMAGE Swapper support thread
Jaycode,
I've got SimpleSEO 2.9.6 installed, & Ajax Image Swapper 1.2, and can't get images to work. Do I need to upgrade? Or is there a simple fix?
Thanks,
Chuck
-
Re: AJAX IMAGE Swapper support thread
Thanks grey! I also found some problem with the design. With what it currently is, really hard to redesign if you need to change how AIS look.
It is still an idea but hopefully in the next version AIS can be edited just by editing css or at max html files.
Jay
Quote:
Originally Posted by
greydawgjr
I hope I can help out here. If a few brave souls want to help test this hopefully we'll all benefit until Jay has some free time to work on the Image Handler integration.
I am having much better luck with the file I've attached. If anyone wants to try it out for themselves simply replace the ais_image_functions.php file found in admin->inclueds->functions->extra_functions . Then go into the image swapper manager and give it a shot on a test product.
PS, the first time I tried this I simply renamed the file that was on the server and then uploaded the one I'd edited and got this message when I went into the image swapper manager:
I simply backed up the file that was there then deleted it the replaced it with the new one and was fine.
If it doesn't work for you please create a php file with the following code and upload it to your server, then go to that page and copy and paste the results.
PHP Code:
<?php
var_dump(gd_info());
?>
For reference the version on my server is:
GD Version"]=> string(27) "bundled (2.0.34 compatible)
From what I understand about gd2, bundled is the key word for using some of their functions.
Good luck!
-
Re: AJAX IMAGE Swapper support thread
As far as I'm concerned this should still work with SEO URL modules... but maybe, the problem was when it sends ajax request to http://yoursite.com/AJAX_servers/AIS_server.php it was redirected to other page by SEO module
Quote:
Originally Posted by
chuckienorton
Jaycode,
I've got SimpleSEO 2.9.6 installed, & Ajax Image Swapper 1.2, and can't get images to work. Do I need to upgrade? Or is there a simple fix?
Thanks,
Chuck
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
jaycode
Thanks. I'll look into it now.
C
-
Re: AJAX IMAGE Swapper support thread
Hi All,
I've tested the file I posted above on two more gd2 library versions and am getting good results so I would say to go ahead and give it a shot. I'm even going to downgrade my "brave souls" comment to "mildly adventurous" :smile: . Just remember to backup the original somewhere other than the webserver in case you want to revert.
I also realized that I didn't explicitly say what that file does but it redoes the way AIS resizes/resamples the images. In other words it fixes the image quality problems that a lot of people are having issues with. I've tested it with .jpg and .png files with near perfect results and am getting excellent compression to quality compromise. (The images this file produces are the same size as the original version, but with much better quality)
-
1 Attachment(s)
Re: AJAX IMAGE Swapper support thread
Sorry for the double post, but download this file instead of the one I posted above. The file contained in this post also includes the bug fix to the portrait aspect ratios I made last summer. Either one will work if your images are landscaped.
-
Re: AJAX IMAGE Swapper support thread
Hello: I have instalated in mys web image swapper and i think is great and give to may shops look more profesional, i only have a problem and is that, take a long time to open de photos and make the zoom normaly i use firefox and take long time but in IE take more time in open and make the zoom.
Any have ideas or can help me. My web is: www.expomueble.es:yes:
Thank you very much in advance for your help.:hug:
-
Re: AJAX IMAGE Swapper support thread
Hi jmeca,
Looks like you have quite a few things loading on that page. The things that seem to be really slowing it down are your google ads and impressinsweb ads along with analytics. In fact, the files associated with AIS are loading relatively quickly.
You can speed it up by getting rid of whatever is calling sounds.js which is not present, but that probably won't be a big difference.
Quote:
Originally Posted by
jmeca
Hello: I have instalated in mys web image swapper and i think is great and give to may shops look more profesional, i only have a problem and is that, take a long time to open de photos and make the zoom normaly i use firefox and take long time but in IE take more time in open and make the zoom.
Any have ideas or can help me. My web is:
www.expomueble.es:yes:
Thank you very much in advance for your help.:hug:
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
greydawgjr
Sorry for the double post, but download this file instead of the one I posted above. The file contained in this post also includes the bug fix to the portrait aspect ratios I made last summer. Either one will work if your images are landscaped.
I do not know if anyone has told you about the ais file you have here but thanks it works great for me with no problem images look a lot better now. Thanks again:clap:
-
Re: AJAX IMAGE Swapper support thread
I am facing problem please help me out,
I have installed it on my admin , when i click on the category dropdown box i can not see any product on the second box, please help me out for this
-
Re: AJAX IMAGE Swapper support thread
Can someone please give me some insight on what is happending here.
My product listing images are coming up small H:75 W:56, i have it set for w:160 H:300. Now why is it coming the small size which would be the size for the additional images on the product info page. But when i change the size it also changes the size for the small additional images on the product info page which intern is to big.
How do i go about changing things so that the images on the product listing page is set to the right height and width without affecting the other images, meaning the small images on the product info page?
They seem to work together.:cry:
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
greydawgjr
Sorry for the double post, but download this file instead of the one I posted above. The file contained in this post also includes the bug fix to the portrait aspect ratios I made last summer. Either one will work if your images are landscaped.
It comes a fatel error when I replace the file.
Any hits to solve this problem,thx!:D
Fatal error: Cannot redeclare upload_resized_image() in /usr/ide/webs/e08050901/ROOT/admin/includes/functions/extra_functions/ais_image_functions.phpx on line 14
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
john4
It comes a fatel error when I replace the file.
Any hits to solve this problem,thx!:D
Fatal error: Cannot redeclare upload_resized_image() in /usr/ide/webs/e08050901/ROOT/admin/includes/functions/extra_functions/ais_image_functions.phpx on line 14
pls ignore this message.
But even I replace the file, the image quality is wtill too low to used.
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
dscott1966
Can someone please give me some insight on what is happending here.
My product listing images are coming up small H:75 W:56, i have it set for w:160 H:300. Now why is it coming the small size which would be the size for the additional images on the product info page. But when i change the size it also changes the size for the small additional images on the product info page which intern is to big.
How do i go about changing things so that the images on the product listing page is set to the right height and width without affecting the other images, meaning the small images on the product info page?
They seem to work together.:cry:
any link? If I remembered correctly (hey its been awhile since I worked on this!) they share the same variables so what you might want to do is to replace SMALL_IMAGE_WIDTH and SMALL_IMAGE_HEIGHT throughout the module and change them with your own variable say AIS_SMALL_IMAGE_WIDTH and AIS_SMALL_IMAGE_HEIGHT.
dont forget to set the variables by adding a file under includes/extra_configures/ with anyname and add these code:
define('ASC_SMALL_IMAGE_WIDTH', 75);
define('ASC_SMALL_IMAGE_HEIGHT', 56);
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
jaycode
any link? If I remembered correctly (hey its been awhile since I worked on this!) they share the same variables so what you might want to do is to replace SMALL_IMAGE_WIDTH and SMALL_IMAGE_HEIGHT throughout the module and change them with your own variable say AIS_SMALL_IMAGE_WIDTH and AIS_SMALL_IMAGE_HEIGHT.
dont forget to set the variables by adding a file under includes/extra_configures/ with anyname and add these code:
define('ASC_SMALL_IMAGE_WIDTH', 75);
define('ASC_SMALL_IMAGE_HEIGHT', 56);
Not understanding what you mean by changing the sizes throughout the module. Do i go through the image swapper mod, looking through every file? I really don't know what i will be looking for. I'm new to this, i can understand how to follow directions when i know what i'm looking for. Can i get a little more help (LOL).
Sorry for not knowing what you mean. Anyway here is a look see at the product listing page,
http://dealz-r-us.com/index.php?main...dex&cPath=2_24
and here is a look see at the product info page,
http://dealz-r-us.com/index.php?main...products_id=55
Once again the small images are the same size and if i change the small images on the product listing page, it also changes the ones on the product info page. Is there a simpler way of changing this. or is there a specific file that controls this. because i'm at a loss at what your telling me to do at the top. :cry:
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
john4
pls ignore this message.
But even I replace the file, the image quality is wtill too low to used.
Hi John,
Since you've tested this can you provide a little more feedback so that we can continue to tweak the quality issues? Also if you can provide the GD version your server is using that would be a big help. Also, are the images you're resizing the same aspect ratio as the image dimensions you're resizing to?
Thanks
-
3 Attachment(s)
Re: AJAX IMAGE Swapper support thread
Here's a sneak peak of the modified AIS file I posted on the previous page so that you can decide whether or not it's a worthwhile upgrade before going through the work of replacing the file.
(The original I've included has a larger file size than the forum allows for upload (it's about 104k) so the image you see here will have been resized by the upload so it won't be a quite fair comparison. I believe the resized ones will be left alone though so hopefully it'll provide some idea)
Good luck!
*edit*
The images in the attached thumbnails box are the original followed by the medium resized image. The image in the Attached Images box is the thumbnail in its full size. Admittedly this particular image doesn't scale down that far very well but a picture of a shoe or t-shirt would look much better.
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
city1227
I am facing problem please help me out,
I have installed it on my admin , when i click on the category dropdown box i can not see any product on the second box, please help me out for this
Hi City,
I'd double check all the files to make sure that they're in their proper locations. If a function like that isn't working it's almost guaranteed to be a missing file or a file in the wrong location. The first file I'd double check is Ajax_image_swapper.php which should be located directly in the admin folder, followed by the files under mootools_on_admin and move outward from there...
-
Re: AJAX IMAGE Swapper support thread
Quote:
Originally Posted by
dscott1966
Not understanding what you mean by changing the sizes throughout the module. Do i go through the image swapper mod, looking through every file? I really don't know what i will be looking for. I'm new to this, i can understand how to follow directions when i know what i'm looking for. Can i get a little more help (LOL).
Sorry for not knowing what you mean. Anyway here is a look see at the product listing page,
http://dealz-r-us.com/index.php?main...dex&cPath=2_24
and here is a look see at the product info page,
http://dealz-r-us.com/index.php?main...products_id=55
Once again the small images are the same size and if i change the small images on the product listing page, it also changes the ones on the product info page. Is there a simpler way of changing this. or is there a specific file that controls this. because i'm at a loss at what your telling me to do at the top. :cry:
Can someone give me help on this please!!!