|
|
|
|
|
|
|
|
changeProductAdd: function(event) { |
|
|
changeProductAdd: function(event) { |
|
|
var idProduct = event.currentTarget.value ; |
|
|
var idProduct = event.currentTarget.value ; |
|
|
this.productAddId = idProduct ; |
|
|
this.productAddId = idProduct ; |
|
|
this.productAddPrice = parseFloat(this.productsArray[idProduct].price_with_tax).toFixed(2) ; |
|
|
|
|
|
|
|
|
this.productAddPrice = parseFloat(this.productsArray[idProduct].price).toFixed(2) ; |
|
|
this.productAddQuantity = this.getStepProductAdd() ; |
|
|
this.productAddQuantity = this.getStepProductAdd() ; |
|
|
}, |
|
|
}, |
|
|
changeQuantityProductAdd: function(quantity) { |
|
|
changeQuantityProductAdd: function(quantity) { |