From 83688004fc0e89295079fa1fad011caaa80a780e Mon Sep 17 00:00:00 2001 From: merelendor Date: Tue, 6 Dec 2022 14:30:21 +0300 Subject: [PATCH 1/2] whatsapp icon in footer --- .htaccess | 4 ---- local/templates/evolution/footer.php | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.htaccess b/.htaccess index 2871abe..16103b0 100644 --- a/.htaccess +++ b/.htaccess @@ -7413,12 +7413,8 @@ RewriteRule ^car/hyundai-santa-fe-lifestyle--plus--smart-sense-2-2-crdi-8at/$ ht RewriteRule ^car/hyundai-santa-fe-high-tech-7-mest--plus--exclusive-3-5-8at/$ https://www.evoleasing.ru/car/hyundai-santa-fe-high-tech-7-mest--plus--exclusive-3-5-8at-2018/ [R=301,NE,NC,L] RewriteRule ^car/hyundai-santa-fe-lifestyle--plus--smart-sense-2-2d-8dct/$ https://www.evoleasing.ru/car/hyundai-santa-fe-lifestyle--plus--smart-sense-2-2d-8dct-2020/ [R=301,NE,NC,L] RewriteRule ^car/hyundai-santa-fe-high-tech--plus--exclusive-3-5-8at/$ https://www.evoleasing.ru/car/hyundai-santa-fe-high-tech--plus--exclusive-3-5-8at-2020/ [R=301,NE,NC,L] -RewriteRule ^car/hyundai-solaris-super-series-ii-plus-7-display-audio-1-6-6at/$ https://www.evoleasing.ru/car/hyundai-solaris-super-series-ii-plus-7-display-audio-1-6-6at/ [R=301,NE,NC,L] -RewriteRule ^car/hyundai-solaris-super-series-ii-plus-5-audio-1-6-6mt/$ https://www.evoleasing.ru/car/hyundai-solaris-super-series-ii-plus-5-audio-1-6-6mt/ [R=301,NE,NC,L] RewriteRule ^car/hyundai-solaris-super-series--plus--winter-1-6-6mt/$ https://www.evoleasing.ru/car/hyundai-solaris-super-series--plus--winter-1-6-6mt-2017/ [R=301,NE,NC,L] RewriteRule ^car/hyundai-solaris-super-series--plus--winter-1-6-6at/$ https://www.evoleasing.ru/car/hyundai-solaris-super-series--plus--winter-1-6-6at-2017/ [R=301,NE,NC,L] -RewriteRule ^car/hyundai-solaris-super-series-ii-plus-5-audio-1-6-6at/$ https://www.evoleasing.ru/car/hyundai-solaris-super-series-ii-plus-5-audio-1-6-6at/ [R=301,NE,NC,L] -RewriteRule ^car/hyundai-solaris-super-series-ii-plus-7-display-audio-1-6-6mt/$ https://www.evoleasing.ru/car/hyundai-solaris-super-series-ii-plus-7-display-audio-1-6-6mt/ [R=301,NE,NC,L] RewriteRule ^car/hyundai-creta-black--brown--plus--winter-2-0-6at-2wd/$ https://www.evoleasing.ru/car/hyundai-creta-black--brown--plus--winter-2-0-6at-2wd-2020/ [R=301,NE,NC,L] RewriteRule ^car/hyundai-creta-black--brown--plus--winter-1-6-6at-2wd/$ https://www.evoleasing.ru/car/hyundai-creta-black--brown--plus--winter-1-6-6at-2wd-2020/ [R=301,NE,NC,L] RewriteRule ^car/hyundai-creta-black--brown--plus--winter-2-0-6at-4wd/$ https://www.evoleasing.ru/car/hyundai-creta-black--brown--plus--winter-2-0-6at-4wd-2020/ [R=301,NE,NC,L] diff --git a/local/templates/evolution/footer.php b/local/templates/evolution/footer.php index 05b4751..e192b30 100644 --- a/local/templates/evolution/footer.php +++ b/local/templates/evolution/footer.php @@ -63,6 +63,9 @@ .st117{fill:#1B92D1;} + + + From fe9945f9facf3de27338bb58bef7516f5603b414 Mon Sep 17 00:00:00 2001 From: merelendor Date: Fri, 3 Feb 2023 14:06:49 +0300 Subject: [PATCH 2/2] change car position description YEAR to MODIFICATION YEAR --- .../templates/.default/template.php | 2 +- local/hotfix_clients.php | 76 +++++++++++++++++++ 2 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 local/hotfix_clients.php diff --git a/local/components/evolution/catalog.position/templates/.default/template.php b/local/components/evolution/catalog.position/templates/.default/template.php index f8ce84d..6a6ecab 100644 --- a/local/components/evolution/catalog.position/templates/.default/template.php +++ b/local/components/evolution/catalog.position/templates/.default/template.php @@ -42,7 +42,7 @@ $this->setFrameMode(true);

Ключевые характеристики

    -
  • Год:
  • +
  • Модельный год:
  • КПП:
  • Привод:
  • Кузов:
  • diff --git a/local/hotfix_clients.php b/local/hotfix_clients.php new file mode 100644 index 0000000..ab1e6da --- /dev/null +++ b/local/hotfix_clients.php @@ -0,0 +1,76 @@ + IBLOCK_ID_CLIENTS, ]; + //$filter[' 'ASC' ], $filter, false, []); + + while ($existed_client_as_user_element = $existed_client_as_user_res->GetNextElement()) + { + $existed_client_as_user_record = $existed_client_as_user_element->GetFields(); + $existed_client_as_user_record['PROPERTIES'] = $existed_client_as_user_element->GetProperties(); + + print $existed_client_as_user_record['ID']." - ".$existed_client_as_user_record['CODE']."\n"; + + $fixed_admins = []; + $fixed_users = []; + $fix = false; + $wrong_ids = [ 124, 5077, 3899, 5141 ]; + + foreach($existed_client_as_user_record['PROPERTIES']['ADMINS']['VALUE'] AS $k => $v) + { + print $v."\n"; + if(!in_array($v, $wrong_ids)) + { + array_push($fixed_admins, $v); + } + else + { + $fix = true; + } + } + + foreach($existed_client_as_user_record['PROPERTIES']['USERS']['VALUE'] AS $k => $v) + { + print $v."\n"; + if(!in_array($v, $wrong_ids)) + { + array_push($fixed_users, $v); + } + else + { + $fix = true; + } + } + + if($fix) + { + print_r($fixed_admins)."\n"; + print_r($fixed_users)."\n"; + + print "--------------\n"; + + print "UPDATE!"; + CIBlockElement::SetPropertyValuesEx($existed_client_as_user_record['ID'], IBLOCK_ID_CLIENTS, [ "ADMINS" => $fixed_admins, "USERS" => $fixed_users, ], []); + } + else + { + print "ALL GOOD"; + } + } +} + +die(); \ No newline at end of file