Post by esquissewei » Thu Apr 12, 2012 4:03 am

Hi,

Before explaining my problem here is my website: www.seance-photo.com

In the products that have some options, when i add these to the cart it doesn't update. When i reload the page the cart is updated with the added product. This issue can upset the customers who can think that my website doesn't work. The products without options to choose don't have that issue, so i guess it's a problem with the options, but i don't know what.

Does anyone have the same issue?

Thanks

Newbie

Posts

Joined
Fri Apr 06, 2012 8:12 am

User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by glennjamo » Mon Apr 30, 2012 7:40 pm

Hi there

Please see my web site: http://abc-web.org/doggielicious/index. ... ommon/home

When I add a product it displays in the cart at the top of the page. But if you go and click on the basket, it displays nothing. It is only updated when the page is refreshed. Does anyone have any ideas?

Thanks

Newbie

Posts

Joined
Fri Apr 13, 2012 7:40 pm

Post by MarketInSG » Mon Apr 30, 2012 8:56 pm

In your common.js file, (you named it as common2.js), you have this:

Code: Select all

/* Ajax Cart */
	$('#cart > .heading a').bind('click', function() {
		$('#cart').addClass('active');
		
		$.ajax({
			url: 'index.php?route=checkout/cart/update',
			dataType: 'json',
			success: function(json) {
				if (json['output']) {
					$('#cart .content').html(json['output']);
				}
			}
		});			
		
		$('#cart').bind('mouseleave', function() {
			$(this).removeClass('active');
		});
	});
which is wrong. Look at my website's source code for the common.js file. You will see what's wrong.


User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by glennjamo » Mon Apr 30, 2012 9:08 pm

hi

thanks for that. sorry i don't know where this file is located. I have the original code for OC so I will just overwrite when I know where it is.

thanks

glenn

Newbie

Posts

Joined
Fri Apr 13, 2012 7:40 pm

User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by glennjamo » Mon Apr 30, 2012 10:28 pm

brilliant!

thanks a lot, youve saved my bacon.

glenn

Newbie

Posts

Joined
Fri Apr 13, 2012 7:40 pm

Post by plugeplay » Fri Nov 30, 2012 5:00 pm

Hi i have the same problem, but i didn't find the solution. My common2.js has good code. I tried to explane my problem in an other thread.

Please help
:drunk:

Newbie

Posts

Joined
Sun Nov 25, 2012 2:17 am
Who is online

Users browsing this forum: No registered users and 2 guests