File | Line | Event |
---|---|---|
cron.php | 46 | default |
Mage/Adminhtml/Controller/Action.php | 159 | adminhtml_controller_action_predispatch_start |
Mage/Adminhtml/Block/Customer/Edit/Tab/Carts.php | 61 | adminhtml_block_html_before |
Mage/Adminhtml/Block/Report/Grid.php | 186 | adminhtml_widget_grid_filter_collection |
Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Meta.php | 76 | adminhtml_cms_page_edit_tab_meta_prepare_form |
Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Design.php | 125 | adminhtml_cms_page_edit_tab_design_prepare_form |
Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Main.php | 119 | adminhtml_cms_page_edit_tab_main_prepare_form |
Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Content.php | 98 | adminhtml_cms_page_edit_tab_content_prepare_form |
View gist:c81c29ee96a8fa3dd39beeb17edaa737
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
;The key (or mouse button) you press to activate the script. For a list of supported "keys" and combinations, see https://autohotkey.com/docs/Hotkeys.htm | |
;XButton1 = "Back"-Button on my mouse. For a complete list of special keys, see https://autohotkey.com/docs/KeyList.htm | |
#IfWinActive Last Epoch | |
#SingleInstance force | |
#NoEnv | |
#Warn | |
#Persistent | |
#MaxThreadsPerHotkey 2 |
View webpack.config.js
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
/* eslint-disable no-useless-escape */ | |
const Encore = require('@symfony/webpack-encore'); | |
const TerserPlugin = require('terser-webpack-plugin'); | |
const CircularDependencyPlugin = require('circular-dependency-plugin'); | |
const HtmlCriticalWebpackPlugin = require('html-critical-webpack-plugin'); | |
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin'); | |
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | |
const PurgeCssPlugin = require('purgecss-webpack-plugin'); | |
const WebpackBar = require('webpackbar'); | |
const path = require('path'); |
View .bash_aliases
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
alias composer='php -n -d memory_limit=-1 -d extension=json.so -d extension=phar.so -d extension=pdo.so -d extension=tokenizer.so -d extension=ctype.so -d extension=dom.so -d extension=mbstring.so -d extension=mcrypt.so -d extension=xmlreader.so -d extension=xmlrpc.so -d extension=xmlwriter.so -d extension=curl.so -d extension=xml.so ~/bin/composer' |
View activate-coupon-rules.php
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 | |
$collection = Mage::getModel('salesrule/coupon')->getCollection()->addFieldToFilter('expiration_date', array('eq' => '2016-12-30 00:00:00')); | |
foreach($collection as $coupon) { | |
$rule = Mage::getModel('salesrule/rule')->load($coupon->getRuleId()); | |
$rule->setIsActive(true)->save(); | |
} |
View prices_per_store.sql
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
SELECT | |
CPE.sku, | |
CPED.value, | |
CPED.attribute_id, | |
CPED.store_id, | |
EAV.attribute_code | |
FROM | |
catalog_product_entity AS CPE | |
INNER JOIN catalog_product_entity_decimal AS CPED ON CPED.entity_id = CPE.entity_id AND CPED.attribute_id IN (75,76) AND CPED.store_id IN (1,2,3,4,5,14,15,0) | |
INNER JOIN eav_attribute AS EAV ON CPED.attribute_id = EAV.attribute_id |
View MagentoEvents.md
View MagentoScenarios.md
Issues with tax calculation in Magento 1.9
Product tax class
- Make sure that product tax class is set to Taxable Goods on product edit page, tab Prices.
Customer groups >< tax class assignment
- Make sure customer groups are saved with proper customer tax class assigned (Customer > Customer Groups)
=====================
View Subscriber.php
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 | |
// app/code/core/Mage/Core/Model/Email/Template/Abtract.php | |
//example on sendUnsubscriptionEmail but has to be done everywhere. | |
/** | |
* Sends out unsubsciption email | |
* | |
* @return Mage_Newsletter_Model_Subscriber |
View prototype-validation-classes.md
Css Class | Use Case / Error Message |
---|---|
validate-no-html-tags |
HTML tags are not allowed |
validate-select |
Please select an option. |
required-entry |
This is a required field. |
validate-number |
Please enter a valid number in this field. |
validate-number-range |
The value is not within the specified range. |
validate-digits |
Please use numbers only in this field. Please avoid spaces or other characters such as dots or commas. |
validate-digits-range |
The value is not within the specified range. |
validate-alpha |
Please use letters only (a-z or A-Z) in this field. |
View newsite.sh
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/bash | |
CYAN='\033[1;36m' | |
RED='\033[0;31m' | |
NC='\033[0m' # No Color | |
if [ `id -u` != 0 ]; then | |
echo -e "${RED}-- ERROR --${NC}" | |
echo -e "-- This script should be run as root so that files" | |
echo -e "-- can be created freely." | |
exit |
NewerOlder