Add AJAX on "Add to Cart" buttons

This commit is contained in:
badsuricate
2013-10-23 15:33:47 +02:00
parent 5e62da9d29
commit 77959afefa
5 changed files with 88 additions and 3 deletions

View File

@@ -134,7 +134,7 @@
</div>
{form name="thelia.cart.add" }
<form id="form-product-details" action="{url path="/cart/add" }" method="post" role="form">
<form id="form-product-details" action="{url path="/cart/add" }" method="post" role="form" class="form-product">
{form_hidden_fields form=$form}
<input type="hidden" name="view" value="product">
<input type="hidden" name="product_id" value="{$ID}">
@@ -238,4 +238,6 @@
</div>
</div><!-- /.container -->
{/block}