Zen Cart Logo
Forums / All Other Contributions/Addons / AJAX IMAGE Swapper support thread

AJAX IMAGE Swapper support thread

Views: 172,483

Results 461 to 480 of 786
13 Mar 2009, 3:11 PM
#461
cocteau avatar

cocteau

New Zenner

Join Date:
Feb 2009
Posts:
15
Plugin Contributions:
0

AJAX IMAGE Swapper support thread

Thanks for Jay and the others in this thread. :clap:
All your comments help me pass through tons of problems and finally get the mod run.
I am a total newbie on site building and know zero about html css php sql things..... (thanks for ZC, I learn a bit more now!)

After over 20 times 1.38a fresh install and reinstall on 6 different public host. I finally get the AJAX mod run.
On this stage I just need ONE function by AJAX is, when I change an attribute, a related image replace the main image.
Here is my success test site:
http://cocteau.xtreemhost.com/index.php?main_page=product_info&cPath=68&products_id=193

Then I made a full back from this server and database and hv a formal transfer to my live server. AJAX refuse to work again:frusty:

I use the Firefox Web Developer plugin try to view what's wrong. I got 2 error when load the page. (thanks for this great plugin too it really help me a lot a lot a lot...) :clap:

When I try to access the admin>AIS manager (V3.14), I get the well-know "please select a category first" problem. Error Console show this error:
(elements not find)
/admin/AJAX servers/AJAX image swapper server.php?action=loadProducts&category id=68&id=1236952311532

When I try to load my test page on the live server, another well-known "Spinning Pie" on there.
http://paper-tee.com/online/index.php?main_page=product_info&cPath=68&products_id=193
Console show this error:
(elements not find)
/admin/AJAX servers/AJAX image swapper server.php?action=loadImages&products id=193&options id=1&options values id=29&id=1236952381618

I am quite sure this was caused by my server spec. or wrong settings. And AJAX is quite a server sensitive mod maybe.
Please see the brief of my Server info:

Server OS: Linux 2.6.18-92.1.18.el5
Database: MySQL 5.0.45
HTTP Server: Apache/2.2.3 (CentOS)
PHP Version: 5.1.6 (Zend: 2.1.0)
PHP Memory Limit: 16M
PHP Safe Mode: Off
PHP File Uploads: On

Any suggestions or direct helping may pull me out of this two week long nightmare...

PS. and sorry for my poor English also :laugh:

14 Mar 2009, 7:21 AM
#462
jaycode avatar

jaycode

Zen Follower

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

Re: AJAX IMAGE Swapper support thread

haredo:

Jay,
Looks like you got a little competition. :smile:

http://www.zen-cart.com/forum/showthread.php?t=122102

heh :smile: and yes there is always room for better coding, as you mentioned on that thread...

14 Mar 2009, 7:24 AM
#463
jaycode avatar

jaycode

Zen Follower

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

Re: AJAX IMAGE Swapper support thread

pjb923:

Thanks for looking Jay. I think the IE problem is related to my computer at work because it seems to be working on other machines.

But the images are out of order. The image that shows up in the main image container when the page is first loaded should be the 2nd image. They are named properly and don't seem to respond to changes in the sort order.

Any ideas?

No prob, email me your site details to j a y - at - webe xtre mecu stom iser.com I can probably take a look.

14 Mar 2009, 7:28 AM
#464
jaycode avatar

jaycode

Zen Follower

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

Re: AJAX IMAGE Swapper support thread

cocteau:

Thanks for Jay and the others in this thread. :clap:
All your comments help me pass through tons of problems and finally get the mod run.
I am a total newbie on site building and know zero about html css php sql things..... (thanks for ZC, I learn a bit more now!)

After over 20 times 1.38a fresh install and reinstall on 6 different public host. I finally get the AJAX mod run.
On this stage I just need ONE function by AJAX is, when I change an attribute, a related image replace the main image.
Here is my success test site:
http://cocteau.xtreemhost.com/index.php?main_page=product_info&cPath=68&products_id=193

Then I made a full back from this server and database and hv a formal transfer to my live server. AJAX refuse to work again:frusty:

I use the Firefox Web Developer plugin try to view what's wrong. I got 2 error when load the page. (thanks for this great plugin too it really help me a lot a lot a lot...) :clap:

When I try to access the admin>AIS manager (V3.14), I get the well-know "please select a category first" problem. Error Console show this error:
(elements not find)
/admin/AJAX servers/AJAX image swapper server.php?action=loadProducts&category id=68&id=1236952311532

When I try to load my test page on the live server, another well-known "Spinning Pie" on there.
http://paper-tee.com/online/index.php?main_page=product_info&cPath=68&products_id=193
Console show this error:
(elements not find)
/admin/AJAX servers/AJAX image swapper server.php?action=loadImages&products id=193&options id=1&options values id=29&id=1236952381618

I am quite sure this was caused by my server spec. or wrong settings. And AJAX is quite a server sensitive mod maybe.
Please see the brief of my Server info:

Server OS: Linux 2.6.18-92.1.18.el5
Database: MySQL 5.0.45
HTTP Server: Apache/2.2.3 (CentOS)
PHP Version: 5.1.6 (Zend: 2.1.0)
PHP Memory Limit: 16M
PHP Safe Mode: Off
PHP File Uploads: On

Any suggestions or direct helping may pull me out of this two week long nightmare...

PS. and sorry for my poor English also :laugh:

Thank you for your comments, but I have to humbly add that this module is still far away from perfection. Hopefully I can find time through the weeks to improve this module further...

looks like the file templates/YOUR_TEMPLATE/tpl_product_info_page.php hasn't been edited.

14 Mar 2009, 12:46 PM
#465
cocteau avatar

cocteau

New Zenner

Join Date:
Feb 2009
Posts:
15
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

jaycode:

looks like the file templates/YOUR_TEMPLATE/tpl_product_info_page.php hasn't been edited.

Thanks for your quick reply Jay.
Yes I did edit those 2 lines of the tpl_product_info_page.php. But because I hv to keep on build my site so I roll back the file to original at yesterday night. (Sorry about that) :blush:

I just built another test site on the same live server same database, just for you to view the problem.
This test page show the same message by the Error Console. Both the Product info page and the AIS manager admin page hv the same old problem.
http://paper-tee.com/online_test/index.php?main_page=product_info&cPath=65&products_id=180

Thank you very much for the kindly follow up. :hug:

14 Mar 2009, 3:30 PM
#466
jaka21 avatar

jaka21

New Zenner

Join Date:
Mar 2009
Posts:
8
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Hi all,

I installed the ajax mod to my zen cart. It's amazing how it works.
But now I've got 3 questions:
1.Before I already installed Zen Lightbox and it worked perferctly.
But now, the Zen Lightbox doesn't work anymore.
Do you know how I can fix this?

  1. I used the swapper for every attribute. But what if my attribute has no special picture, is it possible, that he automatically uses the standard ones?

  2. Normally he should show these arrows, when you have more than 3 pics, but these arrows don't appear!
    Do you know how I can fix this?

Thanks for your answers!
Jan

14 Mar 2009, 3:50 PM
#467
cocteau avatar

cocteau

New Zenner

Join Date:
Feb 2009
Posts:
15
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

jaka21:

I've got 3 questions:
I know little about AJAX image swapper. But I spent over 2 weeks try to install this mod well, I read alot info here so I hope may help others.

  1. You may try to upload the "Zen Lightbox patch" which is in the Documents_and_extra_files folder. (but honestly I hv no luck to let Zen Lightbox work again by this patch. Fual Slimbox is working fine)

  2. You are better to add attribute images use the admin>catalog>AJAX image swapper manager. (or try to use the "setup image" function inside the manager)

  3. Because you are now using the Fual Slimbox which is a AJAX image swapper built-in lightbox. It's function is not exactly same as Zen Lightbox. You may visit the Fual Slimbox supportting thread to know more.

Hope this can help! :wink:

14 Mar 2009, 4:04 PM
#468
jaka21 avatar

jaka21

New Zenner

Join Date:
Mar 2009
Posts:
8
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

cocteau:

I know little about AJAX image swapper. But I spent over 2 weeks try to install this mod well, I read alot info here so I hope may help others
[...]
3. Because you are now using the Fual Slimbox which is a AJAX image swapper built-in lightbox. It's function is not exactly same as Zen Lightbox. You may visit the Fual Slimbox supportting thread to know more.

Hope this can help! :wink:

Thank you for your help. I deactivated the Zen Lightbox and it works!!!

Question number 3.
I meant these arrows for the additional images. Wenn you have more than 3 images it should show an arrow to scroll to the next ones, but this doesn't word!
Do you know the fix?

14 Mar 2009, 4:22 PM
#469
jaka21 avatar

jaka21

New Zenner

Join Date:
Mar 2009
Posts:
8
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Sorry,

here the question again with an image where it works.

Mine is the jewellery one in the post above.
What you can see:
I have 4 Images and i want to have that 3 images appear and then I need this green arrow to go to the next one. but this green arraw doesn't appar.
(in the original image, it does.)
Does anybody know, how I can fix this?

14 Mar 2009, 4:42 PM
#470
cocteau avatar

cocteau

New Zenner

Join Date:
Feb 2009
Posts:
15
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Sorry for the misunderstanding. :P

I never hv more then 3 images for a single product.
(The truth is, I hv no luck to let this mod run well on my live server, so what can I help is very less....):no:

However, the arrow stuff you mentioned maybe set at the admin>configuration>AJAX Image Swapper> (last 2 options)

19 Mar 2009, 7:16 PM
#471
korem avatar

korem

New Zenner

Join Date:
Mar 2009
Posts:
5
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Jay This is a great app. Im kind of a novice but know enough to be dangerous. my question thought is Can i display the Image title In the Image viewer Portion Of the Window. My Reason is i would like to add addition info to the description on the change of the attributes to describe what they are changing it to. im looking to sell candles and the fragrance change i would like a short blurb on what the title of the fragrance is. i noticed that when i click on the image and the slim box pops i get the info i want but i can follow where it is pulling it from to modify the code to add that info.

20 Mar 2009, 10:22 PM
#472
datvtran avatar

datvtran

New Zenner

Join Date:
Mar 2009
Posts:
20
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Hi everyone,

Jay great apps. I was wondering how I can remove the main product image with out having problem. I have tried to remove the tpl_modules_main_product_image.php but that would cause my product info page not to load. So the question is how can i remove it without having problem.

Thank you,

Dat

21 Mar 2009, 1:02 AM
#473
datvtran avatar

datvtran

New Zenner

Join Date:
Mar 2009
Posts:
20
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Hi,

Actually I have figure it out.

:clap:

25 Mar 2009, 5:50 AM
#474
muzz avatar

muzz

Totally Zenned

Join Date:
Mar 2009
Location:
Australia
Posts:
604
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Hello,

I was wondering if it is possible to change the #image_viewer height sizing?

I had tried adding a height value to #image_viewer but it doesn't do anything.

I have assumed that you edit: styles_AJAX_image_swapper.css

#image_viewer {
width: 300px;
border: 1px solid #215086;
margin:5px;
padding:5px;
}

If I change the width it edit's border no problem. Where is it getting it's height value from? Can I change this?

I don't want to just remove the border. I have slightly off square image and don't like having all that blank space below.

Thanks for any input.

25 Mar 2009, 7:39 AM
#475
muzz avatar

muzz

Totally Zenned

Join Date:
Mar 2009
Location:
Australia
Posts:
604
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Soz.. could no longer edit post after 7 mins without admin permission.

In regards to my question above thanks I think I have sorted it out
.
I have found:

<div id="image_viewer" style="height: <?php echo (IMAGE_VIEWER_MEDIUM_IMAGE_HEIGHT + IMAGE_VIEWER_SMALL_IMAGE_HEIGHT - 20)?>px">

I can see that I can just edit the +20 to - 20 or whatever.

I assume measured in pixels?

I do have another question.

In IE when you hover the mouse over product image it doesn't show handover it. This javascript issue with ie ? No fix?

Thanks Great app!

1 Apr 2009, 7:08 PM
#477
mw4kids avatar

mw4kids

Zen Follower

Join Date:
Oct 2008
Posts:
403
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Hi,

wondering if someone can help me out. can't seem to get my Ajax Image Manager to install properly. I understand you have to add your databases prefix to the sql_installer file. I don't have one, so I've added "" as directed and still no success.

So I would like to uninstall the program, add a prefix to my database if I can and then reinstall.

The problem is that I am having problems uninstalling the program. I've removed all the files from my root directory and the file added to the my custom template but can't seem to do the uninstall with the fual slimbox.

Not sure how to do this: instructions states to run the uninstallation from the sql_installer.sql file but which coding am I selecting and where do I run it?

Is it this 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;

Thanks for your help!!

1 Apr 2009, 10:06 PM
#478
mw4kids avatar

mw4kids

Zen Follower

Join Date:
Oct 2008
Posts:
403
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

I just dropped the configuration_group from my phpAdmin....seemed to work in uninstalling the Fual Slimbox

2 Apr 2009, 5:29 AM
#479
muzz avatar

muzz

Totally Zenned

Join Date:
Mar 2009
Location:
Australia
Posts:
604
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Thought it might be worth mentioning a couple things I came accross in case others are pulling thier hair out.

  1. When using Ajax image swapper manager:

The sort order box doesn't work when using option selectors.

If you have options for example for a product. Say blue, red and green.

Which ever color you want to load first when someone vists that product will need to be selected in the standard attributes section.

catalog > Attributes controller

Select your attribute on the product you wish to edit and click display.

Once you see your option selectors click on edit beside the attribute you want to load first when that product loads. Ie blue

In the edit section on the blue option click on: Default Attribute
to be Marked Selected.

  1. Don't use the same images for products. You will need to have a single image for every product even if they are the same. 9You may get a way with it to a certain point but ends up buggy)

  2. Don't use additional .'s in any naming of images as this causes problems with the display sizing in Zen Cart.

Over all an awsome module.

Cheers.

8 Apr 2009, 5:42 AM
#480
muzz avatar

muzz

Totally Zenned

Join Date:
Mar 2009
Location:
Australia
Posts:
604
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Muzz:

Thought it might be worth mentioning a couple things I came accross in case others are pulling thier hair out.

  1. When using Ajax image swapper manager:

The sort order box doesn't work when using option selectors.

If you have options for example for a product. Say blue, red and green.

Which ever color you want to load first when someone vists that product will need to be selected in the standard attributes section.

catalog > Attributes controller

Select your attribute on the product you wish to edit and click display.

Once you see your option selectors click on edit beside the attribute you want to load first when that product loads. Ie blue

In the edit section on the blue option click on: Default Attribute
to be Marked Selected.

Fix:

Edit the following file:

SHOP_DIRECTORY/AJAX_servers/AJAX_image_swapper_server.php
and find this line (line 22):

AND products_id_no_attribute = '" . $products_id . "'";

replace it with:

AND products_id_no_attribute = '" . $products_id . "' ORDER BY
image_sort_order";