Post by Roymj » Sat Aug 11, 2012 3:57 pm

Hi,

Ive added featured product list in the homepage. My client wanted the product options also listed in the homepage and ive done that. But now the add to cart button doesnt work. Can anyone tell me what i should be doing to enable this add to cart in homepage featured page.

I am editing the featured.tpl.

Code: Select all

$('#button-cart').bind('click', function() {
	$.ajax({
		url: 'index.php?route=checkout/cart/add',
		type: 'post',
		data: $('.homepageprodattr input[type=\'text\'], .homepageprodattr input[type=\'hidden\'],.homepageprodattr select'),
		dataType: 'json',
The data is not defined it says in the error console.

http://itzmeroymj.wordpress.com/


Newbie

Posts

Joined
Mon Apr 11, 2011 7:56 pm
Who is online

Users browsing this forum: No registered users and 160 guests