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,29 @@
<div id="st_discount-coupon-code">
<h3 class="st_title">{__ text="Kod rabatowy"}</h3>
{if $coupon_code}
<div id="st_discount-coupon-info">
{__ text="Udzielony rabat"}: <b>{$coupon_code.discount}%</b>
</div>
{else}
<form action="{$form.action}" method="post">
{if $form.error}
<div id="st_discount-coupon-error">
{__ text=$form.error}
</div>
{/if}
<div id="st_discount-coupon-form">
<div class="label">
<label for="discount_coupon_code">{__ text="Wprowadź kod"}:</label>
</div>
<input id="discount_coupon_code" name="discount[coupon_code]" type="text" value="{$form.code}" />
<input type="hidden" name="discount[return_url]" value="{$form.return_url}" />
<div class="st_button st_align-right" id="st_basket-confirm_code">
<div class="st_button-left"><input type="submit" value="{__ text='Aktywuj'}"></div>
</div>
<br class="st_clear_all" />
</div>
</form>
{/if}
</div>

View File

@@ -0,0 +1,35 @@
<div id="st_application-user-user" class="st_application">
<h1 class="st_title">
<div id="st_user-tag">{$user_panel_icon}</div>
{$user_panel_path}
</h1>
{$user_panel_menu}
<div class="st_content" style="padding: 10px 200px">
<h5 class="st_title">{__ text="Lista przypisanych rabatów"}</h5><br />
<table class="st_tabular-list" cellspacing="0">
<colgroup>
<col>
<col width="120">
<col width="120">
</colgroup>
<thead>
<tr>
<th style="white-space: nowrap;"><span>{__ text="Nazwa"}</span></th>
<th><span>{__ text="Wartość"}</span></th>
<th><span>{__ text="Produkty"}</span></th>
</tr>
</thead>
<tbody>
{foreach from=$discounts item=discount}
<tr>
<td>{$discount.name}</td>
<td>{$discount.value}%</td>
<td>{$discount.link_to}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
<br class="st_clear_all" />
</div>

View File

@@ -0,0 +1,17 @@
<div id="st_component-st_product-product_list">
<div id="st_component-st_product-product_list_long_head"></div>
<div class="st_application">
<h1 id="st_search-st_title" class="st_title">
{__ text="Produkty w grupie rabatowej"}: {$discount_name}
</h1>
</div>
{$pager}
{$product}
{$pager}
<p align="center">{$no_results}</p>
</div>

View File

@@ -0,0 +1,59 @@
<div id="st_discount-coupon-code" class="roundies box_form" style="margin-bottom:0px;">
<h3>{__ text="Kod rabatowy"}</h3>
{if $coupon_code}
<div id="st_discount-coupon-info">
{$coupon_code.code}: <b>{$coupon_code.discount}%</b> <a href="{$coupon_code.remove_url}"><img src="{image_path image='delete.gif'}" alt="" /></a>
</div>
{else}
<form action="{$form.action}" method="post">
<div id="st_discount-coupon-form">
{if $form.error}
<div id="st_discount-coupon-error">
{__ text=$form.error}
</div>
{/if}
<fieldset>
<div class="st_row left">
<div class="st_field">
<label for="discount_coupon_code">{__ text="Wprowadź kod"}</label>
<input id="discount_coupon_code" name="discount[coupon_code]" type="text" value="{$form.code}" />
<input type="hidden" name="discount[return_url]" value="{$form.return_url}" />
</div>
</div>
<div class="st_row left">
<div class="st_field">
<div class="buttons">
<button class="regular roundies" type="submit">
{__ text="Aktywuj"}
</button>
</div>
</div>
</div>
<div class="clear"></div>
</fieldset>
</div>
</form>
{/if}
</div>
{literal}
<script type="text/javascript">
jQuery(function ($)
{
$(document).ready(function()
{
$("label").inFieldLabels();
});
});
</script>
{/literal}

View File

@@ -0,0 +1,53 @@
{set layout="one_column_layout"}
<div id="st_application-user-user" class="st_application box roundies">
<div id="st_navigation_bar-user" class="st_navigation_bar_user">
<ul>
<li class="st_first"><a href="/user_data/userPanel">{__ text="Moje konto"}</a></li>
<li class="st_selected"><a href="/discount/discountInfo">{__ text="Rabaty"}</a></li>
</ul>
</div>
<div class="st_content">
<div id="discount-table" class="box_form roundies">
<h3>{__ text="Lista przypisanych rabatów"}</h3>
<div style="padding: 25px;">
{if $discounts}
<table id="discount-table-info" class="st_tabular-list" cellspacing="0">
<colgroup>
<col>
<col width="120">
<col width="120">
</colgroup>
<thead>
<tr>
<th style="white-space: nowrap;"><span>{__ text="Nazwa"}</span></th>
<th><span>{__ text="Wartość"}</span></th>
<th><span>{__ text="Produkty"}</span></th>
</tr>
</thead>
<tbody>
{foreach from=$discounts item=discount}
<tr>
<td>{$discount.name}</td>
{if $discount.type == '%' || $discount.id == 0}
<td>{$discount.value}%</td>
{else}
<td>{$discount.value|st_currency_format:null:true}</td>
{/if}
<td>{$discount.link_to}</td>
</tr>
{/foreach}
</tbody>
</table>
{else}
{__ text="Brak rabatów"}
{/if}
</div>
</div>
</div>
<div class="st_clear_all"></div>
</div>

View File

@@ -0,0 +1,17 @@
<div id="st_component-st_product-product_list">
<div id="st_component-st_product-product_list_long_head"></div>
<div class="st_application">
<h1 id="st_search-st_title" class="st_title">
{__ text="Produkty w grupie rabatowej"}: {$discount_name}
</h1>
</div>
{$pager}
{$product}
{$pager}
<p align="center">{$no_results}</p>
</div>

View File

@@ -0,0 +1,64 @@
{use_stylesheet src="stDiscountPlugin.css"}
{literal}
<script type="text/javascript">
jQuery(function ($)
{
function equalHeight(group)
{
tallest = 0;
group.each(function() {
thisHeight = $(this).height();
if(thisHeight > tallest) {
tallest = thisHeight;
}
});
group.height(tallest);
}
$(document).ready(function() {
equalHeight($("#product_set_discounts .image"));
equalHeight($("#product_set_discounts .name"));
equalHeight($("#product_set_discounts .price"));
equalHeight($("#product_set_discounts .item_discount_set"));
});
$(window).load(function() {
equalHeight($("#product_set_discounts .image"));
equalHeight($("#product_set_discounts .name"));
equalHeight($("#product_set_discounts .price"));
equalHeight($("#product_set_discounts .item_discount_set"));
});
});
</script>
{/literal}
<div class="block box roundies box_group">
<h3 class="head">{__ text="W zestawie kupisz taniej"}</h3>
<div class="content">
{foreach item=discount from=$discounts}
{assign var=products value=$discount->getProducts()}
{if $products}
<div class="discount_row">
{foreach item=product from=$products name="products"}
<div class="item item_discount_set">
<div class="image roundies">{st_product_image_tag product=$product include_link=true image_type="thumb"}</div>
<div class="name">{$product->getName()}</div>
{st_product_price_tag product=$product view="short"}
</div>
{if !$smarty.foreach.products.last}
<div class="item_discount_set plus"></div>
{/if}
{/foreach}
<div class="discount_summary">
<span class="old_price">{$discount->getTotalProductAmount(false)|st_currency_format}</span><br />
<b>{$discount->getTotalProductAmount()|st_currency_format}</b>
<div class="buttons">
{st_discount_basket_add_button discount=$discount}
</div>
</div>
<div class="clear"></div>
</div>
{/if}
{/foreach}
</div>
</div>

View File

@@ -0,0 +1,40 @@
<div id="discount-box" style="margin-bottom:10px;">
{if $coupon_code}
{if $form.error}
<div class="form-group">
<div class="bg-danger">
{__ text=$form.error}
</div>
</div>
{/if}
<div class="form-group">
<div class="row">
<div class="col-xs-8">
<b>{$coupon_code.code}</b> <a class="primary" href="{$coupon_code.remove_url}"><span class="glyphicon glyphicon-remove-circle"></span></a>:
</div>
<div class="col-xs-4 text-right">
{$coupon_code.discount}%
</div>
</div>
</div>
{else}
<form action="{$form.action}" method="post">
{if $form.error}
<div class="form-group">
<div class="bg-danger">
{__ text=$form.error}
</div>
</div>
{/if}
<div class="form-group input-group">
<input class="form-control" placeholder="{__ text='Wprowadź kod rabatowy'}" id="discount_coupon_code" name="discount[coupon_code]" type="text" value="{$form.code}" />
<input type="hidden" name="discount[return_url]" value="{$form.return_url}" />
<span class="input-group-btn">
<button class="btn btn-default pull-right" type="submit">
{__ text="Aktywuj"}
</button>
</span>
</div>
</form>
{/if}
</div>

View File

@@ -0,0 +1,43 @@
{set layout="one_column"}
<div class="user-control">
{st_get_component module="stUserData" component="responsiveUserPanelMenu" active_tab="3"}
<div id="discount-info">
{if $discounts}
<h4>{__ text="Rabaty przyznane klientowi" catalogue="stUserData"}</h4>
<table class="table table-hover table-responsive" cellspacing="0" width="100%">
<colgroup>
<col>
<col width="120">
<col width="120">
</colgroup>
<thead>
<tr>
<th style="white-space: nowrap;"><span>{__ text="Nazwa"}</span></th>
<th><span>{__ text="Wartość"}</span></th>
<th><span>{__ text="Produkty"}</span></th>
</tr>
</thead>
<tbody>
{foreach from=$discounts item=discount}
<tr>
<td>{$discount.name}</td>
{if $discount.type == '%' || $discount.id == 0}
<td>{$discount.value}%</td>
{else}
<td>{$discount.value|st_currency_format:null:true}</td>
{/if}
<td>{$discount.link_to}</td>
</tr>
{/foreach}
</tbody>
</table>
{else}
<div class="panel panel-default center-block info-panel">
<div class="panel-body text-center">
<p>{__ text="Aktualnie nie posiadasz żadnych rabatów." catalogue="stUserData"}</p>
</div>
</div>
{/if}
</div>
</div>

View File

@@ -0,0 +1,13 @@
<div class="product-list clearfix" data-equalizer>
<div id="product-navbar" class="pull-left">
<h1>{__ text="Produkty w grupie rabatowej"}: {$discount_name}</h1>
</div>
{$product}
{$pager}
<p align="center">{$no_results}</p>
</div>

View File

@@ -0,0 +1,49 @@
<section id="discount-product-set-list" class="full-list product-list" >
<h3>{__ text="W zestawie kupisz taniej"}</h3>
{foreach item=discount from=$discounts}
{assign var=products value=$discount->getProducts()}
{if $products}
<div class="row" data-equalizer>
{foreach item=product from=$products name="products"}
<div class="product col-xs-12 col-sm-3 col-md-3 col-lg-3">
<div class="thumbnail" data-equalizer-watch>
<div>
<div class="image">{st_product_image_tag product=$product include_link=true image_type="thumb"}</div>
</div>
<p class="name">{$product->getName()}</p>
<div class="nowrap">{st_product_price_tag product=$product}</div>
</div>
{if !$smarty.foreach.products.first}
<span class="discount-plus"></span>
{/if}
</div>
{/foreach}
<div class="product col-xs-12 col-sm-3 col-md-3 col-lg-3 last">
<div data-equalizer-watch>
{if $price_view == 'net_gross'}
<div class="double_price price">
<span class="old_price">{$discount->getTotalProductAmount(false, false)|st_currency_format} <span class="minor_price">({$discount->getTotalProductAmount(false, true)|st_currency_format})</span></span><br>
<b class="price nowrap">{$discount->getTotalProductAmount(true, false)|st_currency_format} <span class="minor_price">({$discount->getTotalProductAmount()|st_currency_format})</span></b>
</div>
{elseif $price_view == 'only_gross'}
<span class="old_price">{$discount->getTotalProductAmount(false)|st_currency_format}</span><br>
<b class="price nowrap">{$discount->getTotalProductAmount()|st_currency_format}</b>
{elseif $price_view == 'only_net'}
<span class="old_price">{$discount->getTotalProductAmount(false, false)|st_currency_format}</span><br>
<b class="price nowrap">{$discount->getTotalProductAmount(true, false)|st_currency_format}</b>
{else}
<div class="double_price price">
<span class="old_price">{$discount->getTotalProductAmount(false, true)|st_currency_format} <span class="minor_price">({$discount->getTotalProductAmount(false, false)|st_currency_format})</span></span><br>
<b class="price nowrap">{$discount->getTotalProductAmount()|st_currency_format} <span class="minor_price">({$discount->getTotalProductAmount(true, false)|st_currency_format})</span></b>
</div>
{/if}
<div class="buttons">
{st_discount_basket_add_button discount=$discount}
</div>
</div>
</div>
<div class="clear"></div>
</div>
{/if}
{/foreach}
</section>