This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* 1. записывать в куки виды текущего пользователя | |
* 2. Создать собственную сущность c записью форматированный либо расширенной информации от пользователя через ORM | |
* 3. На эвенте "оформление заказа" либо "отправка письма менеджеру после оформления заказа" | |
* генерировать список просмотренных страниц CListPageUserVisited->getListPages() | |
*/ | |
use Bitrix\Sale; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Решение, когда ИД - это баркод+код1с. Почему? Один баркод это один ценник. Много штрихкодов на один товар, поэтому баркод+код1с. | |
Синхронизация по группам и получение данных из 1с, а ровно как обработка ошибок не помещается в этом gist. Понадобится - свяжитесь со мной. Если через e-mail, шлите месседж с уведомлением, что прочитано. Ну очень много спама, а я не такой прыткий, везде не успеваю. В июне 2021 у меня был телеграм @skylinkfetch | |
Для здешних сваггеров берите прогу Insomnia, а API коды тут - неактуальные. | |
if id1c not foun in idS | |
add to insert | |
else | |
add to compare | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd $HOME/public_html/local/templates/oknapolis | |
gulp | |
echo "upload optimize" | |
cd $HOME/public_html/upload/ | |
find -type f -iname "*.jpg" -exec jpegoptim --strip-all --all-progressive -pm85 {} \; | |
echo "build optimize" | |
cd $HOME/public_html/local/templates/oknapolis/build/images/ | |
find -type f -iname "*.jpg" -exec jpegoptim --strip-all --all-progressive -pm85 {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
global $DBType; | |
CModule::AddAutoloadClasses( | |
'crm', | |
array( | |
'CAllCrmLead' => 'classes/general/crm_lead.php', | |
'CCrmLead' => 'classes/'.$DBType.'/crm_lead.php', | |
'CCrmLeadWS' => 'classes/general/ws_lead.php', |
NewerOlder