This commit is contained in:
Roman Pyrih
2025-06-27 10:06:12 +02:00
parent c364a3f21b
commit 519cb8f5ea
8 changed files with 4588 additions and 4457 deletions

View File

@@ -115,6 +115,7 @@ let PdProductAttributesList = {
Object.entries(resp).forEach(([k, v]) => { Object.entries(resp).forEach(([k, v]) => {
if (v.response) { if (v.response) {
if (v.id_product_attribute > 0) { if (v.id_product_attribute > 0) {
console.log('click1')
message_ok = message_ok =
pdproductattributeslist_product + pdproductattributeslist_product +
'<b> ' + '<b> ' +
@@ -131,6 +132,7 @@ let PdProductAttributesList = {
duration: 1000, duration: 1000,
}) })
} else { } else {
console.log('click2')
message_ok = message_ok =
pdproductattributeslist_product + pdproductattributeslist_product +
'<b> ' + '<b> ' +
@@ -145,6 +147,7 @@ let PdProductAttributesList = {
} }
} else if (v.response == false) { } else if (v.response == false) {
if (v.id_product_attribute > 0) { if (v.id_product_attribute > 0) {
console.log('click3')
message_error = message_error =
pdproductattributeslist_product + pdproductattributeslist_product +
'<b> ' + '<b> ' +
@@ -165,6 +168,7 @@ let PdProductAttributesList = {
duration: 1000, duration: 1000,
}) })
} else { } else {
console.log('click4')
message_error = message_error =
pdproductattributeslist_product + pdproductattributeslist_product +
'<b> ' + '<b> ' +
@@ -178,7 +182,7 @@ let PdProductAttributesList = {
$.growl.error({ $.growl.error({
title: pdproductattributeslist_title_error, title: pdproductattributeslist_title_error,
message: message_error, message: message_error,
duration: 1000, duration: 5000,
}) })
} }
} }
@@ -219,6 +223,7 @@ let PdProductAttributesList = {
$.growl.error({ $.growl.error({
title: pdproductattributeslist_title_error, title: pdproductattributeslist_title_error,
message: pdproductattributeslist_add_error, message: pdproductattributeslist_add_error,
duration: 5000,
}) })
} }
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -96,7 +96,7 @@ div.cus-sticky {
} }
li[data-depth='0'] { li[data-depth='0'] {
>a { > a {
text-transform: uppercase !important; text-transform: uppercase !important;
} }
} }
@@ -247,7 +247,7 @@ div.cus-sticky {
justify-content: space-between; justify-content: space-between;
margin-top: 12px !important; margin-top: 12px !important;
>div { > div {
width: calc(33.333% - 5px); width: calc(33.333% - 5px);
} }
} }
@@ -322,7 +322,6 @@ div.cus-sticky {
} }
.hp_bottom_text { .hp_bottom_text {
h1, h1,
h2 { h2 {
font-size: 1.1rem; font-size: 1.1rem;
@@ -427,7 +426,7 @@ div.cus-sticky {
margin-bottom: 15px !important; margin-bottom: 15px !important;
} }
.product-variants>.product-variants-item { .product-variants > .product-variants-item {
margin: 0 0 10px; margin: 0 0 10px;
} }
@@ -522,7 +521,7 @@ div.cus-sticky {
@media (min-width: 992px) and (max-width: 1200px) { @media (min-width: 992px) and (max-width: 1200px) {
display: grid; display: grid;
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
grid-template-areas: 'logo info''menu menu'; grid-template-areas: 'logo info' 'menu menu';
.col-logo { .col-logo {
min-width: fit-content; min-width: fit-content;
@@ -532,7 +531,7 @@ div.cus-sticky {
} }
} }
.leo-megamenu .navbar-nav>li>a { .leo-megamenu .navbar-nav > li > a {
@media (min-width: 1200px) and (max-width: 1400px) { @media (min-width: 1200px) and (max-width: 1400px) {
padding: 30px 7px; padding: 30px 7px;
} }
@@ -550,7 +549,8 @@ label[for='use_same_address'] {
display: none !important; display: none !important;
} }
a[href="https://redline.com.pl/pl/zamówienie?newAddress=invoice"] { a[href="https://redline.com.pl/pl/zamówienie?newAddress=invoice"]
{
display: none !important; display: none !important;
} }
@@ -642,7 +642,6 @@ a[href="https://redline.com.pl/pl/zamówienie?newAddress=invoice"] {
#pdproductattributeslist_table { #pdproductattributeslist_table {
thead { thead {
tr { tr {
th:nth-child(3), th:nth-child(3),
th:nth-child(4), th:nth-child(4),
th:nth-child(5) { th:nth-child(5) {
@@ -652,3 +651,17 @@ a[href="https://redline.com.pl/pl/zamówienie?newAddress=invoice"] {
} }
} }
} }
#blockcart-modal {
&.fade-out {
animation: fadeOut 0.5s ease forwards;
}
@keyframes fadeOut {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -22,28 +22,33 @@
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA * International Registered Trademark & Property of PrestaShop SA
*} *}
<div id="blockcart-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div id="blockcart-modal" class="modal fade 1111" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
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">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> <button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true"><i class="material-icons">close</i></span> <span aria-hidden="true"><i class="material-icons">close</i></span>
</button> </button>
<h4 class="modal-title h6 text-sm-center" id="myModalLabel"><i class="material-icons rtl-no-flip">&#xE876;</i>{l s='Product successfully added to your shopping cart' d='Shop.Theme.Checkout'}</h4> <h4 class="modal-title h6 text-sm-center" id="myModalLabel"><i
class="material-icons rtl-no-flip">&#xE876;</i>{l s='Product successfully added to your shopping cart' d='Shop.Theme.Checkout'}
</h4>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<div class="row"> <div class="row">
<div class="col-md-5 divide-right"> <div class="col-md-5 divide-right">
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
<img class="lazy product-image" data-src="{$product.cover.medium.url}" alt="{$product.cover.legend}" title="{$product.cover.legend}" itemprop="image"> <img class="lazy product-image" data-src="{$product.cover.medium.url}" alt="{$product.cover.legend}"
title="{$product.cover.legend}" itemprop="image">
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<h6 class="h6 product-name">{$product.name}</h6> <h6 class="h6 product-name">{$product.name}</h6>
<p class="product-price">{$product.price}</p> <p class="product-price">{$product.price}</p>
{hook h='displayProductPriceBlock' product=$product type="unit_price"} {hook h='displayProductPriceBlock' product=$product type="unit_price"}
{foreach from=$product.attributes item="property_value" key="property"} {foreach from=$product.attributes item="property_value" key="property"}
<span>{l s='%label%:' sprintf=['%label%' => $property] d='Shop.Theme.Global'}<strong> {$property_value}</strong></span><br> <span>{l s='%label%:' sprintf=['%label%' => $property] d='Shop.Theme.Global'}<strong>
{$property_value}</strong></span><br>
{/foreach} {/foreach}
<span>{l s='Quantity:' d='Shop.Theme.Checkout'}&nbsp;<strong>{$product.cart_quantity}</strong></span> <span>{l s='Quantity:' d='Shop.Theme.Checkout'}&nbsp;<strong>{$product.cart_quantity}</strong></span>
</div> </div>
@@ -52,12 +57,19 @@
<div class="col-md-7"> <div class="col-md-7">
<div class="cart-content"> <div class="cart-content">
{if $cart.products_count > 1} {if $cart.products_count > 1}
<p class="cart-products-count">{l s='There are %products_count% items in your cart.' sprintf=['%products_count%' => $cart.products_count] d='Shop.Theme.Checkout'}</p> <p class="cart-products-count">
{l s='There are %products_count% items in your cart.' sprintf=['%products_count%' => $cart.products_count] d='Shop.Theme.Checkout'}
</p>
{else} {else}
<p class="cart-products-count">{l s='There is %product_count% item in your cart.' sprintf=['%product_count%' =>$cart.products_count] d='Shop.Theme.Checkout'}</p> <p class="cart-products-count">
{l s='There is %product_count% item in your cart.' sprintf=['%product_count%' =>$cart.products_count] d='Shop.Theme.Checkout'}
</p>
{/if} {/if}
<p><span class="label">{l s='Subtotal:' d='Shop.Theme.Checkout'}</span>&nbsp;<span class="value">{$cart.subtotals.products.value}</span></p> <p><span class="label">{l s='Subtotal:' d='Shop.Theme.Checkout'}</span>&nbsp;<span
<p><span>{l s='Shipping:' d='Shop.Theme.Checkout'}</span>&nbsp;<span class="value">{$cart.subtotals.shipping.value} {hook h='displayCheckoutSubtotalDetails' subtotal=$cart.subtotals.shipping}</span></p> class="value">{$cart.subtotals.products.value}</span></p>
<p><span>{l s='Shipping:' d='Shop.Theme.Checkout'}</span>&nbsp;<span
class="value">{$cart.subtotals.shipping.value}
{hook h='displayCheckoutSubtotalDetails' subtotal=$cart.subtotals.shipping}</span></p>
{assign var='freeshipping_price' value=Configuration::get('PS_SHIPPING_FREE_PRICE')} {assign var='freeshipping_price' value=Configuration::get('PS_SHIPPING_FREE_PRICE')}
{if $freeshipping_price} {if $freeshipping_price}
@@ -66,25 +78,37 @@
{if $remaining_to_spend > 0} {if $remaining_to_spend > 0}
<div class="leo_free_price"> <div class="leo_free_price">
{assign var=currency value=Context::getContext()->currency} {assign var=currency value=Context::getContext()->currency}
<p>{l s='Spent' d='Shop.Theme.Global'} <strong>{Tools::displayPrice($remaining_to_spend,$currency)}</strong>, {l s='To get free ship!' d='Shop.Theme.Global'}</p> <p>{l s='Spent' d='Shop.Theme.Global'}
<strong>{Tools::displayPrice($remaining_to_spend,$currency)}</strong>,
{l s='To get free ship!' d='Shop.Theme.Global'}
</p>
</div> </div>
{/if} {/if}
{/if} {/if}
{if !$configuration.display_prices_tax_incl && $configuration.taxes_enabled} {if !$configuration.display_prices_tax_incl && $configuration.taxes_enabled}
<p><span>{$cart.totals.total.label}&nbsp;{$cart.labels.tax_short}</span>&nbsp;<span>{$cart.totals.total.value}</span></p> <p>
<p class="product-total"><span class="label">{$cart.totals.total_including_tax.label}</span>&nbsp;<span class="value">{$cart.totals.total_including_tax.value}</span></p> <span>{$cart.totals.total.label}&nbsp;{$cart.labels.tax_short}</span>&nbsp;<span>{$cart.totals.total.value}</span>
</p>
<p class="product-total"><span class="label">{$cart.totals.total_including_tax.label}</span>&nbsp;<span
class="value">{$cart.totals.total_including_tax.value}</span></p>
{else} {else}
<p class="product-total"><span class="label">{$cart.totals.total.label}&nbsp;{if $configuration.taxes_enabled}{$cart.labels.tax_short}{/if}</span>&nbsp;<span class="value">{$cart.totals.total.value}</span></p> <p class="product-total"><span
class="label">{$cart.totals.total.label}&nbsp;{if $configuration.taxes_enabled}{$cart.labels.tax_short}{/if}</span>&nbsp;<span
class="value">{$cart.totals.total.value}</span></p>
{/if} {/if}
{if $cart.subtotals.tax} {if $cart.subtotals.tax}
<p class="product-tax">{l s='%label%:' sprintf=['%label%' => $cart.subtotals.tax.label] d='Shop.Theme.Global'}&nbsp;<span class="value">{$cart.subtotals.tax.value}</span></p> <p class="product-tax">
{l s='%label%:' sprintf=['%label%' => $cart.subtotals.tax.label] d='Shop.Theme.Global'}&nbsp;<span
class="value">{$cart.subtotals.tax.value}</span></p>
{/if} {/if}
<div class="cart-content-btn"> <div class="cart-content-btn">
<button type="button" class="btn btn-secondary" data-dismiss="modal">{l s='Continue shopping' d='Shop.Theme.Actions'}</button> <button type="button" class="btn btn-secondary"
<a href="{$cart_url}" class="btn btn-primary"><i class="material-icons rtl-no-flip">&#xE876;</i>{l s='Proceed to checkout' d='Shop.Theme.Actions'}</a> data-dismiss="modal">{l s='Continue shopping' d='Shop.Theme.Actions'}</button>
<a href="{$cart_url}" class="btn btn-primary"><i
class="material-icons rtl-no-flip">&#xE876;</i>{l s='Proceed to checkout' d='Shop.Theme.Actions'}</a>
</div> </div>
</div> </div>
</div> </div>