diff --git a/core/lib/Thelia/Model/CartItem.php b/core/lib/Thelia/Model/CartItem.php index 25a4f44aa..427e7e735 100755 --- a/core/lib/Thelia/Model/CartItem.php +++ b/core/lib/Thelia/Model/CartItem.php @@ -60,7 +60,14 @@ class CartItem extends BaseCartItem } } - $this->setQuantity($value); + $this->addQuantity($value); + + return $this; + } + + public function addQuantity($quantity) + { + $this->setQuantity($this->getQuantity() + $quantity); return $this; } diff --git a/templates/default/product.html b/templates/default/product.html index b7b203bc9..38cea5c6b 100644 --- a/templates/default/product.html +++ b/templates/default/product.html @@ -138,6 +138,10 @@ {form_hidden_fields form=$form} + {form_field form=$form field="append"} + + {/form_field} + {if $form_error}
{$form_error_message}
{/if}