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 | |
| /** | |
| * @author MagePsycho <[email protected]> | |
| * @website http://www.magepsycho.com | |
| * @category Export / Import | |
| */ | |
| $mageFilename = 'app/Mage.php'; | |
| require_once $mageFilename; | |
| Mage::setIsDeveloperMode(true); | |
| ini_set('display_errors', 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 | |
| /** | |
| * @author Tsvetan Stoychev <[email protected]> | |
| * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | |
| */ | |
| ini_set('max_execution_time', 0); | |
| define('MAGENTO_ROOT', getcwd()); | |
| $mageFilename = MAGENTO_ROOT . '/app/Mage.php'; | |
| require_once $mageFilename; |
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
| //DE | |
| <body style="background:#F6F6F6; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; margin:0; padding:0;"> | |
| <div style="background:#F6F6F6; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; margin:0; padding:0;"> | |
| <table cellspacing="0" cellpadding="0" border="0" width="100%"> | |
| <tr> | |
| <td align="center" valign="top" style="padding:20px 0 20px 0"> | |
| <table bgcolor="#FFFFFF" cellspacing="0" cellpadding="10" border="0" width="650" style="border:1px solid #E0E0E0;"> | |
| <!-- [ header starts here] --> | |
| <tr> |
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 | |
| require_once('app/Mage.php'); //Path to Magento | |
| umask(0); | |
| Mage::app(); | |
| $englishStoreViewId = 4; | |
| $turkishStoreViewId = 6; | |
| ini_set('display_errors', 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
| <modules> | |
| <Hatclub_MembershipHandler> | |
| <version>1.0.0</version> | |
| </Hatclub_MembershipHandler> | |
| </modules> | |
| <global> | |
| ...... | |
| ...... | |
| ...... | |
| </global> |
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
| <script type="text/javascript"> | |
| //<![CDATA[ | |
| // submit buttons are not needed when submitting with ajax | |
| $('review_submit').hide(); | |
| if ($('update_shipping_method_submit')) { | |
| $('update_shipping_method_submit').hide(); | |
| } | |
| <?php if ($this->getUseAjax()):?> | |
| OrderReviewController.prototype._submitOrder = function() { |
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 | |
| define('DS', DIRECTORY_SEPARATOR); | |
| function _getExtractSchemaStatement($sqlFileName, $db) | |
| { | |
| $dumpSchema = 'mysqldump' . ' '; | |
| $dumpSchema .= '--no-data' . ' '; | |
| $dumpSchema .= '-u ' . $db['user'] . ' '; | |
| $dumpSchema .= '-p' . $db['pass'] . ' '; | |
| $dumpSchema .= '-h ' . $db['host'] . ' '; |
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
| $action = Mage::app()->getFrontController()->getAction(); | |
| /* Detect blog category view page */ | |
| if ($action->getFullActionName() == 'blog_cat_view') { | |
| bla bla bla | |
| } | |
| /* Detect blog post view page */ | |
| if ($action->getFullActionName() == 'blog_post_view') { | |
| bla bla bla |
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
| protected function _connect() { | |
| $config = new Zend_Config( | |
| array( | |
| 'database' => array( | |
| 'adapter' => 'Pdo_Mssql', | |
| 'params' => array( | |
| 'host' => '127.0.0.1', | |
| 'dbname' => 'test', | |
| 'username' => 'webuser', |
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
| /** | |
| * Collect all email templates system config paths | |
| * | |
| * @return array | |
| */ | |
| public function getEmailTemplatesSystemConfigPaths() | |
| { | |
| $paths = array(); | |
| $configSections = Mage::getSingleton('adminhtml/config')->getSections(); |