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_customer_auth_token</name>
<code>coder_customer_auth_token</code>
<version>1.0</version>
<author>Coder</author>
<link>https://www.opencart.com</link>
<file path="system/library/cart/customer.php">
<operation>
@PechenkiUA
PechenkiUA / functions.php
Created March 20, 2024 09:48
Шорткод для виведення товарів з часом очікування 1 день та більше
<?php
/**
* Шорткод для виведення товарів з часом очікування 1 день та більше
*/
function shortcode_products_one_day_left($atts)
{
$atts = shortcode_atts(array(
'per_page' => 12,
), $atts, 'products_one_day_left');
@PechenkiUA
PechenkiUA / CodCache.php
Created March 18, 2024 11:47
opencart clear cache
<?php
/**
*
*/
class CodCache {
/**
* @var
*/
private $registry;
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>Coder_ocm_error_top</name>
<code>default</code>
<version>1.0</version>
<author>CoderUa</author>
<link>https://google.com</link>
<file path="admin/view/template/common/header.twig">
<operation>
<search>
@PechenkiUA
PechenkiUA / GA.Event.ocmod.xml
Last active January 9, 2024 13:54
GA Event
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>GA Event</name>
<code>default</code>
<version>1.0</version>
<author>Coder</author>
<link></link>
@PechenkiUA
PechenkiUA / share_lang.ocmod.xml
Last active December 30, 2023 13:07
підключення спільної папки з перекладами шаблону opencart
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>Share lang </name>
<version>0.1</version>
<author>CoderUA</author>
<link>https://example.com</link>
<code>name_code</code>
<description></description>
<!--
@PechenkiUA
PechenkiUA / snow.js
Last active December 28, 2023 06:25
Snow
(function (){
document.querySelector('body').insertAdjacentHTML('afterbegin',`<canvas id="particle_canvas" style="position: fixed; left: 0; top: 0; width: 100%; height: 100%;"></canvas>`);
const canvas = document.querySelector('#particle_canvas')
const ctx = canvas.getContext('2d')
let width, height, lastNow
let snowflakes
const maxSnowflakes = 100
@PechenkiUA
PechenkiUA / s.css
Created December 22, 2023 12:34
udpu
.rs_file>a {
display: inline-block;
position: relative;
overflow: hidden;
text-overflow: ellipsis;
max-width: 96%;
line-height: 1.2
}
@PechenkiUA
PechenkiUA / dragon-liqpay.js
Last active December 19, 2023 11:33
gragon-liqpay #js
(function (){
const _dragonElementWrap = document.createElement('div');
_dragonElementWrap.style.overflow = 'hidden';
_dragonElementWrap.style.width = '100%';
_dragonElementWrap.style.position = 'fixed';
_dragonElementWrap.style.bottom = '0px';
_dragonElementWrap.style.left = '0px';
_dragonElementWrap.style.right = '0px';
_dragonElementWrap.style.zIndex= '9999';
<?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/controller/setting/setting.php">