diff --git a/CHANGELOG for v1.x.x.md b/CHANGELOG for v1.x.x.md index 2ee680429..6922aca54 100644 --- a/CHANGELOG for v1.x.x.md +++ b/CHANGELOG for v1.x.x.md @@ -78,6 +78,10 @@ * #2500 [fixed] - Database reset fails. +* #2519 [fixed] - filter price attribute throwing an exception. + +* #2526 [fixed] - Velocity backend route is not accessible in arabic locale. + ## **v1.0.0-BETA1(5th of February 2020)** - *Release* * [feature] Updated to laravel version 6. diff --git a/packages/Webkul/Velocity/src/Resources/views/shop/products/view/bundle-options.blade.php b/packages/Webkul/Velocity/src/Resources/views/shop/products/view/bundle-options.blade.php index 4dc76b617..1dfefed08 100644 --- a/packages/Webkul/Velocity/src/Resources/views/shop/products/view/bundle-options.blade.php +++ b/packages/Webkul/Velocity/src/Resources/views/shop/products/view/bundle-options.blade.php @@ -202,9 +202,15 @@ computed: { product_qty: function() { - return this.option.products[this.selected_product] - ? this.option.products[this.selected_product].qty - : 0; + var self = this; + self.qty = 0; + + self.option.products.forEach(function(product, key){ + if (self.selected_product == product.id) + self.qty = self.option.products[key].qty; + }); + + return self.qty; } },