Jump to content
Sign in to follow this  
azer

Ajax Buy Now

Recommended Posts

I use this and its working in Firefox and IE, but now its showing erro in IE, in the bottom of IE.

The erro the like the following:

 

Details about the error on the website

Message: An unknown runtime error

Line: 274

Character: 25

Code: 0

URI: http://www.mysite/ajax/javascript/ajax_sc.js

 

I need help please.

 

did you upload the newest version of ajax_sc.js?

Share this post


Link to post
Share on other sites

Hello,

 

thank you for great script and the update. But when I upload the new ajax_sc.js file all my jquery scripts stop working (they disappear). Can someone suggest how I could fix this?

 

thank you in advance

Share this post


Link to post
Share on other sites

hi guys,

i realy need your help to improve my site.... i am using Ajax Buy Now addons.. that is realy great. but need some changes in this cart design

 

 

i need like.

 

qty | item name Remove

---------------------------------------------------

1 | item name1 x

--------------------------------------------------

2 | item name 2 x

 

 

where x is a delete button...

i am able to show all the 3 fields qyt, item name, price, but only i have problem with remove button

I want add this button on ajax buy now order cart to remove the individual items...

 

 

please help me.. thanks in advance

post-313524-0-07617400-1343981587_thumb.jpg

Share this post


Link to post
Share on other sites

After the script stopped working on the product list page (index.php), while still working on the product page (product_info.php), I tried the fix on the Ajax buy now contribution site - uploaded new ajax_sc.js file, but it broke majority of my jquery scripts.

So I compared the old and new ajax_sc.js file, ignored the bulk of the new code at the start and performed only smaller changes:

 

replace (around line 249)

   if (s.setAttribute) s.setAttribute('src', href); else s.src = href;

 

with

 

s.type = "text/javascript";
			//if (s.setAttribute) s.setAttribute('src', href); else s.src = href;

			$.get(
				href,
				function(data) {
					s.innerHTML = data;
				}
			);

 

replace (around line 416)

reqAddCart.caching = false;
reqAddCart.open('GET', link, true);
reqAddCart.send(null);

 

with

 

reqAddCart.caching = false;
reqAddCart.open('GET', link, true);
reqAddCart.send();

 

Now it works for me, together with my jquery scripts. Tested in Safari (Mac), IE (Win), Chrome (Win&Mac) and Firefox (Win&Mac).

Share this post


Link to post
Share on other sites

ops there was a mistake in my previous post - the first line should be removed from the script (or commented out):

 

replace (around line 416)

reqAddCart.caching = false;
 reqAddCart.open('GET', link, true);
 reqAddCart.send(null);

 

with

 

//reqAddCart.caching = false;
 reqAddCart.open('GET', link, true);
 reqAddCart.send();

Share this post


Link to post
Share on other sites

I'm running osc 2.3.1 and I have everything working, except for the cart update process. my theme just shows total items in the cart. I need to have this functionality. any ideas?

Share this post


Link to post
Share on other sites

hi friends please help me . i think my sybsys.php is not correct could you please help me guys because its printing the html code not actual design view in ajax_shopping_cart.php

 

please help me.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×