From 55f8fd6cc075ac8e45f42884f96c3ada17287dbe Mon Sep 17 00:00:00 2001 From: rahul shukla Date: Fri, 5 Feb 2021 15:25:07 +0530 Subject: [PATCH] Issue #4558 fixed --- .../views/products/view/configurable-options.blade.php | 4 +++- .../views/shop/products/view/configurable-options.blade.php | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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 {