first commit

This commit is contained in:
2025-03-12 17:06:23 +01:00
commit 2241f7131f
13185 changed files with 1692479 additions and 0 deletions

View File

@@ -0,0 +1,99 @@
<div id="product_accessories">
{foreach key=row item=product from=$results}
<div class="item">
{if ($show_image)==1}<div class="image roundies">{$product.photo}</div>{/if}
{if ($show_name)==1}<div class="name">{$product.name}</div>{/if}
{if $show_price==1 && $product.check_price!=1 && $product.points_only!=1 }
{if $price_view=='net_gross'}
<div class="double_price price">{$product.price_net} <br /><span>({$product.price}</span>)</div>
{elseif $price_view=='only_gross'}
<div class="price"><span>{$product.price}</span></div>
{elseif $price_view=='only_net'}
<div class="price"><span>{$product.price_net}</span></div>
{elseif $price_view=='gross_net'}
<div class="double_price price">{$product.price} <br /><span>({$product.price_net}</span>)</div>
{/if}
{else}
<div class="price"></div>
{/if}
<div class="discount-old_price">
{if $show_discount==1 && $product.discount!=0 && $product.check_price!=1 && $product.points_only!=1}
<div class="discount"><span>{$product.discount} %</span></div>
{elseif ($show_old_price==1 && $product.check_price!=1)}
{if $product.check_old_price==1}
<div class="old_price price">
{if ($price_view=='net_gross' || $price_view=='only_net')}
<span>{$product.old_price_net}</span>
{else}
<span>{$product.old_price}</span>
{/if}
</div>
{/if}
{/if}
</div>
<div class="minor_price basic_price">
{if $product.basic_price}
<i>{$product.basic_price.quantity}<br />({$product.basic_price.brutto} {__ text="za"} {$product.basic_price.for_quantity})</i>
{/if}
</div>
{if $points_system_is_active==1 && $show_points==1}
{if $display_type=='earn_value' && $product.points_only!=1}
<div class="major_price price">{if $product.points_earn > 0}{__ text="Otrzymasz"}: <span style="color:green;">{$product.points_earn} {$points_shortcut}</span>{/if}</div>
<div class="minor_price price">{if $product.points_value > 0}(<span style="color:#ED1B24;">{$product.points_value} {$points_shortcut}</span>){/if}</div>
{elseif $display_type=='only_value' || $product.points_only==1}
<div class="price">{if $product.points_value > 0}<span style="color:#ED1B24;">{$product.points_value} {$points_shortcut}</span>{/if}</div>
<div class="price"></div>
{elseif $display_type=='only_earn' && $product.points_only!=1}
<div class="price">{if $product.points_earn > 0}{__ text="Otrzymasz"}: <span style="color:green;">{$product.points_earn} {$points_shortcut}</span>{/if}</div>
<div class="price"></div>
{elseif $display_type=='value_earn' && $product.points_only!=1}
<div class="major_price price">{if $product.points_value > 0}<span style="color:#ED1B24;">{$product.points_value} {$points_shortcut}</span>{/if}</div>
<div class="minor_price price">{if $product.points_earn > 0}({__ text="Otrzymasz"}: <span style="color:green;">{$product.points_earn} {$points_shortcut}</span>){/if}</div>
{elseif $display_type=='value_earn_alternative' && $product.points_only!=1}
<div class="major_price price">{if $product.points_value > 0}<span style="color:#ED1B24;">{$product.points_value} {$points_shortcut}</span>{/if}{if $product.points_value > 0 && $product.points_earn > 0} / {/if}{if $product.points_earn > 0}<span style="color:green;">{$product.points_earn} {$points_shortcut}</span>{/if}</div>
<div class="price"></div>
{elseif $display_type=='earn_value_alternative' && $product.points_only!=1}
<div class="major_price price">{if $product.points_earn > 0}<span style="color:green;">{$product.points_earn} {$points_shortcut}</span>{/if}{if $product.points_value > 0 && $product.points_earn > 0} / {/if}{if $product.points_value > 0}<span style="color:#ED1B24;">{$product.points_value} {$points_shortcut}</span>{/if}</div>
<div class="price"></div>
{/if}
{/if}
</div>
{/foreach}
</div>
<div class="clear"></div>
{literal}
<script type="text/javascript">
jQuery(function($) {
function equalHeight(group)
{
var tallest = 0;
group.each(function() {
var height = $(this).height();
if(height > tallest) {
tallest = height;
}
});
group.height(tallest);
}
function update() {
equalHeight($("#product_accessories .image"));
equalHeight($("#product_accessories .name"));
equalHeight($("#product_accessories .price"));
equalHeight($("#product_accessories .basic_price"));
equalHeight($("#product_accessories .discount-old_price"));
equalHeight($('#product_accessories .basket'));
}
$(window).load(update);
update();
});
</script>
{/literal}