Forums / All Other Contributions/Addons / AJAX IMAGE Swapper support thread

AJAX IMAGE Swapper support thread

Views: 172,806

Results 21 to 40 of 786
26 Jan 2008, 6:42 AM
#21
jaycode avatar

jaycode

Zen Follower

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

AJAX IMAGE Swapper support thread

greenhat:

hmm.. yes :)
im going to try to remove the attributes dependency from the code.. shouldnt be too hard. any suggestions?

thx

Great! Thanks! Lets see, you shouldn't need to change the javascript for that, so its ok. I am going to switch the development to mootools instead of scriptaculous so I will need the javascript to stay intact.

Good luck with that

The greatest pleasure in life is doing what people say you cannot do.

Check on www.WebExtremeCustomiser.com for my modules (free contribution):
AJAX Image Swapper
AJAX Banner Swapper
Fixed Navigation

26 Jan 2008, 6:44 AM
#22
jaycode avatar

jaycode

Zen Follower

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

Re: AJAX IMAGE Swapper support thread

jaycode:

Great! Thanks! Lets see, you shouldn't need to change the javascript for that, so its ok. I am going to switch the development to mootools instead of scriptaculous so I will need the javascript to stay intact.

Good luck with that

OR you can edit the javascript as long you provide enough commentation on your changes.

Please use //[bof / eof] - [changes explanation] - [module name] - [author name] to comment the changes you made. Put up your email address at the top might be a good idea too so people can ask if they don't get the changes (although chances are really slim)

The greatest pleasure in life is doing what people say you cannot do.

Check on www.WebExtremeCustomiser.com for my modules (free contribution):
AJAX Image Swapper
AJAX Banner Swapper
Fixed Navigation

27 Jan 2008, 3:49 AM
#23
dealbyethan_com avatar

dealbyethan_com

Totally Zenned

Join Date:
Dec 2005
Location:
Perth, Western Australia, Australia
Posts:
782
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

**The Team Behind DealByEthan.com | **Curating unique finds for a discerning community. Committed to a seamless and inspiring shopping experience. *Connect with us: *https://linktr.ee/dealbyethan

6 Feb 2008, 7:42 AM
#24
printjuce avatar

printjuce

New Zenner

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

Re: AJAX IMAGE Swapper support thread

This looks like a great mod,. But is there a way to change the next following attribute instead of the image?
For example in my case,
if my first attribute consist of quantities lets say (1000 business cards,2,500 business cards and 5,000 business cards) so depending on the quantity they choose the next attribute should have a bigger price.

hope you could understand my example..:dontgetit lol if so is there a way?

6 Feb 2008, 1:41 PM
#25
adapt2eco avatar

adapt2eco

New Zenner

Join Date:
Feb 2008
Posts:
1
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Hi, I have tired to view my configuration/AJAX Image Swapper and there is no information in the Title/Value/Action fields. Do you know why this may be occuring?

I also throught that I might not have installed the .sql file correctly and as a result of reading some of the past posts I have reattempted to install via tools/install sql patches ... and now have 3x blank AJAX Image Swapper sellections in the configuration menu (within Admin console)

I would greatly appreciate anybody's help in a) removing the 2 unwated menu options and b) populating the Title/Value/Action fields.

Thanks, Shaun.

7 Feb 2008, 8:45 AM
#26
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,849
Plugin Contributions:
18

Re: AJAX IMAGE Swapper support thread

If your host uses cpanel and phpMyAdmin, you can go to the configuration_group table and delete the extras there.

Click on browse for the configuration_group table and scroll to the very last listings. You'll find Ajax Image Swapper listed in the last three. Delete the two that have the higher configuration_group_id. Should be somewhere around 31 to 33 if you have no other mods installed.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

12 Feb 2008, 3:15 PM
#27
shocker avatar

shocker

Zen Follower

Join Date:
Jul 2007
Location:
Jakarta
Posts:
346
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

I've installed the mod, but I only get the AJAX Image Swapper menu item under Configuration. There is no AJAX Image Swapper Manager unter Catalog.:dontgetit

I looked a the sql_installer.sql. there is not statement to add the AJAX Image Swapper Manager. See below:

DROP TABLE products_attributes_images;

CREATE TABLE products_attributes_images (
    image_id INT NOT NULL AUTO_INCREMENT,
    products_attributes_id INT NOT NULL,
    image_path VARCHAR(255),
    image_title VARCHAR(255),
    image_sort_order INT,
    PRIMARY KEY(`image_id`)
);

INSERT INTO configuration_group
(configuration_group_id, configuration_group_title, configuration_group_description, sort_order, visible)
VALUES (NULL, 'AJAX Image Swapper', 'Config options for AJAX Image Swapper', '1', '1');

UPDATE configuration_group SET sort_order = last_insert_id() WHERE configuration_group_id = last_insert_id();

SELECT @last_id :=last_insert_id() FROM configuration_group;

INSERT INTO configuration 
(configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added)
VALUES 
('', 'Small Image Height', 'IMAGE_VIEWER_SMALL_IMAGE_HEIGHT','75','The height of small images in AJAX Image Swapper, shown as thumbnails. Default 75.', @last_id, 1, now()),
('', 'Small Image Width', 'IMAGE_VIEWER_SMALL_IMAGE_WIDTH','75','The height of small images in AJAX Image Swapper, shown as thumbnails. Default 75.', @last_id, 5, now()),
('', 'Medium Image Height', 'IMAGE_VIEWER_MEDIUM_IMAGE_HEIGHT','300','The height of medium images in AJAX Image Swapper. Default 300.', @last_id, 10, now()),
('', 'Medium Image Width', 'IMAGE_VIEWER_MEDIUM_IMAGE_WIDTH','300','The width of medium images in AJAX Image Swapper. Default 300.', @last_id, 15, now()),
('', 'Number of Images Shown', 'IMAGE_VIEWER_IMAGES_NUM','3','Number of images shown in AJAX Image Swapper', @last_id, 20, now());

Is there something wrong with my downloaded mod?

12 Feb 2008, 3:38 PM
#28
jojo6292 avatar

jojo6292

New Zenner

Join Date:
Jan 2008
Posts:
1
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Hi jaycode, I'm trying to install the AJAX Image Swapper. Everything seems to be installed okay but when I go to the Catalog > AJAX Image Swapper Manager, the Product name doesn't load up after I select the category. I can't figure out why!

I read your previous post that said

if you have this module installed, but it is not working - if you go to admin & select a category, the name doesn't show up - please check the following:

  1. Have you set up your image attributes?
  2. Do you use PHP 5.1 or higher version?
  3. Have you shaved today? (kidding)

but I've already made a product in the category and set an option name and option value for the product, so I don't think #1 is the reason.

Would PHP 5.1 affect the loading of the Catalog > AJAX Image Swapper Manager in the admin part? Or is it some javascript thing that isn't working?

Appreciate your help.

13 Feb 2008, 2:56 AM
#29
shocker avatar

shocker

Zen Follower

Join Date:
Jul 2007
Location:
Jakarta
Posts:
346
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

I really hope someone can help me. I think this mod is great, and it will really help my site. But after installation there is no AJAX Image Swapper Manager under Catalog.

The SQL patch doesn't seem correct.:huh:

13 Feb 2008, 7:57 AM
#30
jaycode avatar

jaycode

Zen Follower

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

Re: AJAX IMAGE Swapper support thread

Hi all, sorry for being "off" for quite awhile from the forum. I am having a holiday at my home country, and the internet is pretty damn slow here in indonesia.

jojo6292:

Would PHP 5.1 affect the loading of the Catalog > AJAX Image Swapper Manager in the admin part? Or is it some javascript thing that isn't working?

Appreciate your help.

Yes, php 5.1 does affect that function. The reason is I was using DOM functions that are only available in PHP 5 and above. That, and encouraging you to upgrade your php version to make it compatible with Zen-Cart 1.4 later on.

shocker:

I really hope someone can help me. I think this mod is great, and it will really help my site. But after installation there is no AJAX Image Swapper Manager under Catalog.

The SQL patch doesn't seem correct.:huh:

You need to add your prefix to the configuration_group table in sql_installer.sql file at this line:

SELECT @last_id :=last_insert_id() FROM zen_configuration_group;

Sorry that the installation file didn't mention that. I added that in the readme file for version 2.0.2

The greatest pleasure in life is doing what people say you cannot do.

Check on www.WebExtremeCustomiser.com for my modules (free contribution):
AJAX Image Swapper
AJAX Banner Swapper
Fixed Navigation

13 Feb 2008, 8:26 AM
#31
shocker avatar

shocker

Zen Follower

Join Date:
Jul 2007
Location:
Jakarta
Posts:
346
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

I figured out that the prefix had to be added. Many mods don't mention this. The SQL patch ran succesffully. I have the AJAX Image Swapper under Config. But that's it.

SQL statements don't add anything fro the AJAX Image Swapper Manager. Did I miss something?

BTW the folder with the JS libraries are under my website's root dir not my Zen Cart. Is this correct?

I'm in Indonesia also. What a coincidence?

thanks for your help.

14 Feb 2008, 11:32 AM
#32
jaycode avatar

jaycode

Zen Follower

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

Re: AJAX IMAGE Swapper support thread

shocker:

I figured out that the prefix had to be added. Many mods don't mention this. The SQL patch ran succesffully. I have the AJAX Image Swapper under Config. But that's it.

SQL statements don't add anything fro the AJAX Image Swapper Manager. Did I miss something?

BTW the folder with the JS libraries are under my website's root dir not my Zen Cart. Is this correct?

The JS files are normally to be put under includes/modules/pages/product_info, except you know what you are doing.

There is also a possibility that you have installed other modules disturbing this module's JS files. Look at admin/includes/javascript/ are there any other items than AJAX_image_swapper.js and several default files?

shocker:

I'm in Indonesia also. What a coincidence?

thanks for your help.

Whoa! What a coincidence! lol

The greatest pleasure in life is doing what people say you cannot do.

Check on www.WebExtremeCustomiser.com for my modules (free contribution):
AJAX Image Swapper
AJAX Banner Swapper
Fixed Navigation

14 Feb 2008, 12:21 PM
#33
shocker avatar

shocker

Zen Follower

Join Date:
Jul 2007
Location:
Jakarta
Posts:
346
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

The JS files are normally to be put under includes/modules/pages/product_info, except you know what you are doing.

There is also a possibility that you have installed other modules disturbing this module's JS files. Look at admin/includes/javascript/ are there any other items than AJAX_image_swapper.js and several default files?

Ok I've moved the JS into the includes/modules/pages/product_info

my admin/includes/javascript/ only has the calendarcode.js and dependent files.

The thing that puzzles me is that the SQL doesn 't create any AJAX Image Swapper Manager. What does that mean?

15 Feb 2008, 11:51 AM
#34
shocker avatar

shocker

Zen Follower

Join Date:
Jul 2007
Location:
Jakarta
Posts:
346
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

I'm still having some problems with the mod.

please see

http://nahidfashions.com/test_boutique/index.php?main_page=product_info&cPath=1&products_id=13

As you can see the image never loads.

I have my photos in the standard locations:

images/
images/medium/
images/large/

I still have not AJAX Image Swapper Manager under Catalog

15 Feb 2008, 5:33 PM
#35
shocker avatar

shocker

Zen Follower

Join Date:
Jul 2007
Location:
Jakarta
Posts:
346
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

I have not configuration tool under Admin > Catalog.

The sql statements doesn't add this

DROP TABLE zen_products_attributes_images;

CREATE TABLE zen_products_attributes_images (
	image_id INT NOT NULL AUTO_INCREMENT,
	products_attributes_id INT NOT NULL,
	image_path VARCHAR(255),
	image_title VARCHAR(255),
	image_sort_order INT,
	PRIMARY KEY(`image_id`)
);

INSERT INTO zen_configuration_group
(configuration_group_id, configuration_group_title, configuration_group_description, sort_order, visible)
VALUES (NULL, 'AJAX Image Swapper', 'Config options for AJAX Image Swapper', '1', '1');

UPDATE zen_configuration_group SET sort_order = last_insert_id() WHERE configuration_group_id = last_insert_id();

SELECT @last_id :=last_insert_id() FROM zen_configuration_group;

INSERT INTO zen_configuration 
(configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added)
VALUES 
('', 'Small Image Height', 'IMAGE_VIEWER_SMALL_IMAGE_HEIGHT','75','The height of small images in AJAX Image Swapper, shown as thumbnails. Default 75.', @last_id, 1, now()),
('', 'Small Image Width', 'IMAGE_VIEWER_SMALL_IMAGE_WIDTH','75','The height of small images in AJAX Image Swapper, shown as thumbnails. Default 75.', @last_id, 5, now()),
('', 'Medium Image Height', 'IMAGE_VIEWER_MEDIUM_IMAGE_HEIGHT','300','The height of medium images in AJAX Image Swapper. Default 300.', @last_id, 10, now()),
('', 'Medium Image Width', 'IMAGE_VIEWER_MEDIUM_IMAGE_WIDTH','300','The width of medium images in AJAX Image Swapper. Default 300.', @last_id, 15, now()),
('', 'Number of Images Shown', 'IMAGE_VIEWER_IMAGES_NUM','3','Number of images shown in AJAX Image Swapper', @last_id, 20, now());

Please somebody, anybody. HELP! :frusty::cry:

see: http://nahidfashions.com/test_boutique/index.php?main_page=product_info&cPath=1&products_id=8

16 Feb 2008, 10:33 PM
#36
scrat avatar

scrat

Zen Follower

Join Date:
Dec 2005
Posts:
451
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Does anyone have a working example ?
Many thanks Andrew

16 Feb 2008, 11:05 PM
#37
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,849
Plugin Contributions:
18

Re: AJAX IMAGE Swapper support thread

'tis working on one of our developing sites BUT does not share well with lightbox (using the fual slimbox). Workaround is to add the default image twice and let the customer use the swapper AND click on the larger images at the bottom of the product description to activate lightbox.

Working on getting the image call in Swapper to work with slimbox. Otherwise, loaded fine and works well.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

19 Feb 2008, 8:22 PM
#38
chuckienorton avatar

chuckienorton

New Zenner

Join Date:
Dec 2007
Posts:
54
Plugin Contributions:
0
29 Feb 2008, 9:28 PM
#39
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,849
Plugin Contributions:
18

Re: AJAX IMAGE Swapper support thread

dbltoe:

'tis working on one of our developing sites BUT does not share well with lightbox (using the fual slimbox). Workaround is to add the default image twice and let the customer use the swapper AND click on the larger images at the bottom of the product description to activate lightbox.

Working on getting the image call in Swapper to work with slimbox. Otherwise, loaded fine and works well.
:eek:
CORRECTION!
AJAX has a bad script call in line 71 of the tpl_modules_ajax_image_swapper_atttr.php file using <script> versus <script type="text/javascript">
HOWEVER....
IE7 will sporadically fail and tell the customer that the site cannot be opened because it has resurrected an old bug that makes it fail when a script call occurs inside the body.

My recommendation to all is to unload till this can be fixed. Too many folks out there have been browbeaten into loading IE7.:cry:

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

5 Mar 2008, 8:03 PM
#40
jgarrotef avatar

jgarrotef

New Zenner

Join Date:
Jan 2008
Posts:
11
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Hi All

Is there any way to hide the attributes section, i understand is needed but could be hide?

Thanks for this great mod