Skip to content

Instantly share code, notes, and snippets.

@yasinkuyu
yasinkuyu / insya_removedomain
Last active August 5, 2020 23:40
Opencart Remove Domain (ocmod) 2.0.x
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>insya_removedomain</name>
<code>insya_removedomain</code>
<description>Linklerden domaini silmek için eklendi. (@yasinkuyu)</description>
<version>1.0</version>
<author>bilgi@insya.com</author>
<link>http://insya.com</link>
<file path="system/library/url.php">
<operation>
@yasinkuyu
yasinkuyu / custom_field_mail
Last active August 5, 2020 23:41
Opencart Custom Field view Invoice/Mail (2.0.x) (ocmod) 2.0.x
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<name>Custom Field view Invoice/Mail (2.0.x)</name>
<code>custom_field_invoice</code>
<version>3.0</version>
<author>Yasin Kuyu</author>
<link>http://insya.com</link>
<file path="admin/view/template/sale/custom_field_list.tpl">
<operation>
<search><![CDATA[<td style="width: 1px;" class="text-center"><input type="checkbox" onclick="$('input[name*=\'selected\']').prop('checked', this.checked);" /></td>]]></search>
@yasinkuyu
yasinkuyu / insya.whatsapp_siparis_modulu.ocmod.xml
Created July 2, 2020 00:11
Opencart WhatsApp Sipariş Modülü
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>Opencart WhatsApp Sipariş Modülü</name>
<code>whatsapp_siparis_modulu</code>
<version>1.0</version>
<author>Yasin</author>
<link>http://yasinkuyu.net</link>
<file path="catalog/controller/product/product.php">
<operation error="log">
@yasinkuyu
yasinkuyu / OpencartJournal2ProductSize.xml
Created March 12, 2020 12:47
Opencart Journal2 ProductSize
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<name>Journal2ProductSize (insya)</name>
<version>1</version>
<author>yasinkuyu</author>
<code>Journal2ProductSize</code>
<file path="catalog/view/theme/journal2/template/common/header.twig">
<operation>
<search position="before"><![CDATA[</head>]]></search>
@yasinkuyu
yasinkuyu / agGrid-tr.js
Created November 27, 2018 23:14
ag-Grid Türkçe/Turkish
var localeTextTR = {
// for filter panel
page: 'Sayfa',
more: 'Devamı',
to: 'To',
of: 'Of',
next: 'İleri',
last: 'Son',
first: 'İlk',
previous: 'Sonraki',
@yasinkuyu
yasinkuyu / doctor-appointment-booking-tr_TR.po
Created July 26, 2018 20:36
Doctor Appointment Booking 1.0.1 (Turkish)
# Copyright (C) 2018 Doctor Appointment Booking
# This file is distributed under the same license as the Doctor Appointment Booking package.
# Translator Yasin Kuyu
msgid ""
msgstr ""
"Project-Id-Version: Doctor Appointment Booking 1.0.1\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/doctor-"
"appointment-booking\n"
"POT-Creation-Date: 2018-03-15 11:03:16+00:00\n"
"MIME-Version: 1.0\n"
@yasinkuyu
yasinkuyu / tsoft.blog.post.wp.php
Created May 18, 2018 02:17
T-Soft Blog migration Wordpress
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
# T-Soft Blog migration Wordpress
function save_image($inPath,$outPath)
{
$in= fopen($inPath, "rb");
$out= fopen($outPath, "wb");
@yasinkuyu
yasinkuyu / tsoft.blog.post.dm.php
Created May 18, 2018 02:13
T-Soft Blog migration Opencart Blog (Dreamvention)
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
# T-Soft Blog migration Opencart Blog (Dreamvention)
function save_image($inPath,$outPath)
{
$in= fopen($inPath, "rb");
$out= fopen($outPath, "wb");
@yasinkuyu
yasinkuyu / opencart-seo-url-tr.sql
Last active April 2, 2024 11:55
Opencart 3 SEO Url TR
INSERT INTO oc_seo_url (store_id, language_id, query, keyword) VALUES ('0', '1', 'common/home', '');
INSERT INTO oc_seo_url (store_id, language_id, query, keyword) VALUES ('0', '1', 'account/wishlist', 'istek');
INSERT INTO oc_seo_url (store_id, language_id, query, keyword) VALUES ('0', '1', 'account/account', 'hesabim');
INSERT INTO oc_seo_url (store_id, language_id, query, keyword) VALUES ('0', '1', 'checkout/cart', 'sepetim');
INSERT INTO oc_seo_url (store_id, language_id, query, keyword) VALUES ('0', '1', 'checkout/checkout', 'odeme');
INSERT INTO oc_seo_url (store_id, language_id, query, keyword) VALUES ('0', '1', 'account/login', 'giris');
INSERT INTO oc_seo_url (store_id, language_id, query, keyword) VALUES ('0', '1', 'account/logout', 'cikis');
INSERT INTO oc_seo_url (store_id, language_id, query, keyword) VALUES ('0', '1', 'account/order', 'siparis-gecmisi');
INSERT INTO oc_seo_url (store_id, language_id, query, keyword) VALUES ('0', '1', 'account/newsletter', 'bulten');
INSERT INTO oc_seo_url (store
@yasinkuyu
yasinkuyu / v-mysql-restart
Last active January 9, 2020 22:34
Vesta mysql check status & restart script (Cron Job)
#!/bin/bash
# @yasinkuyu
# Vesta mysql check status & restart script (Cron Job)
# cd /usr/local/vesta/bin/
# Create v-mysql-restart file
# CRON: */5 * * * * sudo /usr/local/vesta/bin/v-mysql-restart
# 5 minute