Page 1 of 1

Adding Options in featured product list

Posted: Sat Aug 11, 2012 3:57 pm
by Roymj
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.