first commit
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
{use_javascript src="jquery.timeentry.js" }
|
||||
{use_javascript src="calendar.js" }
|
||||
|
||||
|
||||
|
||||
{if $date_on == 1 && $time_on == 1}
|
||||
<label for="delivery_date">{__ text="Data i czas"}</label>
|
||||
{else}
|
||||
|
||||
{if $date_on == 1}
|
||||
<label for="delivery_date">{__ text="Dzień dostawy"}</label>
|
||||
{/if}
|
||||
|
||||
{if $time_on == 1}
|
||||
<label for="delivery_date">{__ text="Czas dostawy"}</label>
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
|
||||
|
||||
{if $date_on == 1}
|
||||
<input name="delivery[delivery_date]" id="datepicker" readonly="readonly"/>
|
||||
{/if}
|
||||
|
||||
{if $time_on == 1}
|
||||
<input id="show24" name="delivery[delivery_time]" value="{$def_time}">
|
||||
{/if}
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
<div class="st_component-st_delivery-list">
|
||||
|
||||
<h5 class="st_title">{__ text="Dostawa"}</h5>
|
||||
<div class="st_delivery-content">
|
||||
{$date_time}
|
||||
|
||||
{if $delivery_countries}
|
||||
<div id="st_delivery-country">
|
||||
<label for="delivery_country">{__ text="Kraj dostawy"}</label>
|
||||
<select style="width: 100%;" name="delivery[country]" id="delivery_country">
|
||||
{foreach item=delivery_country from=$delivery_countries}
|
||||
{assign var=country_name value=$delivery_country->getName()}
|
||||
{assign var=country_default value=$delivery_country->getIsDefault()}
|
||||
|
||||
{if $country_default}
|
||||
<option value="{$delivery_country->getId()}" selected="selected">{$country_name}</option>
|
||||
{else}
|
||||
<option value="{$delivery_country->getId()}">{$country_name}</option>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
<ul>
|
||||
{foreach item=delivery from=$deliveries}
|
||||
{assign var=delivery_cost value=$delivery->getTotalCost(true, true)}
|
||||
{assign var=delivery_name value=$delivery->getName()}
|
||||
{assign var=delivery_description value=$delivery->getDescription()}
|
||||
{assign var=delivery_default value=$delivery->getIsDefault()}
|
||||
|
||||
<li>
|
||||
{if $delivery_default}
|
||||
<input class="st_delivery-default" type="radio" name="delivery[default_delivery]" id="delivery_default_delivery-{$delivery->getId()}" value="{$delivery->getId()}" checked="checked" />
|
||||
{else}
|
||||
<input class="st_delivery-default" type="radio" name="delivery[default_delivery]" id="delivery_default_delivery-{$delivery->getId()}" value="{$delivery->getId()}" />
|
||||
{/if}
|
||||
<div class="st_delivery-item-content">
|
||||
{if $delivery_cost != 0}
|
||||
<span class="st_delivery-cost">{$delivery_cost|st_currency_format:false}</span>
|
||||
{/if}
|
||||
<label class="st_delivery-label" for="delivery_default_delivery-{$delivery->getId()}">{$delivery_name}</label>
|
||||
{if $delivery_description}
|
||||
<p class="st_delivery-description">{$delivery_description}</p>
|
||||
{/if}
|
||||
<br class="st_clear_all" />
|
||||
</div>
|
||||
<br class="st_clear_all" />
|
||||
</li>
|
||||
{foreachelse}
|
||||
<div style="border: 1px solid #bbb; background-color: #eee; padding: 5px;">
|
||||
{if $max_order_amount_exceeded || $max_order_quantity_exceeded || $max_order_weight_exceeded}
|
||||
{__ text="Produkty w koszyku nie spełniają kryteriów dostawy. Zmniejsz ilość sztuk produktów w koszyku lub skontaktuj się ze sprzedawcą w celu ustalenia alternatywnego sposobu dostawy"}
|
||||
{else}
|
||||
{__ text="Brak zdefiniowanych dostaw lub stref w sklepie"}
|
||||
{/if}
|
||||
</div>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,41 @@
|
||||
<div class="st_component-st_delivery-list" id="st_delivery-payment_list">
|
||||
<h5 class="st_title">{__ text="Płatności"}</h5>
|
||||
<div class="st_delivery-content">
|
||||
<ul>
|
||||
{foreach item=delivery_payment from=$delivery_payments}
|
||||
{assign var=payment_cost value=$delivery_payment->getCost(true, true)}
|
||||
{assign var=payment_name value=$delivery_payment->getName()}
|
||||
{assign var=payment_description value=$delivery_payment->getDescription()}
|
||||
{assign var=payment_default value=$delivery_payment->getIsDefault()}
|
||||
{assign var=payment_id value=$delivery_payment->getId()}
|
||||
{assign var=payment_socket value=$delivery_payment->getSocketName()}
|
||||
{assign var=payment_socket_exists value=$delivery_payment->getSocketNameExists()}
|
||||
<li>
|
||||
{if $payment_default}
|
||||
<input class="st_delivery-payment_default" name="delivery[default_payment]" id="delivery_default_payment-{$payment_id}" type="radio" value="{$payment_id}" checked="checked" />
|
||||
{else}
|
||||
<input class="st_delivery-payment_default" name="delivery[default_payment]" id="delivery_default_payment-{$payment_id}" type="radio" value="{$payment_id}" />
|
||||
{/if}
|
||||
<div class="st_delivery-item-content">
|
||||
{if $payment_cost != 0}
|
||||
<span class="st_delivery-cost">+{$payment_cost|st_currency_format:false}</span>
|
||||
{/if}
|
||||
<label class="st_delivery-label" for="delivery_default_payment-{$delivery_payment->getId()}">{$payment_name}</label>
|
||||
{if $payment_description}
|
||||
<p class="st_delivery-description">{$payment_description}</p>
|
||||
{/if}
|
||||
{if $payment_socket_exists}
|
||||
<p>{st_socket name=$payment_socket type="component"}</p>
|
||||
{/if}
|
||||
<br class="st_clear_all" />
|
||||
</div>
|
||||
<br class="st_clear_all" />
|
||||
</li>
|
||||
{foreachelse}
|
||||
<div style="border: 1px solid #bbb; background-color: #eee; padding: 5px">
|
||||
{__ text="Wybrana dostawa nie posiada zdefiniowanych płatności"}
|
||||
</div>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,18 @@
|
||||
<h5 class="st_title">{__ text="Koszty"}</h5>
|
||||
<div id="st_delivery-basket_summary">
|
||||
<div class="st_delivery-basket_summaty-amount">{$basket_cost|st_currency_format}</div>
|
||||
<div class="st_delivery-basket_summaty-text">{__ text="Wartość koszyka"}:</div>
|
||||
<br class="st_clear_all"/>
|
||||
|
||||
<div class="st_delivery-basket_summaty-amount">{$delivery_cost|st_currency_format}</div>
|
||||
<div class="st_delivery-basket_summaty-text">{__ text="Koszt dostawy"}:</div>
|
||||
<br class="st_clear_all"/>
|
||||
{if $paid > 0}
|
||||
<div class="st_delivery-basket_summaty-amount">{$paid|st_currency_format}</div>
|
||||
<div class="st_delivery-basket_summaty-text">{__ text="Zapłacono"}:</div>
|
||||
<br class="st_clear_all"/>
|
||||
{/if}
|
||||
<div id="st_basket-total_amount">{$total_amount|st_currency_format}</div>
|
||||
<div id="st_basket-total_amount_text">{__ text="Razem do zapłaty"}:</div>
|
||||
<br class="st_clear_all"/>
|
||||
</div>
|
||||
Reference in New Issue
Block a user