This commit is contained in:
2025-05-22 16:08:30 +02:00
5 changed files with 170 additions and 14 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -103,7 +103,8 @@ p {
._btn3 {
margin: 0 !important;
padding: 0 !important;
// padding: 0 !important;
padding: 14px !important;
border: none !important;
background: #c1994c !important;
border-radius: 10px;
@@ -119,8 +120,8 @@ p {
font-size: 14px !important;
font-weight: 700 !important;
line-height: 21px !important;
padding: 14px !important;
text-transform: capitalize;
padding: 0;
}
}
@@ -250,16 +251,24 @@ p {
border-radius: 10px !important;
padding: 10px 15px !important;
&.alert-info {
p {
color: $cBlack;
}
button.close {
color: $cBlack;
}
}
background-color: $cGolden !important;
border-color: $cGolden !important;
// &.alert-info {
// p {
// color: $cBlack;
// }
// button.close {
// color: $cBlack;
// }
// }
p,
span {
color: #fff !important;
}
button.close {
color: #fff;
top: 50% !important;
transform: translateY(-50%) !important;
}
@@ -992,7 +1001,7 @@ header {
img {
width: 100%;
max-width: 100px;
max-width: 130px;
}
}
@@ -1098,6 +1107,12 @@ div.menu {
padding-right: 0;
}
}
&.current {
a {
color: $cGold;
}
}
h3 {
margin: 0;
}
@@ -1128,6 +1143,70 @@ div.menu {
}
}
}
> a {
font-size: 60px;
}
&.small-menu {
img {
display: inline-block;
width: 100%;
max-width: 25px;
height: 25px;
filter: invert(0.9);
}
a {
padding: 0.18em 0;
&::before {
display: none !important;
}
}
}
&.small-panel {
img {
display: inline-block;
width: 100%;
max-width: 20px;
height: 20px;
filter: invert(0.9);
}
}
&.small-cart {
img {
display: inline-block;
width: 100%;
max-width: 20px;
height: 20px;
filter: invert(0.9);
}
a {
&::after {
display: none !important;
}
}
span {
position: absolute;
background-color: #b79e5f;
color: #000;
font-family: $fScandia;
justify-content: center;
align-content: center;
// top: -5px;
// left: 14px;
top: 5px;
left: 56%;
font-size: 12px;
border-radius: 100px;
padding: 4px 6px 3px 6px;
line-height: 10px;
font-weight: bold;
}
}
}
}
}
@@ -1510,6 +1589,7 @@ body.shop_product {
display: flex;
flex-direction: row;
align-items: center;
flex-wrap: wrap;
.vote-message {
color: #747480;
@@ -1560,7 +1640,8 @@ body.shop_product {
flex-direction: row;
gap: 10px;
color: $cRed;
// color: $cRed;
color: $cTxtWhite;
font-size: 20px;
font-family: $fScandia;
font-weight: 500;
@@ -2767,3 +2848,20 @@ body.shop_infopage {
}
}
}
#rwd-menu {
width: 100%;
> li {
&:nth-child(1) {
display: none !important;
}
&:nth-child(2) {
display: none !important;
}
}
}
.js__search-mobile-btn {
display: none !important;
}

View File

@@ -0,0 +1,56 @@
<?php
// Pobranie pliku XML
$url = 'https://feed.syntogether.com/skroutz/xml?shop=ac8a92-2.myshopify.com';
$xmlContent = file_get_contents($url);
if ($xmlContent === false) {
die("Nie udało się pobrać XML.");
}
// Wczytanie XML
$doc = new DOMDocument();
$doc->loadXML($xmlContent);
$xpath = new DOMXPath($doc);
$newDoc = new DOMDocument('1.0', 'UTF-8');
$newDoc->formatOutput = true;
$root = $newDoc->createElement('products');
$root->setAttribute('xmlns:g', 'http://base.google.com/ns/1.0'); // dodanie namespace dla g:
$newDoc->appendChild($root);
// Iteracja po produktach
foreach ($xpath->query('//product') as $product) {
$newProduct = $newDoc->createElement('product');
// Mapa znaczników ze starego na nowy
$fields = [
'id' => 'g:id',
'name' => 'title',
'link' => 'link',
'image' => 'g:image_link',
'mpn' => 'g:mpn',
'manufacturer' => 'g:brand',
'category' => 'g:product_type'
];
foreach ($fields as $tag => $newTag) {
$element = $xpath->query($tag, $product)->item(0);
if ($element) {
$value = trim($element->textContent);
$newProduct->appendChild($newDoc->createElement($newTag, $value));
}
}
// Dodaj gtin z pola <ean>
$eanElement = $xpath->query('ean', $product)->item(0);
$gtinValue = $eanElement ? trim($eanElement->textContent) : '';
$newProduct->appendChild($newDoc->createElement('g:gtin', $gtinValue));
$root->appendChild($newProduct);
}
// Zapis pliku XML
$newDoc->save('ekomi-feed.xml');
// Komunikat
echo 'Zapisano plik https://cdn.projectpro.pl/magiczne-perfumy.pl/ekomi-feed.xml';