Merge pull request #6462 from bagisto/revert-6439-add-discount-precent
Revert "Enhancement #6367 done"
This commit is contained in:
commit
8ef00596f7
|
|
@ -1,18 +1,7 @@
|
|||
{!! view_render_event('bagisto.shop.products.price.before', ['product' => $product]) !!}
|
||||
|
||||
@php
|
||||
if($product->getTypeInstance()->haveSpecialPrice()){
|
||||
$specialPrice = $product->getTypeInstance()->getSpecialPrice();
|
||||
$price = $product->price;
|
||||
$Discount_Precent = "(".round(($specialPrice*100)/$price)."% off)";
|
||||
|
||||
}else{
|
||||
$Discount_Precent ='';
|
||||
}
|
||||
@endphp
|
||||
|
||||
<div class="product-price">
|
||||
{!! $product->getTypeInstance()->getPriceHtml() !!} {{ $Discount_Precent }}
|
||||
{!! $product->getTypeInstance()->getPriceHtml() !!}
|
||||
</div>
|
||||
|
||||
{!! view_render_event('bagisto.shop.products.price.after', ['product' => $product]) !!}
|
||||
{!! view_render_event('bagisto.shop.products.price.after', ['product' => $product]) !!}
|
||||
Loading…
Reference in New Issue