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,100 @@
{literal}
<script type="text/javascript">
jQuery(function ($)
{
function equalHeight(group)
{
tallest = 0;
group.each(function() {
$(this).css("height","auto");
thisHeight = $(this).height();
if(thisHeight > tallest) {
tallest = thisHeight;
}
});
group.height(tallest);
}
$(document).ready(function() {
equalHeight($(".frame"));
});
});
</script>
{/literal}
{set layout="one_column_layout"}
<div id="basket_index" class="box roundies">
{if $products}
<div class="title">
<h2>{__ text="Koszyk"}</h2>
<p>{__ text="Sprawdź zawartość koszyka"}</p>
</div>
{/if}
<div class="content">
<div class="clear"></div>
{if $if_warning || $if_notice}
<div id="warning"><h2>{$show_warning}</h2></div>
{/if}
{if $products}
<div id="basket_products_table">{$product_list}</div>
<form action="#" id="st_basket-delivery-form">
<div id="st_basket-delivery" class="roundies frame box_form">{$delivery}</div>
{if $has_deliveries}
<div id="st_basket-payment" class="roundies frame box_form">{$payment}</div>
{/if}
<div id="st_basket-summary" class="roundies frame box_form">{$total}</div>
</form>
{if $gift_card || $discount_coupon_code}
<div class="frame" style="margin-bottom:20px;">
{/if}
<div id="st_basket-discount-coupon-code" {if $gift_card && $discount_coupon_code} style="margin-bottom:15px;" {/if}>
{$discount_coupon_code}
</div>
{$gift_card}
<div class="clear"></div>
{if $gift_card || $discount_coupon_code}
</div>
{/if}
<div id="st-trusted_shops">{$trusted_shops}</div>
{if $show_products == 1}
<div>{$products_promote}</div>
{/if}
{if $gift_group}
<div id="gift_group" class="box_form">
<h3>{__ text="Wybierz prezent"}</h3>
<div>{$gift_group}</div>
</div>
{/if}
{$socket_above_user_form}
<div id="st_basket-user">{$user_form}</div>
{else}
<div class="empty_basket_img"><img src="{image_path image='/basket/empty_basket.jpg'}" alt="" /></div>
<h2 style="text-align: center; ">{__ text="Twój koszyk jest pusty"}</h2>
<div id="button-empty-basket-return" class="buttons">
<a href="{$return_url}" class="roundies">
<span class="arrow_right">{__ text="Kontynuuj zakupy"}</span>
</a>
</div>
{/if}
<div class="clear"></div>
</div>
</div>

View File

@@ -0,0 +1,4 @@
{$attributes}
<div id="st_button-basket-{$product_id}" class="buttons">
<span>{__ text="Dodaj do koszyka"}</span>
</div>

View File

@@ -0,0 +1,3 @@
<div id="st_button-basket-{$product_id}" >
{$basket_add_enable}
</div>

View File

@@ -0,0 +1,15 @@
<div id="st_component-st_basket-add_enable">
<form action="{$form_action}" method="post" id="st_basket-add-to-basket-form">
{$attributes}
<div id="st_basket-add-button" class="buttons">
<div id="st_basket-add-button-content" class="roundies">
{$submit_button}
{if $quantity_field}
<div id="st_basket-add-quantity_container">{$quantity_field}
</div>
{/if}
<img src="{image_path image='/buttons/basket.png'}" alt=""/>
</div>
</div>
</form>
</div>

View File

@@ -0,0 +1,3 @@
<span id="st_icon-basket-{$product_id}" class="st_icon-basket-disabled">
{$basket_add_simple_disabled}
</span>

View File

@@ -0,0 +1,3 @@
<span id="st_icon-basket-{$product_id}" class="st_icon-basket-enabled">
{$basket_add_simple_enabled}
</span>

View File

@@ -0,0 +1,43 @@
<div id="added_product_preview" style="display: none" class="box roundies">
<h3 class="head">{__ text="Produkt został dodany do koszyka"}</h3>
<div class="content">
{foreach item=product from=$products}
<div class="item">
<div class="image">
<a class="full" href="{$product.url}"><img src="{$product.image}" alt="" /></a>
</div>
<div class="info">
<a href="{$product.url}">{$product.name}</a>
<span>{$product.options}</span>
<div class="quantity">
{if $product.error}
{if $product.points_product == 1}
<span class="error">{$product.quantity} {$product.uom} x {$product.points_value} {$product.points_shortcut}</span>
{else}
<span class="error">{$product.quantity} {$product.uom} x {$product.price|st_currency_format}</span>
{/if}
<div class="tooltip tooltip_warning roundies">{$product.error}</div>
{else}
{if $product.points_product == 1}
{$product.quantity} {$product.uom} x {$product.points_value} {$product.points_shortcut}
{else}
{$product.quantity} {$product.uom} x {$product.price|st_currency_format}
{/if}
{/if}
</div>
</div>
</div>
{/foreach}
<div class="buttons right">
<a class="roundies important" href="{$basket_url}">
<span class="arrow_right">{__ text="Koszyk"}</span>
</a>
</div>
<div class="buttons">
<a class="roundies" href="#" onclick="jQuery('#added_product_preview').data('overlay').close(); return false">
<span class="arrow_left icon_left">{__ text="Kontynuuj zakupy"}</span>
</a>
</div>
<div class="clear"></div>
</div>
</div>

View File

@@ -0,0 +1,6 @@
<div class="st_button-basket-enabled" id="st_component-st_basket-add_info_enable">
{$start_form}
{$basket_info_enabled2}
{__ text="Ilość"}: {$basket_info_enabled} {__ text="szt"}.
</form>
</div>

View File

@@ -0,0 +1,19 @@
<div id="st_component-st_basket-basket_preview">
<div id="st_component-basket-content" class="st_content">
<ul>
<li id="st_icon_basket" {$get_tooltip}>
{$icon_basket}
</li>
<li id="st_sum">
{$num}
</li>
<li {$get_tooltip}>
{$amount_product}
</li>
<li>
{$currency}
</li>
</ul>
{$basket_add}
</div>
</div>

View File

@@ -0,0 +1,152 @@
{$form_start}
<div id="button-basket-continue" class="buttons right">
<a href="{$return_url}" class="regular roundies">
<span class="arrow_right">{__ text="Kontynuuj zakupy"}</span>
</a>
</div>
<table id="st-basket-product" class="st_tabular-list roundies" cellspacing="0" width="100%">
<colgroup>
{if $show_photo_in_basket}<col width="60" />{/if}
{if $show_code_in_basket}<col width="60" />{/if}
<col />
{if $show_netto_in_basket}<col width="80" />{/if}
{if $show_tax_in_basket}<col width="50" />{/if}
<col width="80" />
<col width="50" />
{if $points_system_is_active}
<col width="50" />
{/if}
{if $show_uom_in_basket}<col width="50" />{/if}
<col width="80" />
<col width="80" />
</colgroup>
<thead>
<tr>
{if $show_photo_in_basket}<th class="st_basket-product-photo roundies_lt"><span>{__ text="zdjęcie"}</span></th>{/if}
{if $show_code_in_basket}<th class="st_basket-product-code"><span>{__ text="kod"}</span></th>{/if}
<th class="st_basket-product-name"><span>{__ text="nazwa"}</span></th>
{if $show_netto_in_basket}<th class="st_basket-product-netto"><span>{__ text="netto"}</span></th>{/if}
{if $show_tax_in_basket}<th class="st_basket-product-tax"><span>{__ text="vat"}</span></th>{/if}
<th class="st_basket-product-brutto"><span>{__ text="brutto"}</span></th>
{if $points_system_is_active}
<th class="st_basket-product-brutto"><span>{$points_shortcut}</span></th>
{/if}
<th class="st_basket-product-num"><span>{__ text="ilość"}</span></th>
{if $show_uom_in_basket}<th class="st_basket-product-uom"><span>{__ text="j.m."}</span></th>{/if}
<th class="st_basket-product-sum"><span>{__ text="suma}</span></th>
<th class="st_basket-product-remove roundies_rt">{__ text="usuń"}</th>
</tr>
</thead>
<tbody>
<div id="st_basket_product_value"></div>
{foreach key=row item=product from=$results}
{if $product.if_form_error}
<tr>
<td colspan="11"><span class="st_error">{$product.error_show}</span></td>
</tr>
{/if}
<tr id="tr_product_id_{$product.id}" >
{if $show_photo_in_basket}
<td class="st_basket-product-photo">
{if $product.preview}
<div class="st_basket_product_preview">
{$product.photo}
<div>{$product.preview}</div>
</div>
{else}
{$product.photo}
{/if}
</td>
{/if}
{if $show_code_in_basket}<td class="st_basket-product-code">{$product.code}</td>{/if}
<td class="st_basket-product-name">{$product.name}</td>
{if $show_netto_in_basket}<td class="st_basket-product-netto" nowrap>{if $product.points_only!=1}{$product.price_netto}{else} - {/if}</td>{/if}
{if $show_tax_in_basket}<td class="st_basket-product-tax">{if $product.points_only!=1}{$product.tax} %{else} - {/if}</td>{/if}
<td class="st_basket-product-brutto" nowrap>{if $product.points_only!=1}{$product.price_brutto}{else} - {/if}</td>
{if $points_system_is_active}<td class="st_basket-product-brutto" >{if $product.is_set_discount==""}{$product.points_value}{else} - {/if}</td>{/if}
<td class="st_basket-product-num" onmouseover="{$product.num_onmouseover}" onmouseout="{$product.num_onmouseout}">
<ul>
<li id="st_basket-product-num-button-minus-{$product.id}" style="visibility: hidden">{$product.minus}</li>
<li class="st_basket-product-num-value" id="st_basket_product_value{$product.id}">{$product.num}</li>
<li id="st_basket-product-num-button-plus-{$product.id}" style="visibility: hidden">{$product.plus}</li>
</ul>
</td>
{if $show_uom_in_basket}<td class="st_basket-product-uom">{$product.uom}</td>{/if}
<td class="st_basket-product-sum" nowrap>
{if $points_system_is_active && $is_authenticated==1 && $is_release!="release_off" && $is_release!="release_on" && $product.show_pay_by_money!="false"}
<a href="/points/list" style="text-decoration: none;"><span class="basket_tooltip" title='{__ text="Nie osiągnięto progu punktów."}<br/>{__ text="Do osiągnięcia progu brakuje"}: <b>{$is_release} {$points_shortcut}</b>' style="color:red;">{$product.points_sum_value} {$points_shortcut}</span></a>
{elseif $points_system_is_active && $product.show_pay_by_points=="true" && $product.show_pay_by_money!="false" && $product.is_set_discount==""}
<a href="{$product.url_by_points}" style="text-decoration: none;"><span style="color:green;">{__ text="kup za "} <b>{$product.points_sum_value}</b> {$points_shortcut}</span></a>
{elseif $points_system_is_active && $product.points_sum_value > $user_points_status && $is_authenticated==1 && $product.show_pay_by_money!="false" && $product.is_set_discount==""}
<span class="basket_tooltip" title='{__ text="Brak wystarczającej ilości punków."}' style="color:red;">{$product.points_sum_value} {$points_shortcut}</span>
{/if}
{if $points_system_is_active && $is_authenticated!=1 && $product.points_sum_value!=0 && $product.is_set_discount==""}
<a href="/user/loginUser" style="text-decoration: none;"><span class="basket_tooltip" title='{__ text="Zaloguj się aby kupić produkt."}' style="color:green;">{__ text="kup za "} <b>{$product.points_sum_value}</b> {$points_shortcut}</span></a>
{/if}
{if $product.show_pay_by_money!="false" || $product.points_sum_value > $user_points}{if $product.points_only!=1}{if $points_system_is_active && $product.points_sum_value != 0 && $product.is_set_discount==""} / {/if}{$product.total_amount}{/if}{/if}
{if $product.show_pay_by_money=="true"}
{$product.points_sum_value} {$points_shortcut}
{if $product.points_only!=1}
<a class="roundies" href="{$product.url_by_money}" style="margin:0px 0px -2px 2px;">
{$delete_img}
</a>
{/if}
{/if}
</td>
<td class="st_basket-product-remove">{$product.delete}</td>
</tr>
{/foreach}
<tr>
<td colspan="11" class="st_basket-all-empty roundies_b">
<div class="buttons right basket_action">
<a href="{$clear_url}" class="roundies">
<img src="/images/frontend/theme/default2/basket/trash.gif" alt="" />
</a>
</div>
<div class="buttons right basket_action">
<button type="submit" class="roundies">
<img src="/images/frontend/theme/default2/basket/refresh.png" alt="" />
</button>
</div>
<div id="st_basket_vat_eu" class="right">
{$vat_eu}
</div>
</td>
</tr>
</tbody>
</table>
</form>
{literal}
<script type="text/javascript" language="javascript">
jQuery(function ($) {
$(document).ready(function () {
$(".basket_tooltip").tooltip({
effect: 'slide',
opacity: 1,
delay: 0,
position: 'bottom center',
offset: [20,0],
tipClass: "my_tooltip tooltip roundies"
});
});
});
</script>
{/literal}

View File

@@ -0,0 +1,28 @@
<div id="basket_icon" class="right">
{$basket_icon}
</div>
<div class="right">
{$amount_icon}
{if isset($basket_array)}
<div id="basket_tooltip" class="tooltip roundies">
<table style="border:none;">
{foreach from=$basket_array item=basket_item}
<tr>
<td style="border:none;">{$basket_item.image}</td>
<td style="border:none;">{$basket_item.name}</td>
{if $basket_item.product_for_points && $points_system_is_active}
<td class="sum_right">{$basket_item.quantity} x {$basket_item.points_value}</td>
{else}
<td class="sum_right">{$basket_item.quantity} x {$basket_item.price}</td>
{/if}
</tr>
{/foreach}
<tr><td colspan="3" class="sum_right">{__ text="razem"}: <b>{$basket_amount}{if $basket_points_amount!=0 && $points_system_is_active} / {$basket_points_amount} {$points_shortcut}{/if}</b></td></tr>
</table>
</div>
{else}
<div id="basket_tooltip" class="tooltip roundies">
{__ text="Koszyk jest pusty"}
</div>
{/if}
</div>

View File

@@ -0,0 +1,8 @@
<div id="st_component-st_basket-sumary_info">
{if $value}
{$value}
{else}
{__ text="Razem do zapłaty"}: <strong>{$total_amount}</strong>
{/if}
</div>