Removed Tax Evaluation In Grouped Price

This commit is contained in:
devansh bawari 2021-05-24 14:36:23 +05:30
parent cf9d21f030
commit 720a6eea73
1 changed files with 2 additions and 3 deletions

View File

@ -2,7 +2,6 @@
namespace Webkul\Product\Type;
use Webkul\Tax\Helpers\Tax;
use Webkul\Product\Models\ProductFlat;
use Webkul\Product\Repositories\ProductRepository;
use Webkul\Attribute\Repositories\AttributeRepository;
@ -131,7 +130,7 @@ class Grouped extends AbstractType
$minPrices = [];
foreach ($this->product->grouped_products as $groupOptionProduct) {
$minPrices[] = $groupOptionProduct->associated_product->getTypeInstance()->getMinimalPrice();
$minPrices[] = $this->evaluatePrice($groupOptionProduct->associated_product->getTypeInstance()->getMinimalPrice());
}
if (empty($minPrices)) {
@ -189,7 +188,7 @@ class Grouped extends AbstractType
$html .= '<span class="price-label">' . trans('shop::app.products.starting-at') . '</span>'
. ' '
. '<span class="final-price">' . core()->currency($this->evaluatePrice($this->getMinimalPrice())) . '</span>';
. '<span class="final-price">' . core()->currency($this->getMinimalPrice()) . '</span>';
return $html;
}