This file contains hidden or 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
commit e748d3fecd20374624f391603b42d73453db1c6f | |
Author: Pierre Martin <[email protected]> | |
Date: Wed Jun 12 12:34:38 2013 +0200 | |
Added sales_order_tax cleaning to the DeleteOrder module to prevent leaving corrupted data | |
diff --git a/app/code/community/EM/DeleteOrder/controllers/Adminhtml/Sales/OrderController.php b/app/code/community/EM/DeleteOrder/controllers/Adminhtml/Sales/OrderController.php | |
index a6fbd52..7ca0e45 100644 | |
--- a/app/code/community/EM/DeleteOrder/controllers/Adminhtml/Sales/OrderController.php | |
+++ b/app/code/community/EM/DeleteOrder/controllers/Adminhtml/Sales/OrderController.php |
This file contains hidden or 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
Check / Money Order for Admin | Chèque / Liquide pour l'Administrateur | |
---|---|---|
This payment method is enabled only for orders that are created in Magento Admin. | Cette méthode de paiement n'est activée que pour les commandes qui sont créées depuis l'Administration | |
Create and Capture Invoice Automatically | Créer et capturer une facture automatiquement | |
Create Shipment Automatically | Créer une expédition automatiquement |
This file contains hidden or 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 casper = require('casper').create(); | |
var utils = require('utils'); | |
var phpMyAdminUrl = casper.cli.args[0]; | |
var phpMyAdminCredentials = { | |
pma_username: casper.cli.options.user, | |
pma_password: casper.cli.options.password | |
}; | |
if (!phpMyAdminUrl || !phpMyAdminCredentials.pma_username || !phpMyAdminCredentials.pma_password) { | |
casper.echo('Invalid parameters. Usage: casperjs monitor_slave.js http://example.com/phpMyAdmin --user=foo --password=bar'); |
This file contains hidden or 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::uses('Helper', 'View/Helper'); | |
App::uses('File', 'Utility'); | |
class BugherdHelper extends Helper { | |
public $helpers = array(); | |
private $__bugherdBlacklistedLayouts = array('ajax', 'admin_popup'); |
This file contains hidden or 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
# Depends on Occitech's CakePHP capistrano recipe (see https://github.com/occitech/capistrano-recipes) | |
server "xxxx.yyy.com", :app, :web, :db, :primary => true | |
set :deploy_to, "/xxx/yyy" | |
set :branch, "develop" | |
set :url_base, "http://xxx.occi-tech.com" | |
set :application, "Croogo" | |
set :repository, "git@xxx/yyy.git" | |
set :scm, :git | |
set :git_enable_submodules, 1 |
This file contains hidden or 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 | |
/** | |
* Displays information about the current version of the application | |
*/ | |
$basePath = ROOT . DS; | |
$appVersion = array_fill_keys(array('version', 'revision', 'timestamp'), ''); | |
if (file_exists($basePath . 'version.txt')) { | |
$appVersion['timestamp'] = filemtime($basePath . 'version.txt'); | |
$appVersion['version'] = file($basePath . 'version.txt'); |
This file contains hidden or 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::uses('ControllerTestCase', 'TestSuite'); | |
/** | |
* Occitech custom Test Library. | |
* Extends core librairy to add convenience methods. | |
*/ | |
abstract class OccitechCakeTestCase extends ControllerTestCase { | |
protected $fixtures = array(); |
This file contains hidden or 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
Options +FollowSymLinks | |
RewriteEngine On | |
RewriteBase / | |
# RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.123 # Allowed IP | |
RewriteCond %{REQUEST_URI} !^/maintenance.php [NC] | |
RewriteRule .* /maintenance.php [L] |
This file contains hidden or 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 | |
### MySQL Server Login Info ### | |
MUSER="root" | |
MPASS="xxxx" | |
MHOST="localhost" | |
MYSQL="/usr/local/bin/mysql" | |
MYSQLDUMP="/usr/local/mysql/bin/mysqldump" | |
BACKUP_PATH="/data/backup/mysql" | |
GZIP="/bin/gzip" |
This file contains hidden or 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
/** | |
* Generic script for displaying a "Browser outdated" message to users | |
* Displays an overlay and a message including the Chrome Frame | |
* | |
* @see http://www.browser-update.org/fr/ | |
*/ | |
var $buoop = { | |
reminder: 168, | |
newwindow: true, |