Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Ajax Buy Now


azer

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?

Link to comment
Share on other sites

  • 4 weeks later...
  • 3 months later...
  • 2 weeks later...
  • 9 months later...

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

Link to comment
Share on other sites

  • 1 month later...

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).

Link to comment
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();

Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...