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,43 @@
<div id="st_application-st_basket-index" class="st_application">
<h1 class="st_title">{__ text="Twój koszyk"}</h1>
<div class="st_content_basket">
<div class="st_button st_align-left" id="st_basket-back_button">
<div class="st_button-left">{$button_back}</div>
</div>
<br class="st_clear_all" />
{if $if_warning || $if_notice}
<div id="st_message-warning"><h2>{$show_warning}</h2></div>
{/if}
{if $products}
<div id="st_basket-product_list">{$product_list}</div>
<form action="#" id="st_basket-delivery-form">
<div id="st_basket-delivery">{$delivery}</div>
{if $has_deliveries}
<div id="st_basket-payment">{$payment}</div>
{/if}
<div id="st_basket-summary">
{$total}
</div>
</form>
<div id="st_basket-discount-coupon-code">
{$discount_coupon_code}
</div>
{$gift_card}
<br class="st_clear_all"/>
<div id="st-trusted_shops">{$trusted_shops}</div>
{if $show_products == 1}
<div>{$products_promote}</div>
{/if}
<div id="st_basket-user">{$user_form}</div>
{else}
{if $show_products == 1}
<div id="st-basket-product_group">{$product_basket}</div>
{/if}
{/if}
<br class="st_clear_all" />
</div>
</div>

View File

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

View File

@@ -0,0 +1,3 @@
<div id="st_button-basket-{$product_id}" class="st_button-basket-enabled">
{$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">
<div class="st_button-left">
<div class="st_button-right">
<div id="st_basket-add-submit-container">{$submit_button}</div>
<div id="st_basket-add-quantity_container">{$quantity_field}</div>
<br class="st_clear_all" />
</div>
</div>
</div>
<br class="st_clear_all" />
</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,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,63 @@
{$form_start}
<table class="st_tabular-list" cellspacing="0">
<colgroup>
<col width="80" />
<col />
<col width="80" />
<col width="50" />
<col width="80" />
<col width="80" />
<col width="80" />
<col width="60" />
</colgroup>
<thead>
<tr>
<th class="st_basket-product-photo"><span>{__ text="zdjęcie"}</span></th>
<th class="st_basket-product-name"><span>{__ text="nazwa"}</span></th>
<th class="st_basket-product-netto"><span>{__ text="cena netto"}</span></th>
<th class="st_basket-product-tax"><span>{__ text="vat"}</span></th>
<th class="st_basket-product-brutto"><span>{__ text="cena brutto"}</span></th>
<th class="st_basket-product-num"><span>{__ text="ilość"}</span></th>
<th class="st_basket-product-sum"><span>{__ text="suma}</span></th>
<th class="st_basket-product-remove">{__ 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="8"><span class="st_error">{$product.error_show}</span></td>
</tr>
{/if}
<tr id="tr_product_id_{$product.id}" >
<td class="st_basket-product-photo">{$product.photo}</td>
<td class="st_basket-product-name">{$product.name}</td>
<td class="st_basket-product-netto">{$product.price_netto}</td>
<td class="st_basket-product-tax">{$product.tax} %</td>
<td class="st_basket-product-brutto">{$product.price_brutto}</td>
<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>
<td class="st_basket-product-sum">{$product.total_amount}</td>
<td class="st_basket-product-remove">{$product.delete}</td>
</tr>
{/foreach}
<tr>
<td colspan="8" class="st_basket-all-empty" style="border-bottom: none;">
<div class="st_button st_align-right" id="st_basket-update_button">
<div class="st_button-left">{$button_update}</div>
</div>
<div class="st_button st_align-right" id="st_basket-clear_button">
<div class="st_button-left">{$button_clear}</div>
</div>
</td>
</tr>
</tbody>
</table>
</form>

View File

@@ -0,0 +1,19 @@
<ul id="st_component-st_basket-list">
<li class="st_basket-list-last">{$basket_icon}</li>
<li>{$amount_icon}
{if isset($basket_array)}
<div 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>
<td style="border:none;">{$basket_item.quantity} x {$basket_item.price}</td>
</tr>
{/foreach}
<tr><td colspan="3" style="border:none; text-align: right">{__ text="razem"}: <b>{$basket_amount}</b></td></tr>
</table>
</div>
{/if}
</li>
</ul>

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>

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>

View File

@@ -0,0 +1,82 @@
{assign var=update value=false}
<div id="shopping-cart-product-preview" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title">{__ text="Produkt został dodany do koszyka"}</h4>
</div>
<div class="modal-body">
<div class="shopping-cart">
{foreach item=product from=$products}
{if $product.quantity > 0}
{assign var=update value=true}
{/if}
<div class="item clearfix">
<div class="col-xs-2">
<a href="{$product.url}" class="image pull-left">
<img class="img-rounded" src="{$product.image}" alt="{$product.name}" />
</a>
</div>
<div class="col-xs-10">
<div class="name">
<a href="{$product.url}">{$product.name}</a>
</div>
{if $product.instance->hasPriceModifiers()}
{foreach item=modifier from=$product.instance->getPriceModifiers()}
{if $modifier.custom.field}
<span class="label label-default">{$modifier.custom.field}: {$modifier.label}</span>
{else}
<span class="label label-default">{$modifier.label}</span>
{/if}
{/foreach}
{/if}
<div class="price">
{if $product.error}
<span class="has-error glyphicon glyphicon-exclamation-sign" data-toggle="tooltip" data-placement="top" title="{$product.error}"></span>
{/if}
{$product.quantity} x {$product.price|st_currency_format}
{if $show_netto == 1}
({$product.instance->getPriceNetto(true)|st_currency_format} {__ text="netto"})
{/if}
</div>
</div>
</div>
{/foreach}
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">{__ text="Kontynuuj zakupy"}</button>
<a class="btn btn-primary" href="{$basket_url}">{__ text="Koszyk"}</a>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
{slot name="basket-ajax-added-product-preview" hidden="true"}{/slot}
{literal}
<script type="text/javascript">
//<![CDATA[
jQuery(function() {
var shoppingCartProductPreview = $('#shopping-cart-product-preview');
shoppingCartProductPreview .modal().on('hidden.bs.modal', function() {
$(this).remove();
});
shoppingCartProductPreview.find('[data-toggle=tooltip]').tooltip();
});
//]]>
</script>
{/literal}
{if $update}
{literal}
<script type="text/javascript">
//<![CDATA[
jQuery(function() {
$('#nav-shopping-cart').html('{/literal}{$basket_show_component}{literal}');
});
//]]>
</script>
{/literal}
{/if}

View File

@@ -0,0 +1,200 @@
{set layout="one_column"}
<div id="shopping-cart" class="order-control">
<div class="title">
<h1>{__ text="Koszyk"}</h1>
</div>
<a href="{$return_url}" id="basket-back-button" class="btn btn-default hidden-xs">
<span class="arrow_right">{__ text="Kontynuuj zakupy"}</span>
</a>
{if $if_warning || $if_notice}
<div class="alert alert-danger" role="alert">{$show_warning}</div>
{/if}
{if $products}
{slot name="basket-before-items" hidden="true"}{/slot}
<div class="items">
{$product_list}
</div>
{slot name="basket-after-items" hidden="true"}{/slot}
<div id="basket-box" class="row" data-equalizer>
<div id="shopping-cart-delivery" class="col-sm-4">{$delivery}</div>
<div id="shopping-cart-payment" class="col-sm-4">{$payment}</div>
<div id="shopping-cart-summary" class="col-sm-4">{$total}</div>
</div>
<div id="gift-group-container">
{st_get_component module="stGiftGroup" component="show" limit="4" overlay=true}
</div>
<div class="row" data-equalizer >
<div class="col-sm-8">
<div class="panel panel-default" >
<div class="panel-body">
<textarea id="order_description_text" placeholder='{__ text="Uwagi do zamówienia"}' class="form-control" rows="1" >{$description}</textarea>
</div>
</div>
</div>
</div>
{$trusted_shops}
{$socket_above_user_form}
{$user_form}
{else}
<div class="empty-basket text-center">
<img class="hidden-xs" src="{image_path image='basket/empty_basket.png'}" alt="" />
<h3>{__ text="Twój koszyk jest pusty"}</h3>
<a href="{$return_url}" class="btn btn-primary" >
{__ text="Kontynuuj zakupy"}
</a>
</div>
{/if}
</div>
<div class="modal fade modal-vertical-centered" id="basket-update-modal" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<h3 class="text-center">{__ text="Koszyk"}</h3>
<p class="text-center">{__ text="Twój koszyk jest aktualizowany. Proszę czekać."}</p>
<div class="preloader"></div>
</div>
</div>
</div>
</div>
<div id="delivery-modal" class="modal fade" tabindex="-1" role="dialog" data-action="{urlfor internal='@stDeliveryFrontend?action=choosePickupPoint'}">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content relative">
<div class="preloader absolute"></div>
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title"></h4>
</div>
<div class="modal-body">
<div class="modal-body-content"></div>
</div>
</div>
</div>
</div>
<div id="delivery-message-modal" class="modal fade" tabindex="-1" role="dialog" data-show-error="{$sf_request->getError('delivery_error')}">
<div class="modal-dialog dialog-sm" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title"></h4>
</div>
<div class="modal-body text-center"></div>
<div class="modal-footer">
<div class="text-center">
<button type="button" class="btn btn-default" data-dismiss="modal">{__ text="Zamknij"}</button>
</div>
</div>
</div>
</div>
</div>
{if $sf_request->hasParameter('session_expired')}
<div class="modal fade modal-vertical-centered" id="basket-session-modal" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" data-keyboard="false" data-show="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<h3 class="text-center">{__ text="Twoja sesja wygasła"}</h3>
<p class="text-center">{__ text="Przykro nam, ale Twoja sesja wygasła.<br>Powtórz operacje, aby dokończyć proces zamówienia."}</p>
<button class="btn btn-default" data-dismiss="modal">{__ text="OK"}</button>
</div>
</div>
</div>
</div>
{/if}
{literal}
<script type="text/javascript">
//<![CDATA[
jQuery(function($) {
var forms = $('#shopping-cart-delivery, #shopping-cart-payment');
$('#basket-session-modal').modal();
function updateDelivery(event, includeDeliveryCountry) {
const form = $(this);
const fieldset = forms.find('fieldset');
fieldset.attr('disabled', true);
$(document).trigger('delivery.update.started');
let billing = $('#user_data_billing_country, #billing-country').val();
let clientType = $('input[name="user_data_billing[customer_type]"]:checked').val();
let payload = form.serialize()+'&billing_country='+billing+'&client_type='+clientType;
if (includeDeliveryCountry) {
let delivery = $('#user_data_delivery_country, #delivery-country').val();
payload += '&delivery[country]=' + delivery;
}
$.get(form.attr('action'), payload, function() {
fieldset.removeAttr('disabled');
$(document).trigger('delivery.update.finished');
});
return false;
}
forms.on('change', 'select,input[type="radio"],input[type="checkbox"]', function() {
const el = $(this);
if (el.is('#delivery-country') && !el.data('ignore-billing-update') && !$('#different_delivery').prop('checked')) {
$('#user_data_billing_country, #billing-country').val(el.val());
}
el.data('ignore-billing-update', false);
if (el.is('.payment-radio')) {
$('#payment_channel').val(el.data('channel') ? JSON.stringify(el.data('channel')) : '');
}
$(this.form).submit();
});
forms.on('submit', 'form', updateDelivery);
$("#order_description_text").click(function() {
$(this).css('height', '147px');
});
$(document).ready(function() {
$('#order_form_billing').on('change', 'input[name="user_data_billing[customer_type]"], #user_data_billing_country, #billing-country', function() {
updateDelivery.call(forms.filter('#shopping-cart-delivery').find('form'));
});
$('#toTop, #phone-call').remove();
}).on("delivery.update.started", function() {
$('#basket-update-modal').modal('show');
}).on("delivery.update.finished", function() {
setTimeout(function() {
$('#basket-update-modal').modal('hide');
}, 500);
}).on('delivery.update', function(e, includeDeliveryCountry) {
updateDelivery.call(forms.filter('#shopping-cart-delivery').find('form'), includeDeliveryCountry);
});
$('#shopping-cart [data-toggle=tooltip]').tooltip().on('show.bs.tooltip', function(e) {
var target = $(e.target);
if (target.hasClass('product-option-label')) {
var maxWidth = target.css('max-width');
target.css({ 'max-width': 'none' });
var width = target.width();
target.css({ 'max-width': maxWidth });
return width > target.width();
}
return true;
});
});
//]]>
</script>
{/literal}

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,94 @@
{assign var=update value=false}
<div id="shopping-cart-product-preview" class="modal fade" role="dialog" aria-labelledby="{__ text='Produkt został dodany do koszyka'}" tabindex="-1">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title">{__ text="Produkt został dodany do koszyka"}</h4>
</div>
<div class="modal-body">
<div class="shopping-cart">
{foreach item=product from=$products}
{if $product.quantity > 0}
{assign var=update value=true}
{/if}
<div class="item clearfix">
<div class="col-xs-2">
<a href="{$product.url}" class="image pull-left">
<img class="img-rounded" src="{$product.image}" alt="{$product.name}" />
</a>
</div>
<div class="col-xs-10">
<div class="name">
<a href="{$product.url}">{$product.name}</a>
</div>
{if $product.instance->hasPriceModifiers()}
{foreach item=modifier from=$product.instance->getPriceModifiers()}
{if $modifier.custom.field}
<span class="label label-default product-option-label" title="{$modifier.custom.field|escape:'html'}: {$modifier.label|escape:'html'}" data-toggle="tooltip">{$modifier.custom.field}: {$modifier.label}</span>
{else}
<span class="label label-default product-option-label" title="{$modifier.custom.field|escape:'html'}: {$modifier.label|escape:'html'}" data-toggle="tooltip">{$modifier.label}</span>
{/if}
{/foreach}
{/if}
<div class="price">
{if $product.error}
<span class="has-error glyphicon glyphicon-exclamation-sign" data-toggle="tooltip" data-placement="top" title="{$product.error}"></span>
{/if}
{$product.quantity} x {$product.price|st_currency_format}
{if $show_netto == 1}
({$product.instance->getPriceNetto(true)|st_currency_format} {__ text="netto"})
{/if}
</div>
</div>
</div>
{/foreach}
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">{__ text="Kontynuuj zakupy"}</button>
<a class="btn btn-primary" href="{$basket_url}">{__ text="Zamów"}</a>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
{slot name="basket-ajax-added-product-preview" hidden="true"}{/slot}
{literal}
<script type="text/javascript">
//<![CDATA[
jQuery(function() {
var shoppingCartProductPreview = $('#shopping-cart-product-preview');
shoppingCartProductPreview .modal().on('hidden.bs.modal', function() {
$(this).remove();
});
shoppingCartProductPreview.find('[data-toggle=tooltip]').tooltip().on('show.bs.tooltip', function(e) {
var target = $(e.target);
if (target.hasClass('product-option-label')) {
var maxWidth = target.css('max-width');
target.css({ 'max-width': 'none' });
var width = target.width();
target.css({ 'max-width': maxWidth });
return width > target.width();
}
return true;
});
});
//]]>
</script>
{/literal}
{if $update}
{literal}
<script type="text/javascript">
//<![CDATA[
jQuery(function() {
$('#nav-shopping-cart').html('{/literal}{$basket_show_component}{literal}');
});
//]]>
</script>
{/literal}
{/if}

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,121 @@
<form action="{url_for internal=@stBasket}" method="post">
<table class="table">
<thead>
<tr>
{if $show_photo_in_basket}
<th class="product-image">&nbsp;</th>
{/if}
{if $show_code_in_basket}
<th class="product-code ">{__ text="kod"}</th>
{/if}
<th class="product-name">{__ text="nazwa"}</th>
{if $show_discount_in_basket}
<th class="product-discount">{__ text="rabat"}</th>
{/if}
{if $show_netto_in_basket}
<th class="product-net text-right">{__ text="netto"}</th>
{/if}
{if $show_tax_in_basket}
<th class="product-tax text-right">{__ text="vat"}</th>
{/if}
<th class="product-gross text-right">{__ text="brutto"}</th>
<th class="product-quantity text-center">{__ text="ilość"}</th>
{if $show_uom_in_basket}
<th class="product-uom text-right">{__ text="j.m."}</th>
{/if}
<th class="product-total text-right">{__ text="suma"}</th>
<th class="product-action-new">
<a href="{$clear_url}" class="pull-right hidden-xs" aria-label="{__ text='Wyczyść zawartość koszyka'}">
<span class="glyphicon glyphicon-trash"></span>
</a>
</th>
</tr>
</thead>
<tbody>
{foreach key=row item=product from=$results}
{if $product.if_form_error}
<tr>
<td colspan="11" style="padding: 0; margin: 0"><div class="bg-danger">{$product.error_show}</div></td>
</tr>
{/if}
{slot name="basket-before-item-row" hidden="true" product=$product.instance}{/slot}
<tr>
{if $show.photo}
<td class="product-image" data-th="{__ text='zdjęcie'}">
{if $product.url}
<a href="{$product.url}">
<img class="img-responsive" src="{$product.photo}" alt="{$product.name}" />
</a>
{else}
<img class="img-responsive" src="{$product.photo}" alt="{$product.name}" />
{/if}
<a class="visible-xs primary btn-delete" href="{$product.delete_url}" aria-label="{__ text='Usuń produkt z koszyka'}">{__ text="usuń"}</a>
</td>
{/if}
{if $show.code}
<td class="mobile product-code" data-th="{__ text='kod'}"> {$product.code}</td>
{/if}
<td class="product-name" data-th="{__ text='nazwa'}">
{if $product.url}
<a href="{$product.url}">
{$product.name}
</a>
{else}
{$product.name}
{/if}
{if $product.instance->hasPriceModifiers()}
<div class="options">
{foreach item=modifier from=$product.instance->getPriceModifiers()}
{if $modifier.custom.field}
<span class="label label-default product-option-label" title="{$modifier.custom.field|escape:'html'}: {$modifier.label|escape:'html'}" data-toggle="tooltip" data-placement="top">{$modifier.custom.field}: {$modifier.label}</span>
{else}
<span class="label label-default product-option-label" title="{$modifier.custom.field|escape:'html'}: {$modifier.label|escape:'html'}" data-toggle="tooltip" data-placement="top">{$modifier.label}</span>
{/if}
{/foreach}
</div>
{/if}
</td>
{if $show.discount}
<td class="product-discount text-nowrap mobile" data-th="{__ text='rabat'}"> {$product.discount}%</td>
{/if}
{if $show.netto}
<td class="product-net text-nowrap price mobile" data-th="{__ text='netto'}"> {$product.price_netto}</td>
{/if}
{if $show.tax}
<td class="mobile product-tax text-nowrap mobile" data-th="{__ text='vat'}"> {$product.tax}</td>
{/if}
<td class="product-gross text-nowrap price mobile" data-th="{__ text='brutto'}"> {$product.price_brutto}</td>
<td class="product-quantity text-center" data-th="{__ text='ilość'}">
{$product.num}
{if $show.uom}
<div class="product-uom visible-xs" data-th="{__ text='j.m.'}"> {$product.uom}</div>
{/if}
<button type="submit" class="btn btn-default btn-xs" aria-label="{__ text='Aktualizuj ilość'}">
<span class="glyphicon glyphicon-refresh"></span>
</button>
</td>
{if $show.uom}
<td class="product-uom hidden-xs" data-th="{__ text='j.m.'}"> {$product.uom}</td>
{/if}
<td class="product-total text-nowrap hidden-xs" data-th="{__ text='suma'}"> {$product.total_amount}</td>
<td class="product-action-new hidden-xs">
<a class="primary btn-delete" href="{$product.delete_url}" aria-label="{__ text='Usuń produkt z koszyka'}">
<span><img src="{image_path image='delete.png'}" height="14" width="14" alt="delete" /></span>
</a>
</td>
</tr>
{slot name="basket-after-item-row" hidden="true" parameters="product, show"}{/slot}
{/foreach}
{if $vat_eu}
<tr class="bottom-tab">
<td class="clearfix" colspan="11">
<div id="st_basket_vat_eu" class="pull-right">
{$vat_eu}
</div>
</td>
</tr>
{/if}
</tbody>
</table>
</form>

View File

@@ -0,0 +1,75 @@
<div class="shopping-cart clearfix">
{if $items}
<div class="clearfix">
{assign var='i' value=0}
{foreach item=item from=$items}
{assign var='i' value=$i+1}
{if $i < 5}
<div class="item clearfix">
<div class="col-xs-2 item-image-col">
<a href="{$item.url}" class="image">
<img class="img-rounded" src="{$item.image}" alt="{$item.name}" />
</a>
</div>
<div class="col-xs-10 item-content-col">
<div class="name">
<a href="{$item.url}">{$item.name}</a>
</div>
{if $item.price_modifiers}
<div class="options">
{foreach item=modifier from=$item.price_modifiers}
{if $modifier.custom.field}
<span class="label label-default product-option-label" title="{$modifier.custom.field|escape:'html'}: {$modifier.label|escape:'html'}" data-toggle="tooltip" data-placement="bottom">{$modifier.custom.field}: {$modifier.label}</span>
{else}
<span class="label label-default product-option-label" title="{$modifier.custom.field|escape:'html'}: {$modifier.label|escape:'html'}" data-toggle="tooltip" data-placement="bottom">{$modifier.label}</span>
{/if}
{/foreach}
</div>
{/if}
<div class="price">{$item.quantity} x {$item.price}</div>
<a class="close-icon" href="{$item.delete_url}" aria-label="{__ text='usuń'}"></a>
</div>
</div>
{slot name="basket-widget-after-item-row" hidden="true" parameters="item"}{/slot}
{elseif $i == 5}
<a href="{$url}" class="btn btn-default">{__ text="Zobacz wszystkie" langCatalogue="stOrder"}</a>
{/if}
{/foreach}
</div>
<div class="clearfix basket-show-summary">
<div class="basket-show-total">
{__ text="Razem do zapłaty"}: <b>{$basket_summary}</b>
</div>
<a class="btn btn-primary" href="{$url}">{__ text="Zamów"}</a>
</div>
{else}
<div class="text-right">{__ text="Twój koszyk jest pusty"}</div>
{/if}
</div>
{literal}
<script type="text/javascript">
//<![CDATA[
jQuery(function($) {
var quantity = {/literal}{$total_quantity}{literal};
$("#nav-button-shopping-cart .quantity").html(quantity ? quantity : "");
$('#nav-shopping-cart [data-toggle=tooltip]').tooltip().on('show.bs.tooltip', function(e) {
var target = $(e.target);
if (target.hasClass('product-option-label')) {
var maxWidth = target.css('max-width');
target.css({ 'max-width': 'none' });
var width = target.width();
target.css({ 'max-width': maxWidth });
return width > target.width();
}
return true;
});
if (quantity > 0) {
$("#nav-button-shopping-cart.empty").removeClass('empty');
};
});
//]]>
</script>
{/literal}

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>