Fixes according to chnages

This commit is contained in:
rahul shukla 2021-01-29 16:58:35 +05:30
parent 10f45d9fa8
commit 73e4deebaf
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;