diff --git a/packages/Webkul/Shop/src/Resources/views/products/view/configurable-options.blade.php b/packages/Webkul/Shop/src/Resources/views/products/view/configurable-options.blade.php index 2eed78664..32c5ff9d5 100755 --- a/packages/Webkul/Shop/src/Resources/views/products/view/configurable-options.blade.php +++ b/packages/Webkul/Shop/src/Resources/views/products/view/configurable-options.blade.php @@ -279,14 +279,14 @@ if (this.childAttributes.length == selectedOptionCount) { priceLabelElement.style.display = 'none'; - regularPriceElement.style.display = 'none'; priceElement.innerHTML = this.config.variant_prices[this.simpleProduct].final_price.formated_price; + regularPriceElement.innerHTML = this.config.variant_prices[this.simpleProduct].regular_price.formated_price; + eventBus.$emit('configurable-variant-selected-event', this.simpleProduct) } else { priceLabelElement.style.display = 'inline-block'; - regularPriceElement.style.display = 'inline-block'; priceElement.innerHTML = this.config.regular_price.formated_price; diff --git a/packages/Webkul/Velocity/src/Resources/views/shop/products/view/configurable-options.blade.php b/packages/Webkul/Velocity/src/Resources/views/shop/products/view/configurable-options.blade.php index 8a2168818..d2757fd89 100644 --- a/packages/Webkul/Velocity/src/Resources/views/shop/products/view/configurable-options.blade.php +++ b/packages/Webkul/Velocity/src/Resources/views/shop/products/view/configurable-options.blade.php @@ -294,14 +294,14 @@ if (this.childAttributes.length == selectedOptionCount) { priceLabelElement.style.display = 'none'; - regularPriceElement.style.display = 'none'; priceElement.innerHTML = this.config.variant_prices[this.simpleProduct].final_price.formated_price; + regularPriceElement.innerHTML = this.config.variant_prices[this.simpleProduct].regular_price.formated_price; + eventBus.$emit('configurable-variant-selected-event', this.simpleProduct) } else { priceLabelElement.style.display = 'inline-block'; - regularPriceElement.style.display = 'inline-block'; priceElement.innerHTML = this.config.regular_price.formated_price;