Fixed: Remove Night Label From Service Unit Price

This commit is contained in:
amit sharma
2026-10-01 15:01:56 +05:30
parent d8cf510fe5
commit db1a2aa84e
4 changed files with 1 additions and 45 deletions

View File

@@ -106,13 +106,6 @@
{$cartCurrency->sign}
</span>
<input class="service_cart_price_input" id="service_cart_price_{$selectedRoomServiceProduct['id']}_{$product['id_product']}" type="text" value="{$product.price_tax_exc}" name="service_price[{$product['id_product']|escape:'html':'UTF-8'}]"{if isset($can_edit) && !$can_edit} readonly{/if}/>
{if Product::getServicePriceBillableDays(
$product['price_calculation_method'],
$selectedRoomServiceProduct['date_from'],
$selectedRoomServiceProduct['date_to']
) > 1}
<span class="input-group-addon">{l s='/ night'}</span>
{/if}
</div>
{/if}
</td>

View File

@@ -98,13 +98,6 @@
<div class="input-group">
<span class="input-group-addon">{$currencySign}</span>
<input type="text" class="form-control unit_price" value="{Tools::ps_round($service['unit_price_tax_excl'], 2)}" data-id-product="{$service['id_product']}" name="service_price[{$service['id_service_product_order_detail']}]">
{if Product::getServicePriceBillableDays(
$service.price_calculation_method,
$additionalServices['date_from'],
$additionalServices['date_to']
) > 1}
<span class="input-group-addon">{l s='/ night'}</span>
{/if}
</div>
</td>
<td>{displayPrice price=$service['total_price_tax_excl']|escape:'html':'UTF-8' currency=$orderCurrency}</td>
@@ -184,13 +177,6 @@
<div class="input-group">
<span class="input-group-addon">{$currencySign}</span>
<input type="text" class="form-control unit_price" name="service_price[{$product['id_product']|escape:'html':'UTF-8'}]" value="{$product['price_tax_exc']}" data-id-product="{$product.id_product}">
{if Product::getServicePriceBillableDays(
$product['price_calculation_method'],
$additionalServices['date_from'],
$additionalServices['date_to']
) > 1}
<span class="input-group-addon">{l s='/ night'}</span>
{/if}
</div>
</td>
</tr>
@@ -362,13 +348,6 @@
</td>
<td>
{displayPrice price=$service['unit_price_tax_excl'] currency=$orderCurrency}
{if Product::getServicePriceBillableDays(
$service['price_calculation_method'],
$additionalServices['date_from'],
$additionalServices['date_to']
) > 1}
{l s='/ night'}
{/if}
</td>
<td>
{displayPrice price=$service['total_price_tax_excl'] currency=$orderCurrency}

View File

@@ -94,16 +94,7 @@
</div>
<div class="col-xs-4">
{if ($product.show_price && !isset($restricted_country_mode)) || isset($groups)}
<span class="pull-right">{if !$priceDisplay}{convertPrice price=$product.price_tax_incl}{else}{convertPrice price=$product.price_tax_exc}{/if}
{if Product::getServicePriceBillableDays(
$product.price_calculation_method,
$product.date_from|default:$date_from|default:'',
$product.date_to|default:$date_to|default:''
) > 1}
<span class="price-label">{l s='/Night'}</span>
{/if}
</span>
<span class="pull-right">{if !$priceDisplay}{convertPrice price=$product.price_tax_incl}{else}{convertPrice price=$product.price_tax_exc}{/if}</span>
{/if}
</div>
</div>

View File

@@ -66,13 +66,6 @@
<div class="service-product-price">
{block name='service_product_price'}
{if !$priceDisplay}{convertPrice price=$service_product.price_tax_incl}{else}{convertPrice price=$service_product.price_tax_exc}{/if}
{if Product::getServicePriceBillableDays(
$service_product.price_calculation_method,
$service_product.date_from|default:$date_from|default:'',
$service_product.date_to|default:$date_to|default:''
) > 1}
<span class="price-label">{l s='/Night'}</span>
{/if}
{/block}
{if $service_product.allow_multiple_quantity && $service_product.available_for_order && $service_product.max_quantity > 0}
<div class="service-max-quantity-info">