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 | |
// assuming file.zip is in the same directory as the executing script. | |
$file = 'schautz_01062019_after_remove_demo.zip'; | |
// get the absolute path to $file | |
$path = pathinfo(realpath($file), PATHINFO_DIRNAME); | |
$zip = new ZipArchive; | |
$res = $zip->open($file); |
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
{ | |
"name": "opencart-gulp", | |
"version": "1.0.0", | |
"description": "", | |
"main": "gulpfile.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "eapdob", | |
"license": "ISC", |
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
var gulp = require('gulp'), | |
sass = require('gulp-sass'), | |
browserSync = require('browser-sync'), | |
concat = require('gulp-concat'), | |
uglify = require('gulp-uglify-es').default, | |
cleancss = require('gulp-clean-css'), | |
rename = require('gulp-rename'), | |
autoprefixer = require('gulp-autoprefixer'), | |
notify = require('gulp-notify'), | |
rsync = require('gulp-rsync'), |
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
/* header optimization */ | |
$data['categories'] = array(); | |
$result_all_categories = $this->cache->get('octemplates.module_all_category.' . (int)$this->config->get('config_language_id') . '.' . (int)$this->config->get('config_store_id') . '.' . $this->config->get('config_customer_group_id')); | |
if (!$result_all_categories) { | |
$categories = $this->model_catalog_category->getCategories(0); | |
foreach ($categories as $category) { |
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
// leanModal v1.1 by Ray Stone - http://finelysliced.com.au | |
// Dual licensed under the MIT and GPL | |
(function ($) { | |
$.fn.extend({ | |
leanModal: function (options) { | |
var defaults = {top: 100, overlay: 0.5, closeButton: null}; | |
var overlay = $("<div id='lean_overlay'></div>"); | |
$("body").append(overlay); | |
options = $.extend(defaults, options); |
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
DELETE t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15 | |
FROM oc_product t1 | |
LEFT JOIN oc_product_attribute t2 ON(t1.product_id=t2.product_id) | |
LEFT JOIN oc_product_description t3 ON(t1.product_id=t3.product_id) | |
LEFT JOIN oc_product_discount t4 ON(t1.product_id=t4.product_id) | |
LEFT JOIN oc_product_image t5 ON(t1.product_id=t5.product_id) | |
LEFT JOIN oc_product_option t6 ON(t1.product_id=t6.product_id) | |
LEFT JOIN oc_product_option_value t7 ON(t1.product_id=t7.product_id) | |
LEFT JOIN oc_product_related t8 ON(t1.product_id=t8.product_id) | |
LEFT JOIN oc_product_reward t9 ON(t1.product_id=t9.product_id) |
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
public function scan_Dir($dir) { | |
$dir = str_replace("//", "/", $dir); | |
$arrfiles = array(); | |
if (is_dir($dir)) { | |
if ($handle = opendir($dir)) { | |
chdir($dir); | |
while (false !== ($file = readdir($handle))) { | |
if ($file != "." && $file != "..") { | |
if (is_dir($file)) { | |
$arr = $this->scan_Dir($file); |
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 | |
class ModelToolYMLOcextDMPRO extends Model { | |
protected $registry; | |
private $categories = array(); | |
public function __construct($registry) { | |
$this->registry = $registry; | |
} |
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
$(function() { | |
// get first value | |
let firstDiscountRadio = $(".product-discount-radio").first(); | |
let firstDiscountValue = Number(firstDiscountRadio.val()); | |
// init counting variables | |
let standartValue = firstDiscountValue; | |
let stage = false; | |
// condition for standart value |
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
$categories = $this->model_catalog_category->getCategories(0); | |
// Level 1 | |
foreach ($categories as $category) { | |
if ($category['top']) { | |
// Level 2 | |
$children_data = array(); | |
$children = $this->model_catalog_category->getCategories($category['category_id']); |