51 lines
2.7 KiB
Smarty
51 lines
2.7 KiB
Smarty
{*
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Apache License, Version 2.0
|
|
* that is bundled with this package in the file LICENSE.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* @author presta.studio
|
|
* @copyright Copyright (c) 2023 presta.studio
|
|
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
|
|
*
|
|
*}
|
|
|
|
{if $OmnibuseufreeProductDiscount == true}
|
|
<div class="presta-studio-price-history">
|
|
<p class="presta-studio-price-history-text">
|
|
{if $OmnibuseufreeInfoVersion == 2}
|
|
{if $OmnibuseufreeProductPriceMin != null}
|
|
{l s='Lowest price in %d days before discount: ' sprintf=[$OmnibuseufreeNumberOfDays] mod='omnibuseufree'}<span class="presta-studio-price-history-price">{$OmnibuseufreeProductPriceMin}</span>
|
|
{else}
|
|
{* when history is empty *}
|
|
{l s='Lowest price in %d days: ' sprintf=[$OmnibuseufreeNumberOfDays] mod='omnibuseufree'}<span class="presta-studio-price-history-price">{$OmnibuseufreeProductPriceFallback|default:$OmnibuseufreeProductPriceCurrent}</span>
|
|
{/if}
|
|
{else}
|
|
{l s='Lowest price in %d days: ' sprintf=[$OmnibuseufreeNumberOfDays] mod='omnibuseufree'}<span class="presta-studio-price-history-price">{$OmnibuseufreeProductPriceMin}</span>
|
|
{/if}
|
|
</p>
|
|
</div>
|
|
{/if}
|
|
|
|
{if isset($OmnibuseufreeDebugEnabled) && $OmnibuseufreeDebugEnabled && isset($OmnibuseufreeDebugData)}
|
|
<div class="presta-studio-price-history" style="margin-top:6px;">
|
|
<p class="presta-studio-price-history-text" style="font-size:12px; line-height:1.35;">
|
|
<strong>OMNIBUS DEBUG</strong><br>
|
|
marker: {$OmnibuseufreeDebugData.marker}<br>
|
|
product_id: {$OmnibuseufreeDebugData.product_id}, attr_id: {$OmnibuseufreeDebugData.product_attribute_id}<br>
|
|
currency: {$OmnibuseufreeDebugData.currency_iso} ({$OmnibuseufreeDebugData.currency_id}), precision: {$OmnibuseufreeDebugData.price_display_precision}<br>
|
|
precision_override: {$OmnibuseufreeDebugData.display_precision_override}<br>
|
|
has_discount: {$OmnibuseufreeDebugData.has_discount}<br>
|
|
param price: {$OmnibuseufreeDebugData.param_price}<br>
|
|
param price_amount: {$OmnibuseufreeDebugData.param_price_amount}<br>
|
|
param regular_price: {$OmnibuseufreeDebugData.param_regular_price}<br>
|
|
computed fallback: {$OmnibuseufreeDebugData.computed_fallback}<br>
|
|
computed minimal: {$OmnibuseufreeDebugData.computed_minimal}<br>
|
|
forced_fallback_no_pre_discount_history: {$OmnibuseufreeDebugData.forced_fallback_no_pre_discount_history}
|
|
</p>
|
|
</div>
|
|
{/if}
|