first commit
This commit is contained in:
@@ -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}
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user