If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / All Other Contributions/Addons / AJAX Add to Cart [Support Thread]

AJAX Add to Cart [Support Thread]

Started by balihr on 6 Jun 2014, 1:13 PM · Views: 29,036

Results 41 to 60 of 134
5 Jul 2014, 9:02 AM
#41
destruxon avatar

destruxon

New Zenner

Join Date:
Mar 2013
Posts:
16
Plugin Contributions:
0

Post #41 by destruxon

thanks for quick reply, that will be it then as it is when im on the product listing page, problem solved :D ill leave you in peace on your break have a good one!

5 Jul 2014, 10:13 AM
#42
marco_serge avatar

marco_serge

New Zenner

Join Date:
Jun 2014
Location:
Modena, Italy
Posts:
24
Plugin Contributions:
0

Post #42 by marco_serge

Hi! I installed AJAX Add to Cart in my site and it seemed to work correctly. But then I installed Zen LightBox and now it doesn't work very well.

It seems there is a conflict between these 2 modules. Now, when i click on the purhcase button, it takes me to the default shopping cart page of Zen Cart.
The box in the upper right side of the site doesn't show up. It is shown only if I click on the Cart button in the header. I have Zen Cart 1.5.1 installed on my server, and here's the link for the site:

http://www.jollyrogerbay.it/store

Do you have any ideas how could I make this 2 modules works correctly?
Thanks!

6 Jul 2014, 11:59 PM
#43
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,819
Plugin Contributions:
24

Post #43 by balihr

Marco Serge:

But then I installed Zen LightBox and now it doesn't work very well.

It seems there is a conflict between these 2 modules.

Yup, there's a conflict, but one I believe will be very easy to resolve. Zen Lightbox uses an old version of jQuery and loads it after all AJAX Add to Cart scripts have been loaded. Try the following:
go to your "includes/templates/carlisle_fresh/jscript/ folder and simply delete jquery-1.4.4.min.js (or even better/safer rename it to xjqery-1.4.4.min.js) - that way you'll disable loading that jQuery version. Now go to your site, refresh and see if everything is working fine. There's a chance the lightbox module won't work because of a newer version of jQuery - make sure you check that as well. If it doesn't work, I'd suggest using some other plugin that uses an up-to-date jQuery version (such as Zen Magnific, although you'd need to remove loading jQuery from the class file).

Regards,
Leonard

My site - Pro ZC Help
My portfolio | My plugins

7 Jul 2014, 8:01 AM
#44
marco_serge avatar

marco_serge

New Zenner

Join Date:
Jun 2014
Location:
Modena, Italy
Posts:
24
Plugin Contributions:
0

Post #44 by marco_serge

Now it works perfectly.

You have my eternal gratitude, for the great module and the help you give me :smile:

balihr:

Yup, there's a conflict, but one I believe will be very easy to resolve. Zen Lightbox uses an old version of jQuery and loads it after all AJAX Add to Cart scripts have been loaded. Try the following:
go to your "includes/templates/carlisle_fresh/jscript/ folder and simply delete jquery-1.4.4.min.js (or even better/safer rename it to xjqery-1.4.4.min.js) - that way you'll disable loading that jQuery version. Now go to your site, refresh and see if everything is working fine. There's a chance the lightbox module won't work because of a newer version of jQuery - make sure you check that as well. If it doesn't work, I'd suggest using some other plugin that uses an up-to-date jQuery version (such as Zen Magnific, although you'd need to remove loading jQuery from the class file).

Regards,
Leonard

7 Jul 2014, 12:43 PM
#45
marco_serge avatar

marco_serge

New Zenner

Join Date:
Jun 2014
Location:
Modena, Italy
Posts:
24
Plugin Contributions:
0

Post #45 by marco_serge

Is there a way to make the module work also in homepage or in the various product listing page? Like all products or newly added or specials... these are the only pages this modules can't work on (i think it's by default)

7 Jul 2014, 8:54 PM
#46
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,819
Plugin Contributions:
24

Post #46 by balihr

Marco Serge:

Is there a way to make the module work also in homepage or in the various product listing page? Like all products or newly added or specials... these are the only pages this modules can't work on (i think it's by default)

No, this module works ONLY on the product_info page. It is possible to have it working on other pages as well, but it's not a part of this module and could be achieved with some custom coding (a.k.a. cash in my bank :smile:). I was considering to release an update where it will work on all listing pages, but simply don't have the time to do it right now... Maybe sometime in the future...

My site - Pro ZC Help
My portfolio | My plugins

16 Jul 2014, 12:57 AM
#47
jsarwar avatar

jsarwar

Zen Follower

Join Date:
Jul 2012
Posts:
347
Plugin Contributions:
0

Post #47 by jsarwar

I have installed all files of this module and turned it on from admin but when click on "Add to cart" it still going to shopping cart page instead of showing pop up.

I turned off Jquery and even deleted but still same thing. I have Fast and Easy Checkout and CSS JS loader installed. Can you please assist how I can have this module work on my site?

Thank you.

26 Jul 2014, 7:54 PM
#48
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,819
Plugin Contributions:
24

Post #48 by balihr

Just got back from vacation - sorry for the delayed response.

Don't get me wrong, but did you read the documentation that comes with the module, primarily the Support section? There's some text in bold... :wink2:

I'll need a URL to your site to see what's going on - otherwise all I can do is take out my magic crystal ball and see what's happening... :)

My site - Pro ZC Help
My portfolio | My plugins

2 Aug 2014, 3:53 PM
#49
solo_400 avatar

solo_400

Zen Follower

Join Date:
Aug 2009
Posts:
369
Plugin Contributions:
0

Post #49 by solo_400

How can I make it compatible with css/js loader module ?

2 Aug 2014, 4:28 PM
#50
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,819
Plugin Contributions:
24

Post #50 by balihr

I just tested on a clean install using jQuery 1.11.0 and it works just fine. I believe something else is causing your problems...

My site - Pro ZC Help
My portfolio | My plugins

2 Aug 2014, 4:31 PM
#51
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,819
Plugin Contributions:
24

Post #51 by balihr

solo_400:

How can I make it compatible with css/js loader module ?

Please try not to edit your posts and remove the question entirely. That makes it confusing for other people who might read this thread because my previous reply makes no sense at the moment...

As for css/js loader - it IS compatible, but you'll need to create your autoloader file for the product_info page. This is beyond the scope of support for this thread, sorry.

My site - Pro ZC Help
My portfolio | My plugins

2 Aug 2014, 7:22 PM
#52
solo_400 avatar

solo_400

Zen Follower

Join Date:
Aug 2009
Posts:
369
Plugin Contributions:
0

Post #52 by solo_400

Ok, sorry for the inconvenient. Thank you for your answer regarding jquery 1.11.0 compatibility.

2 Aug 2014, 8:58 PM
#53
solo_400 avatar

solo_400

Zen Follower

Join Date:
Aug 2009
Posts:
369
Plugin Contributions:
0

Post #53 by solo_400

I'm testing it on my test environment. At the moment I have 2 problems:

  1. Confilct with wishlist link ( I have wishlist module )
<?php // start wishlist link if (UN_MODULE_WISHLISTS_ENABLED) { echo '<a id="wishlistLink" href="javascript:void(0);">' . UN_TEXT_ADD_WISHLIST . '</a>'; } // end wishlist link ?>

When I press on "Add to Wishlist" it takes "add to cart" button event and the slider shows up.

  1. On goole Chrome the same problem as before, and more when slider shows up it's say "Your cart is empty"
4 Aug 2014, 1:52 PM
#54
solo_400 avatar

solo_400

Zen Follower

Join Date:
Aug 2009
Posts:
369
Plugin Contributions:
0

Post #54 by solo_400

Do someone have the uninstall script of this module? If I decide to put it in live store I would like to know how to uninstall it quick .

thx

5 Aug 2014, 5:40 PM
#55
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,819
Plugin Contributions:
24

Post #55 by balihr

solo_400:

  1. Confilct with wishlist link ( I have wishlist module )
<?php // start wishlist link if (UN_MODULE_WISHLISTS_ENABLED) { echo '<a id="wishlistLink" href="javascript:void(0);">' . UN_TEXT_ADD_WISHLIST . '</a>'; } // end wishlist link ?>

When I press on "Add to Wishlist" it takes "add to cart" button event and the slider shows up.
Yeah, that would be expected... The script takes over the entire form submission so you will either have to move the wishlist code out of the cart form (and create another form for wishlist) OR you'll have to write some of your own code to differentiate which button was pressed.

  1. On goole Chrome the same problem as before, and more when slider shows up it's say "Your cart is empty"
    Would need a link to your site, but could easily be caused by wishlist...

My site - Pro ZC Help
My portfolio | My plugins

5 Aug 2014, 5:45 PM
#56
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,819
Plugin Contributions:
24

Post #56 by balihr

solo_400:

Do someone have the uninstall script of this module? If I decide to put it in live store I would like to know how to uninstall it quick .

thx

I believe you're referring to SQL uninstall - if so, take a look at the install-v1.5.x.sql that comes with the module - the first 6 lines can be used to uninstall. There also one more line (line 17) to remove it from admin pages.

Files and changes need to be reverted manually.

My site - Pro ZC Help
My portfolio | My plugins

6 Aug 2014, 12:27 PM
#57
solo_400 avatar

solo_400

Zen Follower

Join Date:
Aug 2009
Posts:
369
Plugin Contributions:
0

Post #57 by solo_400

thank you

8 Sep 2014, 1:58 AM
#58
tom97zr2 avatar

tom97zr2

New Zenner

Join Date:
Jan 2014
Location:
United States
Posts:
28
Plugin Contributions:
0

Post #58 by tom97zr2

Thank you for this! I'm have a little problem though. It looks like everything works, but when I click view cart or one of my shopping cart links, the shopping cart page will sometimes say your shopping cart is empty, like the item isn't saved in the cart. Sometimes the product is in the cart on the shopping cart page, and sometimes it's not. Everything looks good and working until you go to the actual shopping cart page and sometimes it's empty. I do not have this problem on my test site, everytime I go to the shopping cart page the items are there on my test site. I've verified the files are the same between my test site and live site. No other conflicts with js files. cardiozonetreadmills com and cardiozonetreadmills com/test/

Any idea? Thanks!

8 Sep 2014, 11:41 PM
#59
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,819
Plugin Contributions:
24

Post #59 by balihr

Sorry for the late reply...

If it's sporadic, then it's VERY hard to debug it... I've just checked using Firefox and Chrome - works fine every time. I'm not sure, but this might be caused by Ceon's URI Mapping module which you seem to be using - try adding an exclusion in your htaccess file to make sure AJAX requests to the modules files in root are not overwritten... It's just an idea, I'm not sure if it will help... You could also try disabling URI Mappings (and remove htaccess file) to see if that's causing it...

Regards,
Leonard

My site - Pro ZC Help
My portfolio | My plugins

13 Oct 2014, 5:07 PM
#60
caru avatar

caru

New Zenner

Join Date:
Sep 2011
Posts:
5
Plugin Contributions:
0

Post #60 by caru

Hi I wrote via PM before could you please answer this question for me.
On your set of files there is a patch named 1.5 sql
It don’t seem to be for 1.3.9

Do I have to patch my database for 1.3.9 version? if so what is the file patch? is that same file as the 1.5 version?