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 32c5ff9d5..3d2d8eb1f 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 @@ -282,7 +282,9 @@ priceElement.innerHTML = this.config.variant_prices[this.simpleProduct].final_price.formated_price; - regularPriceElement.innerHTML = this.config.variant_prices[this.simpleProduct].regular_price.formated_price; + if (regularPriceElement) { + regularPriceElement.innerHTML = this.config.variant_prices[this.simpleProduct].regular_price.formated_price; + } eventBus.$emit('configurable-variant-selected-event', this.simpleProduct) } else { 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 d2757fd89..92c5b7625 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 @@ -297,7 +297,9 @@ priceElement.innerHTML = this.config.variant_prices[this.simpleProduct].final_price.formated_price; - regularPriceElement.innerHTML = this.config.variant_prices[this.simpleProduct].regular_price.formated_price; + if (regularPriceElement) { + regularPriceElement.innerHTML = this.config.variant_prices[this.simpleProduct].regular_price.formated_price; + } eventBus.$emit('configurable-variant-selected-event', this.simpleProduct) } else {