chore: clean up code structure and remove unused code blocks

This commit is contained in:
2026-03-12 01:46:39 +01:00
parent cc9a2c2285
commit 2e297c8e7b
6 changed files with 4144 additions and 4135 deletions

View File

@@ -705,9 +705,9 @@
"translations": {}, "translations": {},
"update_price_log.csv": { "update_price_log.csv": {
"type": "-", "type": "-",
"size": 1274254, "size": 1233708,
"lmtime": 0, "lmtime": 0,
"modified": false "modified": true
}, },
"upload": {}, "upload": {},
"var": {}, "var": {},

View File

@@ -152,6 +152,7 @@ class OmnibusEuFree extends Module
{ {
$currency = $this->context->currency; $currency = $this->context->currency;
$lastMinimalPrice = $this->getLastMinimalPrice($params['product']['id_product'], $params['product']['id_product_attribute'], $currency->id); $lastMinimalPrice = $this->getLastMinimalPrice($params['product']['id_product'], $params['product']['id_product_attribute'], $currency->id);
$regularPrice = isset($params['product']['regular_price']) ? $params['product']['regular_price'] : null;
if (!empty($lastMinimalPrice)) { if (!empty($lastMinimalPrice)) {
$minimalPrice = PrestashopCompatibility::formatPrice(_PS_VERSION_, $lastMinimalPrice['price'], $currency); $minimalPrice = PrestashopCompatibility::formatPrice(_PS_VERSION_, $lastMinimalPrice['price'], $currency);
@@ -164,6 +165,7 @@ class OmnibusEuFree extends Module
'OmnibuseufreeInfoVersion' => (int) Configuration::get('OMNIBUSEUFREE_INFORMATION_VERSION', null, null, null, 2), 'OmnibuseufreeInfoVersion' => (int) Configuration::get('OMNIBUSEUFREE_INFORMATION_VERSION', null, null, null, 2),
'OmnibuseufreeProductPriceMin' => $minimalPrice, 'OmnibuseufreeProductPriceMin' => $minimalPrice,
'OmnibuseufreeProductPriceCurrent' => $params['product']['price'], 'OmnibuseufreeProductPriceCurrent' => $params['product']['price'],
'OmnibuseufreeProductPriceRegular' => $regularPrice,
'OmnibuseufreeProductDiscount' => (bool) $params['product']['has_discount'], 'OmnibuseufreeProductDiscount' => (bool) $params['product']['has_discount'],
'OmnibuseufreeNumberOfDays' => (int) Configuration::get('OMNIBUSEUFREE_DAYS', null, null, null, 30), 'OmnibuseufreeNumberOfDays' => (int) Configuration::get('OMNIBUSEUFREE_DAYS', null, null, null, 30),
]); ]);

View File

@@ -21,7 +21,7 @@
{l s='Lowest price in %d days before discount: ' sprintf=[$OmnibuseufreeNumberOfDays] mod='omnibuseufree'}<span class="presta-studio-price-history-price">{$OmnibuseufreeProductPriceMin}</span> {l s='Lowest price in %d days before discount: ' sprintf=[$OmnibuseufreeNumberOfDays] mod='omnibuseufree'}<span class="presta-studio-price-history-price">{$OmnibuseufreeProductPriceMin}</span>
{else} {else}
{* when history is empty *} {* when history is empty *}
{l s='Lowest price in %d days: ' sprintf=[$OmnibuseufreeNumberOfDays] mod='omnibuseufree'}<span class="presta-studio-price-history-price">{$OmnibuseufreeProductPriceCurrent}</span> {l s='Lowest price in %d days: ' sprintf=[$OmnibuseufreeNumberOfDays] mod='omnibuseufree'}<span class="presta-studio-price-history-price">{$OmnibuseufreeProductPriceRegular|default:$OmnibuseufreeProductPriceCurrent}</span>
{/if} {/if}
{else} {else}
{l s='Lowest price in %d days: ' sprintf=[$OmnibuseufreeNumberOfDays] mod='omnibuseufree'}<span class="presta-studio-price-history-price">{$OmnibuseufreeProductPriceMin}</span> {l s='Lowest price in %d days: ' sprintf=[$OmnibuseufreeNumberOfDays] mod='omnibuseufree'}<span class="presta-studio-price-history-price">{$OmnibuseufreeProductPriceMin}</span>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -5,9 +5,10 @@ $cGoldDark: #d3ba67;
$cBgAccent: #eff6f7; $cBgAccent: #eff6f7;
$cBone: #f6f6f6; $cBone: #f6f6f6;
$fInter: 'Inter', sans-serif; $fInter: 'Inter',
sans-serif;
body > main { body>main {
overflow-x: hidden; overflow-x: hidden;
} }
@@ -211,12 +212,10 @@ a {
background: #ffffff; background: #ffffff;
a { a {
img { img {}
}
} }
.highlighted-informations { .highlighted-informations {}
}
.product-add-to-basket { .product-add-to-basket {
display: flex; display: flex;
@@ -289,8 +288,7 @@ a {
font-weight: 700; font-weight: 700;
} }
.discount-product { .discount-product {}
}
&.product-price-discount { &.product-price-discount {
display: flex; display: flex;
@@ -386,8 +384,8 @@ a {
} }
} }
.product-images > li.thumb-container > .thumb.selected, .product-images>li.thumb-container>.thumb.selected,
.product-images > li.thumb-container > .thumb:hover { .product-images>li.thumb-container>.thumb:hover {
border-color: $cGold; border-color: $cGold;
} }
@@ -405,7 +403,7 @@ a {
body#product { body#product {
overflow-x: hidden; overflow-x: hidden;
> main { >main {
overflow: initial; overflow: initial;
} }
@@ -473,6 +471,10 @@ body#product {
gap: 10px; gap: 10px;
flex-wrap: wrap; flex-wrap: wrap;
.presta-studio-price-history {
width: 100% !important
}
.product-discount { .product-discount {
margin-bottom: 0px; margin-bottom: 0px;
@@ -720,7 +722,7 @@ body#product {
input { input {
display: none; display: none;
&:checked + span { &:checked+span {
border: 0 !important; border: 0 !important;
&::before { &::before {
@@ -940,7 +942,7 @@ body#product {
} }
} }
> .control-label { >.control-label {
display: none; display: none;
} }
@@ -951,7 +953,7 @@ body#product {
margin-bottom: 0; margin-bottom: 0;
margin-right: 16px; margin-right: 16px;
> .input-group { >.input-group {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-wrap: nowrap; flex-wrap: nowrap;
@@ -1072,7 +1074,7 @@ body#product {
row-gap: 20px; row-gap: 20px;
margin: 30px 0 0 0; margin: 30px 0 0 0;
> div, >div,
.product-delivery-tile { .product-delivery-tile {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
@@ -1172,7 +1174,7 @@ body#product {
} }
.product-customization { .product-customization {
> .card { >.card {
padding: 24px; padding: 24px;
background: #ece9e2; background: #ece9e2;
@@ -1359,6 +1361,7 @@ body#product {
} }
#product-details { #product-details {
.product-reference, .product-reference,
.product-quantities { .product-quantities {
display: none !important; display: none !important;
@@ -1402,8 +1405,7 @@ body#product {
#blockcart-modal { #blockcart-modal {
.modal-content { .modal-content {
.modal-header { .modal-header {}
}
.modal-body { .modal-body {
.product-name { .product-name {
@@ -1561,7 +1563,7 @@ body#cart {
} }
.product-card-qty { .product-card-qty {
> .input-group { >.input-group {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-wrap: nowrap; flex-wrap: nowrap;
@@ -1732,7 +1734,7 @@ body#cart {
} }
} }
> div { >div {
padding-top: 0 !important; padding-top: 0 !important;
} }
} }
@@ -1779,8 +1781,7 @@ body#cart {
} }
} }
.card-block { .card-block {}
}
.cart-overview { .cart-overview {
.cart-items { .cart-items {
@@ -2187,7 +2188,7 @@ body#checkout {
margin-bottom: 16px; margin-bottom: 16px;
background-color: #ece9e2; background-color: #ece9e2;
> .card-block { >.card-block {
padding: 24px 24px 0 24px; padding: 24px 24px 0 24px;
} }
@@ -2341,6 +2342,7 @@ body#order-confirmation {
} }
section { section {
&#content, &#content,
&#content-hook_payment_return, &#content-hook_payment_return,
&#content-hook-order-confirmation-footer { &#content-hook-order-confirmation-footer {
@@ -2397,6 +2399,7 @@ body#order-confirmation {
} }
footer#footer { footer#footer {
.footer-box-newsletter, .footer-box-newsletter,
.footer-box-services, .footer-box-services,
.footer-box-other-info { .footer-box-other-info {
@@ -2423,7 +2426,7 @@ body {
&:not(#ets_blog_page) { &:not(#ets_blog_page) {
main { main {
#left-column { #left-column {
> div.block { >div.block {
display: none !important; display: none !important;
} }
} }
@@ -2454,7 +2457,7 @@ body {
} }
ul.ets-blog-list { ul.ets-blog-list {
> li { >li {
.post-wrapper { .post-wrapper {
border-radius: 10px; border-radius: 10px;
overflow: hidden; overflow: hidden;
@@ -2503,7 +2506,7 @@ body {
} }
.ets_blog_sidebar { .ets_blog_sidebar {
> .block { >.block {
box-shadow: none !important; box-shadow: none !important;
border-radius: 10px; border-radius: 10px;
} }
@@ -2539,7 +2542,7 @@ body {
body#category { body#category {
#left-column { #left-column {
> div { >div {
border-radius: 10px; border-radius: 10px;
} }
} }
@@ -2582,6 +2585,7 @@ body#category {
} }
.data-sheet { .data-sheet {
dd, dd,
dt { dt {
font-weight: 400 !important; font-weight: 400 !important;
@@ -2610,7 +2614,7 @@ body#category {
} }
form.elementor-search { form.elementor-search {
> ul.elementor-search__products { >ul.elementor-search__products {
background: #f9f7f2; background: #f9f7f2;
border-radius: 0; border-radius: 0;
border: 1px solid rgba(17, 14, 12, 0.1); border: 1px solid rgba(17, 14, 12, 0.1);
@@ -2658,7 +2662,7 @@ body#category {
#header-menu { #header-menu {
.elementor-nav-menu { .elementor-nav-menu {
> ul { >ul {
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
width: 100%; width: 100%;
@@ -2803,15 +2807,15 @@ body#category {
} }
.home-box-1 { .home-box-1 {
> .elementor-column-wrap { >.elementor-column-wrap {
> .elementor-widget-wrap { >.elementor-widget-wrap {
display: grid; display: grid;
grid-template-columns: 7fr 5fr; grid-template-columns: 7fr 5fr;
grid-template-rows: 1fr 1fr; grid-template-rows: 1fr 1fr;
grid-template-areas: 'item1 item2' 'item1 item3'; grid-template-areas: 'item1 item2''item1 item3';
gap: 20px; gap: 20px;
> .elementor-element { >.elementor-element {
&:nth-child(1) { &:nth-child(1) {
grid-area: item1; grid-area: item1;
} }
@@ -2847,10 +2851,10 @@ body#category {
} }
} }
> .elementor-widget-container { >.elementor-widget-container {
height: 100%; height: 100%;
> .elementor-cta { >.elementor-cta {
height: 100%; height: 100%;
} }
} }
@@ -2904,8 +2908,8 @@ body#category {
background: rgba(#aa8a5e, 0.25); background: rgba(#aa8a5e, 0.25);
} }
> .elementor-container { >.elementor-container {
> .elementor-row { >.elementor-row {
align-items: center; align-items: center;
} }
} }
@@ -2938,8 +2942,8 @@ body#category {
} }
.footer-box-other-info { .footer-box-other-info {
> .elementor-container { >.elementor-container {
> .elementor-row { >.elementor-row {
column-gap: 80px; column-gap: 80px;
position: relative; position: relative;
@@ -2964,8 +2968,7 @@ article {
&.product-card { &.product-card {
.product-description { .product-description {
.product-title { .product-title {
a { a {}
}
} }
} }
} }
@@ -3154,6 +3157,7 @@ nav.breadcrumb {
} }
body#cms { body#cms {
// Disable custom footer elements // Disable custom footer elements
&.cms-id-5, &.cms-id-5,
&.cms-id-6, &.cms-id-6,
@@ -3207,7 +3211,7 @@ body#cms {
} }
#js-product-list { #js-product-list {
> .products { >.products {
row-gap: 40px; row-gap: 40px;
} }
} }
@@ -3259,7 +3263,7 @@ body#cms {
.elementor-cart__summary { .elementor-cart__summary {
border: none; border: none;
> span { >span {
margin-bottom: 5px; margin-bottom: 5px;
} }
} }
@@ -3446,7 +3450,7 @@ body#authentication {
} }
.register-form { .register-form {
> p { >p {
display: none; display: none;
} }
@@ -3537,7 +3541,7 @@ body#authentication {
.leo-top-menu { .leo-top-menu {
ul.nav.navbar-nav { ul.nav.navbar-nav {
> li { >li {
&:last-child { &:last-child {
padding-right: 0; padding-right: 0;
@@ -3560,7 +3564,7 @@ body#authentication {
align-items: center; align-items: center;
width: 100%; width: 100%;
> li { >li {
position: relative; position: relative;
// padding: 0 23.5px; // padding: 0 23.5px;
padding: 0; padding: 0;
@@ -3570,7 +3574,7 @@ body#authentication {
} }
&.promo-item { &.promo-item {
> a[href='https://masimmo.pl/promocje/'] { >a[href='https://masimmo.pl/promocje/'] {
span { span {
color: #e79332 !important; color: #e79332 !important;
} }
@@ -3584,7 +3588,7 @@ body#authentication {
} }
&:not(:first-child) { &:not(:first-child) {
> a { >a {
padding-left: 23.5px; padding-left: 23.5px;
@media (max-width: 1200px) { @media (max-width: 1200px) {
@@ -3598,7 +3602,7 @@ body#authentication {
} }
&:not(:last-child) { &:not(:last-child) {
> a { >a {
position: relative; position: relative;
padding-right: 23.5px; padding-right: 23.5px;
@@ -3624,7 +3628,7 @@ body#authentication {
} }
} }
> a { >a {
text-transform: uppercase; text-transform: uppercase;
font-weight: 600; font-weight: 600;
// padding-left: 23.5px; // padding-left: 23.5px;
@@ -3806,8 +3810,8 @@ body#authentication {
} }
.faceted-slider { .faceted-slider {
> li { >li {
> p { >p {
color: #462d26; color: #462d26;
font-family: 'Inter', sans-serif; font-family: 'Inter', sans-serif;
font-size: 14px; font-size: 14px;
@@ -3842,7 +3846,7 @@ body#authentication {
#contact { #contact {
main { main {
.container { .container {
> .row:nth-child(2) { >.row:nth-child(2) {
display: grid; display: grid;
grid-template-columns: 310px 1fr; grid-template-columns: 310px 1fr;
gap: 32px; gap: 32px;
@@ -4050,8 +4054,8 @@ body#authentication {
margin-bottom: 15px; margin-bottom: 15px;
} }
> div { >div {
> .elementor-row { >.elementor-row {
flex-wrap: nowrap; flex-wrap: nowrap;
align-items: center; align-items: center;
} }
@@ -4060,24 +4064,24 @@ body#authentication {
.header-panel-box-row-2 { .header-panel-box-row-2 {
.header-panel-box-row-2-col-1 { .header-panel-box-row-2-col-1 {
> div { >div {
> .elementor-widget-wrap { >.elementor-widget-wrap {
flex-wrap: nowrap; flex-wrap: nowrap;
align-items: center; align-items: center;
> .elementor-widget-ps-widget-module { >.elementor-widget-ps-widget-module {
margin-bottom: 0; margin-bottom: 0;
width: fit-content; width: fit-content;
} }
> .elementor-widget-ajax-search { >.elementor-widget-ajax-search {
> .elementor-widget-container { >.elementor-widget-container {
border: 1px solid #e9e3d7; border: 1px solid #e9e3d7;
min-height: 44px; min-height: 44px;
} }
form.elementor-search { form.elementor-search {
> .elementor-search__container { >.elementor-search__container {
button.elementor-search__submit { button.elementor-search__submit {
order: 1; order: 1;
} }
@@ -4115,7 +4119,7 @@ section.off-canvas-nav-megamenu {
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
> a { >a {
img { img {
width: 100%; width: 100%;
max-width: 200px; max-width: 200px;
@@ -4159,7 +4163,7 @@ section.off-canvas-nav-megamenu {
li.nav-item { li.nav-item {
&.open-sub { &.open-sub {
> a { >a {
border: none !important; border: none !important;
.menu-title { .menu-title {
@@ -4227,8 +4231,8 @@ section.off-canvas-nav-megamenu {
} }
&.promo-item { &.promo-item {
> a { >a {
> .menu-title { >.menu-title {
color: #c40000; color: #c40000;
} }
} }
@@ -4245,6 +4249,7 @@ section.off-canvas-nav-megamenu {
.dropdown-menu-inner { .dropdown-menu-inner {
.mega-col { .mega-col {
// &:not(:first-child) { // &:not(:first-child) {
.menu-title { .menu-title {
// padding-top: 20px; // padding-top: 20px;
@@ -4364,7 +4369,7 @@ form {
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
> .label { >.label {
text-align: left; text-align: left;
} }
@@ -4381,7 +4386,7 @@ form {
#moved-category-structure { #moved-category-structure {
.elementor-cta-content { .elementor-cta-content {
> div { >div {
width: 100%; width: 100%;
} }
} }
@@ -4421,8 +4426,8 @@ section#checkout-payment-step {
row-gap: 10px; row-gap: 10px;
margin-bottom: 20px; margin-bottom: 20px;
> .js-payment-option-form, >.js-payment-option-form,
> .js-additional-information { >.js-additional-information {
display: none !important; display: none !important;
} }
@@ -4482,11 +4487,11 @@ section#checkout-payment-step {
order: 103; order: 103;
} }
> .payment-option { >.payment-option {
height: 100%; height: 100%;
margin: 0 !important; margin: 0 !important;
> label { >label {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
@@ -4534,8 +4539,8 @@ section#checkout-payment-step {
} }
.navbar-nav.megamenu { .navbar-nav.megamenu {
> li:nth-child(7) { >li:nth-child(7) {
> a { >a {
color: #e79332 !important; color: #e79332 !important;
} }
} }
@@ -4545,7 +4550,7 @@ section#checkout-payment-step {
position: relative; position: relative;
margin-top: 30px; margin-top: 30px;
> .btn { >.btn {
text-transform: initial; text-transform: initial;
font-size: 14px; font-size: 14px;
font-family: 'Inter', sans-serif; font-family: 'Inter', sans-serif;
@@ -4560,6 +4565,7 @@ section#checkout-payment-step {
} }
} }
} }
#buy-by-phone-popup { #buy-by-phone-popup {
position: fixed; position: fixed;
inset: 0; inset: 0;
@@ -4700,11 +4706,12 @@ section#checkout-payment-step {
} }
.popup-body-top { .popup-body-top {
> p { >p {
&.p1 { &.p1 {
color: #e79332; color: #e79332;
} }
> a {
>a {
color: #e79332; color: #e79332;
text-decoration: underline; text-decoration: underline;
} }