chore: clean up code structure and remove unused code blocks
This commit is contained in:
4
.vscode/ftp-kr.sync.cache.json
vendored
4
.vscode/ftp-kr.sync.cache.json
vendored
@@ -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": {},
|
||||||
|
|||||||
@@ -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),
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -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
@@ -5,7 +5,8 @@ $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;
|
||||||
@@ -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;
|
||||||
|
|
||||||
@@ -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 {
|
||||||
@@ -1779,8 +1781,7 @@ body#cart {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-block {
|
.card-block {}
|
||||||
}
|
|
||||||
|
|
||||||
.cart-overview {
|
.cart-overview {
|
||||||
.cart-items {
|
.cart-items {
|
||||||
@@ -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 {
|
||||||
@@ -2582,6 +2585,7 @@ body#category {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.data-sheet {
|
.data-sheet {
|
||||||
|
|
||||||
dd,
|
dd,
|
||||||
dt {
|
dt {
|
||||||
font-weight: 400 !important;
|
font-weight: 400 !important;
|
||||||
@@ -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,
|
||||||
@@ -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;
|
||||||
@@ -4560,6 +4565,7 @@ section#checkout-payment-step {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#buy-by-phone-popup {
|
#buy-by-phone-popup {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
@@ -4704,6 +4710,7 @@ section#checkout-payment-step {
|
|||||||
&.p1 {
|
&.p1 {
|
||||||
color: #e79332;
|
color: #e79332;
|
||||||
}
|
}
|
||||||
|
|
||||||
>a {
|
>a {
|
||||||
color: #e79332;
|
color: #e79332;
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
|
|||||||
Reference in New Issue
Block a user