One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| // Gulp | |
| var gulp = require('gulp'), | |
| // Stylus | |
| stylus = require('gulp-stylus'), | |
| minifyCSS = require('gulp-minify-css'), | |
| prefix = require('gulp-autoprefixer'), | |
| rupture = require('rupture'), | |
| jeet = require('jeet'), | |
| axis = require('axis'), | |
| typographic = require('typographic'), |
| #!/bin/sh | |
| printf "Switching php to version 5.6 with symlinks.\n" | |
| printf "Press any key to continue...\n" | |
| read CONTINUE | |
| printf "Creating backups..." | |
| # Backup original binaries |
| <?php | |
| /* @var $installer Mage_Customer_Model_Resource_Setup */ | |
| $installer = Mage::getResourceModel('customer/setup','customer_setup'); | |
| $installer->startSetup(); | |
| if (!$installer->getAttributeId('customer', 'attribute_name')) { | |
| $installer->addAttribute('customer', 'attribute_name', array( // TABLE.COLUMN: DESCRIPTION: | |
| /** Standard values defined @see Mage_Eav_Model_Entity_Setup::_prepareValues() */ | |
| 'label' => 'Label', // eav_attribute.frontend_label admin input label | |
| 'backend' => 'module/class_name', // eav_attribute.backend_model backend class (module/class_name format) |
| <?php | |
| $installer = Mage::getResourceModel('catalog/setup', 'catalog_setup'); | |
| if (!$installer->getAttributeId(Mage_Catalog_Model_Product::ENTITY, 'attribute_name')) { | |
| $installer->addAttribute(Mage_Catalog_Model_Product::ENTITY, 'attribute_name', array( // TABLE.COLUMN: DESCRIPTION: | |
| /** Standard values defined @see Mage_Eav_Model_Entity_Setup::_prepareValues() */ | |
| 'label' => 'Label', // eav_attribute.frontend_label admin input label | |
| 'backend' => 'module/class_name', // eav_attribute.backend_model backend class (module/class_name format) | |
| 'type' => 'varchar', // eav_attribute.backend_type backend storage type (varchar, text etc) |
| <?php | |
| require_once 'abstract.php'; | |
| class Mage_Shell_CheckImages extends Mage_Shell_Abstract | |
| { | |
| const CATALOG_PRODUCT = '/catalog/product'; | |
| const CACHE = '/cache/'; | |
| protected function _glob_recursive($pattern, $flags = 0) |
| #!/usr/bin/php | |
| <?php | |
| /** | |
| * jv_clean_product_images.php | |
| * | |
| * NOTICE OF LICENSE | |
| * | |
| * This source file is subject to the Open Software License (OSL 3.0) | |
| * that is bundled with this package in the file LICENSE.txt. | |
| * It is also available through the world-wide-web at this URL: |
| #!/bin/bash | |
| # convertImages.sh | |
| # Authors: Peter Jaap Blaakmeer (elgentos.nl) & Jeroen Vermeulen (magehost.pro) | |
| # https://gist.github.com/peterjaap/7080989 | |
| # https://gist.github.com/jeroenvermeulen/feb819799dea3d74ae9c | |
| NEWQUALITY=90 | |
| NEWWIDTH=2000 | |
| DIRECTORY=$HOME/httpdocs/media/catalog/product/ |
| find -L app/design/frontend -name 'shipping.phtml' -or -name 'billing.phtml' -or -name 'shipping_method.phtml' -or -name 'payment.phtml' -or -name 'addresses.phtml' \ | |
| | xargs grep -L formkey \ | |
| | xargs perl -i -pe 's/<\/form>/<?php echo \$this->getBlockHtml("formkey") ?>\n<\/form>/g' | |
| find -L skin/frontend -name 'opcheckout.js' \ | |
| | xargs grep -L form_key \ | |
| | xargs perl -i -pe 's/if \(elements\[i\]\.name=='\''payment\[method\]'\''\) \{/if (elements[i].name=='\''payment[method]'\'' || elements[i].name == '\''form_key'\'') {/g' | |
| find -L js -name 'payment.js' \ | |
| | xargs grep -L form_key \ |
| -- Update Order increment id to start at 123456789 | |
| UPDATE `eav_entity_store` SET `increment_last_id` = '123456789' WHERE `entity_type_id` = '5';` | |
| -- Update Invoice increment id to start at 123456789 | |
| UPDATE `eav_entity_store` SET `increment_last_id` = '123456789' WHERE `entity_type_id` = '6'; | |
| -- Update Credit Memo increment id to start at 123456789 | |
| UPDATE `eav_entity_store` SET `increment_last_id` = '123456789' WHERE `entity_type_id` = '7'; | |
| -- Update Shipment increment id to start at 123456789 |