diff --git a/core/lib/Thelia/Form/CartAdd.php b/core/lib/Thelia/Form/CartAdd.php
index 53496c513..59d13765d 100755
--- a/core/lib/Thelia/Form/CartAdd.php
+++ b/core/lib/Thelia/Form/CartAdd.php
@@ -99,8 +99,8 @@ class CartAdd extends BaseForm
"for" => "quantity"
)
))
- ->add("append", "hidden")
- ->add("newness", "hidden")
+ ->add("append", "integer")
+ ->add("newness", "integer")
;
}
diff --git a/templates/default/assets/js/script.js b/templates/default/assets/js/script.js
index c78fb315d..dd55f4cbb 100644
--- a/templates/default/assets/js/script.js
+++ b/templates/default/assets/js/script.js
@@ -291,7 +291,7 @@
$.ajax({type:"POST", data: $(this).serialize(), url:url_action,
success: function(data){
- console.log($(data).html());
+
$cartContainer.html($(data).html());
$.ajax({url:"ajax/addCartMessage",
diff --git a/templates/default/includes/mini-cart.html b/templates/default/includes/mini-cart.html
index 6c558233b..739302620 100644
--- a/templates/default/includes/mini-cart.html
+++ b/templates/default/includes/mini-cart.html
@@ -60,7 +60,7 @@
{/ifloop}
{elseloop rel="cartloop"}
-
+
{intl l="Cart"} 0
diff --git a/templates/default/product.html b/templates/default/product.html
index ab413c236..64e84438a 100644
--- a/templates/default/product.html
+++ b/templates/default/product.html
@@ -145,15 +145,7 @@
{if $form_error}{$form_error_message}
{/if}
- {form_field form=$form field='product_sale_elements_id'}
- {if $default_product_sale_elements }
-
- {else}
- {loop name="productSaleElements_promo" type="product_sale_elements" product="{$ID}" limit="1"}
-
- {/loop}
- {/if}
- {/form_field}
+
{form_field form=$form field="product"}
{/form_field}
@@ -163,13 +155,15 @@
-
+ {/form_field}
{/ifloop}