This commit is contained in:
Roman Pyrih
2025-06-03 13:05:55 +02:00
parent 4e05b19379
commit 36f17c145b
7 changed files with 143 additions and 96 deletions

View File

@@ -14,11 +14,17 @@
<span class="notification-title"><i class="material-icons">&#xE876;</i></span> <span class="notification-title"><i class="material-icons">&#xE876;</i></span>
*} *}
<strong class="noti product-name"></strong> <strong class="noti product-name"></strong>
<span class="noti noti-update">{l s='The product has been updated in your shopping cart' mod='leofeature'}</span> <span
<span class="noti noti-delete">{l s='The product has been removed from your shopping cart' mod='leofeature'}</span> class="noti noti-update">{l s='The product has been updated in your shopping cart' mod='leofeature'}</span>
<span class="noti noti-add"><strong class="noti-special"></strong> {l s='Product successfully added to your shopping cart' mod='leofeature'}</span> <span
class="noti noti-delete">{l s='The product has been removed from your shopping cart' mod='leofeature'}</span>
<span class="noti noti-add">
<strong class="noti-special"></strong>
<br />
{l s='Product successfully added to your shopping cart' mod='leofeature'}
</span>
<span class="notification-close">X</span> <span class="notification-close">X</span>
</div> </div>
</div> </div>
</div> </div>
@@ -28,13 +34,14 @@
{* {*
<span class="notification-title"><i class="material-icons">&#xE611;</i></span> <span class="notification-title"><i class="material-icons">&#xE611;</i></span>
*} *}
<span class="noti noti-update">{l s='Error updating' mod='leofeature'}</span> <span class="noti noti-update">{l s='Error updating' mod='leofeature'}</span>
<span class="noti noti-delete">{l s='Error deleting' mod='leofeature'}</span> <span class="noti noti-delete">{l s='Error deleting' mod='leofeature'}</span>
<span class="noti noti-add">{l s='Error adding. Please go to product detail page and try again' mod='leofeature'}</span> <span
class="noti noti-add">{l s='Error adding. Please go to product detail page and try again' mod='leofeature'}</span>
<span class="notification-close">X</span> <span class="notification-close">X</span>
</div> </div>
</div> </div>
</div> </div>
@@ -44,11 +51,12 @@
{* {*
<span class="notification-title"><i class="material-icons">&#xE645;</i></span> <span class="notification-title"><i class="material-icons">&#xE645;</i></span>
*} *}
<span class="noti noti-min">{l s='The minimum purchase order quantity for the product is' mod='leofeature'} <strong class="noti-special"></strong></span> <span class="noti noti-min">{l s='The minimum purchase order quantity for the product is' mod='leofeature'}
<strong class="noti-special"></strong></span>
<span class="noti noti-max">{l s='There are not enough products in stock' mod='leofeature'}</span> <span class="noti noti-max">{l s='There are not enough products in stock' mod='leofeature'}</span>
<span class="notification-close">X</span> <span class="notification-close">X</span>
</div> </div>
</div> </div>
</div> </div>
@@ -59,9 +67,9 @@
<span class="notification-title"><i class="material-icons">&#xE88F;</i></span> <span class="notification-title"><i class="material-icons">&#xE88F;</i></span>
*} *}
<span class="noti noti-check">{l s='You must enter a quantity' mod='leofeature'}</span> <span class="noti noti-check">{l s='You must enter a quantity' mod='leofeature'}</span>
<span class="notification-close">X</span> <span class="notification-close">X</span>
</div> </div>
</div> </div>
</div> </div>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -5691,3 +5691,26 @@ body {
} }
} }
} }
.card > .checkout {
.btn.btn-primary {
text-wrap: auto;
}
}
#promo-code {
.promo-code {
form {
@media (max-width: 400px) {
.promo-input {
width: 100%;
}
.btn.btn-primary {
top: 0;
margin-top: 10px;
width: 100%;
}
}
}
}
}

View File

@@ -30,15 +30,26 @@
</div> </div>
<div class="media-body"> <div class="media-body">
<span class="product-name">{$product.name}</span> <span class="product-name">{$product.name}</span>
<span class="product-quantity">x{$product.quantity}</span> {* <span class="product-quantity">x{$product.quantity}</span> *}
<span class="product-price float-xs-right">{$product.price}</span> {* <span class="product-price float-xs-right">{$product.price}</span> *}
<div class="product-line-info product-line-info-secondary text-muted">
<span class="label">ILOŚĆ:</span>
<span class="value"><strong>{$product.quantity}</strong></span>
</div>
<div class="product-line-info product-line-info-secondary text-muted">
<span class="label">CENA POJEDYNCZA:</span>
<span class="value"><strong>{$product.price}</strong></span>
</div>
{hook h='displayProductPriceBlock' product=$product type="unit_price"} {hook h='displayProductPriceBlock' product=$product type="unit_price"}
{foreach from=$product.attributes key="attribute" item="value"} {foreach from=$product.attributes key="attribute" item="value"}
<div class="product-line-info product-line-info-secondary text-muted"> <div class="product-line-info product-line-info-secondary text-muted">
<span class="label">{$attribute}:</span> <span class="label">{$attribute}:</span>
<span class="value">{$value}</span> <span class="value"><strong>{$value}</strong></span>
</div> </div>
{/foreach} {/foreach}
<br/> <br />
</div> </div>
{/block} {/block}

View File

@@ -41,13 +41,15 @@
<div class="col-sm-4 col-xs-9 details"> <div class="col-sm-4 col-xs-9 details">
{if $add_product_link}<a href="{$product.url}" target="_blank">{/if} {if $add_product_link}<a href="{$product.url}" target="_blank">{/if}
<span>{$product.name}</span> <span>{$product.name}</span>
{if $add_product_link}</a>{/if} {if $add_product_link}</a>{/if}
{if is_array($product.customizations) && $product.customizations|count} {if is_array($product.customizations) && $product.customizations|count}
{foreach from=$product.customizations item="customization"} {foreach from=$product.customizations item="customization"}
<div class="customizations"> <div class="customizations">
<a href="#" data-toggle="modal" data-target="#product-customizations-modal-{$customization.id_customization}">{l s='Product customization' d='Shop.Theme.Catalog'}</a> <a href="#" data-toggle="modal"
data-target="#product-customizations-modal-{$customization.id_customization}">{l s='Product customization' d='Shop.Theme.Catalog'}</a>
</div> </div>
<div class="modal fade customization-modal" id="product-customizations-modal-{$customization.id_customization}" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal fade customization-modal" id="product-customizations-modal-{$customization.id_customization}"
tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog" role="document"> <div class="modal-dialog" role="document">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
@@ -85,7 +87,8 @@
</div> </div>
<div class="col-sm-6 col-xs-12 qty"> <div class="col-sm-6 col-xs-12 qty">
<div class="row"> <div class="row">
<div class="col-xs-5 text-sm-right text-xs-left">{$product.price}</div> {* <div class="col-xs-5 text-sm-right text-xs-left">{$product.price}</div> *}
<div class="col-xs-5 text-sm-right text-xs-left"></div>
<div class="col-xs-2">{$product.quantity}</div> <div class="col-xs-2">{$product.quantity}</div>
<div class="col-xs-5 text-xs-right bold">{$product.total}</div> <div class="col-xs-5 text-xs-right bold">{$product.total}</div>
</div> </div>
@@ -104,12 +107,12 @@
</tr> </tr>
{/if} {/if}
{/foreach} {/foreach}
{if $subtotals.tax.label !== null} {* {if $subtotals.tax.label !== null}
<tr class="sub"> <tr class="sub">
<td>{$subtotals.tax.label}</td> <td>{$subtotals.tax.label}</td>
<td>{$subtotals.tax.value}</td> <td>{$subtotals.tax.value}</td>
</tr> </tr>
{/if} {/if} *}
<tr class="font-weight-bold"> <tr class="font-weight-bold">
<td><span class="text-uppercase">{$totals.total.label}</span> {$labels.tax_short}</td> <td><span class="text-uppercase">{$totals.total.label}</span> {$labels.tax_short}</td>
<td>{$totals.total.value}</td> <td>{$totals.total.value}</td>
@@ -118,4 +121,4 @@
{/block} {/block}
</div> </div>
</div> </div>

View File

@@ -5,80 +5,82 @@
* @copyright Apollotheme * @copyright Apollotheme
* @description: ApPageBuilder is module help you can build content for your shop * @description: ApPageBuilder is module help you can build content for your shop
*} *}
{extends file='page.tpl'} {extends file='page.tpl'}
{block name='page_content_container' prepend} {block name='page_content_container' prepend}
<section id="content-hook_order_confirmation" class="card"> <section id="content-hook_order_confirmation" class="card">
<div class="card-block"> <div class="card-block">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
{block name='order_confirmation_header'} {block name='order_confirmation_header'}
<h3 class="h1 card-title"> <h3 class="h1 card-title">
<i class="material-icons rtl-no-flip done">&#xE876;</i>{l s='Your order is confirmed' <i class="material-icons rtl-no-flip done">&#xE876;</i>{l s='Your order is confirmed'
d='Shop.Theme.Checkout'} d='Shop.Theme.Checkout'}
</h3> </h3>
{/block} {/block}
<p> <p>
{l s='An email has been sent to your mail address %email%.' d='Shop.Theme.Checkout' sprintf=['%email%' => {l s='An email has been sent to your mail address %email%.' d='Shop.Theme.Checkout' sprintf=['%email%' =>
$customer.email]} $customer.email]}
{if $order.details.invoice_url} {if $order.details.invoice_url}
{* [1][/1] is for a HTML tag. *} {* [1][/1] is for a HTML tag. *}
{l {l
s='You can also [1]download your invoice[/1]' s='You can also [1]download your invoice[/1]'
d='Shop.Theme.Checkout' d='Shop.Theme.Checkout'
sprintf=[ sprintf=[
'[1]' => "<a href='{$order.details.invoice_url}'>", '[1]' => "<a href='{$order.details.invoice_url}'>",
'[/1]' => "</a>" '[/1]' => "</a>"
] ]
} }
{/if} {/if}
</p> </p>
{block name='hook_order_confirmation'} {block name='hook_order_confirmation'}
{$HOOK_ORDER_CONFIRMATION nofilter} {$HOOK_ORDER_CONFIRMATION nofilter}
{/block} {/block}
</div> </div>
</div> </div>
</div> </div>
</section> </section>
{/block} {/block}
{block name='page_content_container'} {block name='page_content_container'}
<section id="content" class="page-content page-order-confirmation card"> <section id="content" class="page-content page-order-confirmation card">
<div class="card-block"> <div class="card-block">
<div class="row"> <div class="row">
{block name='order_confirmation_table'} {block name='order_confirmation_table'}
{include {include
file='checkout/_partials/order-confirmation-table.tpl' file='checkout/_partials/order-confirmation-table.tpl'
products=$order.products products=$order.products
subtotals=$order.subtotals subtotals=$order.subtotals
totals=$order.totals totals=$order.totals
labels=$order.labels labels=$order.labels
add_product_link=false add_product_link=false
} }
{/block} {/block}
{block name='order_details'} {block name='order_details'}
<iframe src="https://alerabat.go2cloud.org/aff_l?offer_id=367&adv_sub={$order.details.reference}&amount={$total_paid_tax_excl}" scrolling="no" frameborder="0" width="1" height="1"></iframe> <iframe
src="https://alerabat.go2cloud.org/aff_l?offer_id=367&adv_sub={$order.details.reference}&amount={$total_paid_tax_excl}"
scrolling="no" frameborder="0" width="1" height="1"></iframe>
<!-- // End Offer Conversion --> <!-- // End Offer Conversion -->
<div id="order-details" class="col-md-4"> <div id="order-details" class="col-md-4">
<h3 class="h3 card-title">{l s='Order details' d='Shop.Theme.Checkout'}:</h3> <h3 class="h3 card-title">{l s='Order details' d='Shop.Theme.Checkout'}:</h3>
<ul> <ul>
<li>{l s='Order reference: %reference%' d='Shop.Theme.Checkout' sprintf=['%reference%' => <li>{l s='Order reference: %reference%' d='Shop.Theme.Checkout' sprintf=['%reference%' =>
$order.details.reference]}</li> $order.details.reference]}</li>
<li>{l s='Payment method: %method%' d='Shop.Theme.Checkout' sprintf=['%method%' => $order.details.payment]} <li>{l s='Payment method: %method%' d='Shop.Theme.Checkout' sprintf=['%method%' => $order.details.payment]}
</li> </li>
{if !$order.details.is_virtual} {if !$order.details.is_virtual}
<li> <li>
{l s='Shipping method: %method%' d='Shop.Theme.Checkout' sprintf=['%method%' => $order.carrier.name]}<br> {l s='Shipping method: %method%' d='Shop.Theme.Checkout' sprintf=['%method%' => $order.carrier.name]}<br>
<em>{$order.carrier.delay}</em> <em>{$order.carrier.delay}</em>
</li> </li>
{/if} {/if}
</ul> </ul>
</div> </div>
{/block} {/block}
</div> </div>
@@ -86,37 +88,37 @@
</section> </section>
{block name='hook_payment_return'} {block name='hook_payment_return'}
{if ! empty($HOOK_PAYMENT_RETURN)} {if ! empty($HOOK_PAYMENT_RETURN)}
<section id="content-hook_payment_return" class="card definition-list"> <section id="content-hook_payment_return" class="1 card definition-list">
<div class="card-block"> <div class="card-block">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
{$HOOK_PAYMENT_RETURN nofilter} {$HOOK_PAYMENT_RETURN nofilter}
</div>
</div>
</div> </div>
</div> </section>
</div> {/if}
</section>
{/if}
{/block} {/block}
{block name='customer_registration_form'} {block name='customer_registration_form'}
{if $customer.is_guest} {if $customer.is_guest}
<div id="registration-form" class="card"> <div id="registration-form" class="card">
<div class="card-block"> <div class="card-block">
<h4 class="h4">{l s='Save time on your next order, sign up now' d='Shop.Theme.Checkout'}</h4> <h4 class="h4">{l s='Save time on your next order, sign up now' d='Shop.Theme.Checkout'}</h4>
{render file='customer/_partials/customer-form.tpl' ui=$register_form} {render file='customer/_partials/customer-form.tpl' ui=$register_form}
</div> </div>
</div> </div>
{/if} {/if}
{/block} {/block}
{block name='hook_order_confirmation_1'} {block name='hook_order_confirmation_1'}
{hook h='displayOrderConfirmation1'} {hook h='displayOrderConfirmation1'}
{/block} {/block}
{block name='hook_order_confirmation_2'} {block name='hook_order_confirmation_2'}
<section id="content-hook-order-confirmation-footer"> <section id="content-hook-order-confirmation-footer">
{hook h='displayOrderConfirmation2'} {hook h='displayOrderConfirmation2'}
</section> </section>
{/block} {/block}
{/block} {/block}