Skip to content

Instantly share code, notes, and snippets.

View PechenkiUA's full-sized avatar
💭
On vacation

Pechenki PechenkiUA

💭
On vacation
View GitHub Profile
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>Coder hide fields settings</name>
<code>Coder_hide_fields_settings</code>
<version>0.1</version>
<author>coder</author>
<link>https://coder.org.ua</link>
<file path="admin/view/template/setting/setting.twig">
<operation>
@PechenkiUA
PechenkiUA / coder_ml_images_product.ocmod.xml
Last active November 28, 2023 08:05
coder_ml_images_product
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>Coder ml images product</name>
<version>0.1</version>
<author>CoderUA</author>
<link>https://example.com</link>
<code>coder_ml_images_product</code>
<description>Example description</description>
<!--
@PechenkiUA
PechenkiUA / coder_google_event_new.ocmod.xml
Created November 22, 2023 19:29
coder_google_event_new
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>Google event New</name>
<code>coder_google_event_new</code>
<version>0.1</version>
<date>22.11.2023</date>
<author>Oleksandr</author>
<link>https://coder.org.ua</link>
<!-- перегляд товару view_item -->
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>Google event</name>
<code>coder_google_event</code>
<version>0.1</version>
<date>13.11.2023</date>
<author>Oleksandr</author>
<link>https://coder.org.ua</link>
<!-- перегляд товару -->
@PechenkiUA
PechenkiUA / dev_opencart_com_admlangchange.ocmod.xml
Created November 19, 2023 14:54
Послідовний перемикач мов в адмінці
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<name>DEV-OPENCART.COM - Переключатель языка для админ-панели</name>
<version>1</version>
<link>https://DEV-OPENCART.COM</link>
<author>DEV-OPENCART.COM</author>
<code>dev_opencart_com_admlangchange</code>
<file path="admin/controller/common/header.php">
<operation>
<search><![CDATA[
@PechenkiUA
PechenkiUA / coder_unixml_lang_url.ocmod.xml
Created November 18, 2023 15:46
unixml для генерації вигрузок різними мовами
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>coder_unixml_lang_url</name>
<code>coder_unixml_lang_url</code>
<version>1.0</version>
<author>CoderOrgUA</author>
<link>https://coder.org.ua/</link>
<file path="admin/view/template/extension/feed/unixml.twig">
<operation>
@PechenkiUA
PechenkiUA / coder_set_date_end_special.ocmod.xml
Created November 6, 2023 14:43
coder_set_date_end_special
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>coder_set_date_end_special</name>
<code>coder_set_date_end_special</code>
<version>0.1</version>
<date>06.10.2023</date>
<author>Oleksandr</author>
<link>https://coder.org.ua</link>
<file path="admin/view/template/extension/module/aqe/catalog/product_list.twig">
@PechenkiUA
PechenkiUA / coder_blog_setting_ml.ocmod.xml
Created November 6, 2023 10:40
coder_blog_setting_ml
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>coder_blog_setting_ml</name>
<version>0.1</version>
<author>Oleksandr</author>
<link>https://example.com</link>
<code>coder_blog_setting_ml</code>
<description>coder_blog_setting_ml description</description>
<file path="admin/controller/blog/setting.php">
@PechenkiUA
PechenkiUA / cron.php
Last active November 4, 2023 12:06
cron opencart Mega Filter PRO PLUS reondex
<?php
require_once __DIR__ . "./../admin/config.php";
require_once DIR_SYSTEM . "startup.php";
$OPENCART_VERSION = 'auto';
if ($OPENCART_VERSION == 'auto') {
chdir(__DIR__);
$index = @file_get_contents(__DIR__ . '/../index.php');
preg_match("#define\('VERSION'\,\s?'(.+)\'\)#", $index, $detect);
@PechenkiUA
PechenkiUA / functions.php
Created October 24, 2023 19:14
decode images file wc
<?php
add_filter('tscf_filter_codetemplate', function ($list, $order_id) {
$order = wc_get_order($order_id);
$file = get_post_meta($order->get_id(), '_billing_upload_main', true);
$file_path = '';
if ($file) {
$file_arr = json_decode($file,true);