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 | |
| /* | |
| Executar via cron com o comando php container.php | |
| */ | |
| require_once('app/Mage.php'); | |
| umask(0); | |
| #Mage::app('default'); | |
| Mage::app(); |
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
| sudo aptitude install mcrypt | |
| sudo aptitude install php5-mcrypt | |
| execute e veja se agora existe na listagem o mcrypt | |
| php -m | |
| fonte: http://askubuntu.com/questions/350942/cannot-get-mcrypt-for-php5 |
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'); | |
| umask(0); | |
| #Mage::app('default'); | |
| Mage::app(); | |
| #Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); | |
| $collection = Mage::getResourceModel('catalog/product_collection') | |
| ->addAttributeToSelect('entity_id') |
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
| jQuery('input[name="payment[method]"]').on('click', function () { | |
| jQuery('#mundipagg_cc_type').removeClass('required-entry validate-cc-type-select'); | |
| jQuery('#mundipagg_cc_parcelamento').removeClass('required-entry validate-type-select'); | |
| jQuery('#mundipagg_cc_number').removeClass('validate-cc-number validate-cc-type'); | |
| jQuery('#mundipagg_cc_owner').removeClass('required-entry'); | |
| jQuery('#mundipagg_cc_cpf').removeClass('required-entry'); | |
| jQuery('#mundipagg_expiration').removeClass('validate-cc-exp required-entry'); | |
| jQuery('#mundipagg_expiration_yr').removeClass('required-entry'); | |
| jQuery('#mundipagg_cc_cid').removeClass('cvv required-entry validate-cc-cvn'); |
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 | |
| include_once 'app/Mage.php'; | |
| //Mage::app('default'); | |
| Mage::app(); | |
| $installer = Mage::getResourceModel('catalog/setup','catalog_setup'); | |
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 | |
| include_once 'app/Mage.php'; | |
| //Mage::app('default'); | |
| Mage::app(); | |
| $installer->startSetup(); |
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
| include_once 'app/Mage.php'; | |
| //Mage::app('default'); | |
| Mage::app(); | |
| $installer = Mage::getResourceModel('sales/setup', 'default_setup'); | |
| //$installer = $this; | |
| $installer->startSetup(); | |
| /** |
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
| By Klaus Wuestefeld | |
| 1) Torne-se excelente. | |
| Seja realmente bom em alguma coisa. Não fique só choramingando ou | |
| querendo progredir às custas dos outros. Não pense q pq vc sentou 4 | |
| anos numa faculdade ouvindo um professor falar sobre software q vc | |
| sabe alguma coisa. Jogador de futebol não aprende a jogar bola tendo | |
| aula. Ele pratica. Instrumentistas geniais nao aprendem a tocar tendo | |
| aula. Eles praticam. Pratique. Chegue em casa depois do trabalho e da |
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
| SET FOREIGN_KEY_CHECKS = 0; | |
| TRUNCATE TABLE `catalog_category_entity`; | |
| TRUNCATE TABLE `catalog_category_entity_datetime`; | |
| TRUNCATE TABLE `catalog_category_entity_decimal`; | |
| TRUNCATE TABLE `catalog_category_entity_int`; | |
| TRUNCATE TABLE `catalog_category_entity_text`; | |
| TRUNCATE TABLE `catalog_category_entity_varchar`; | |
| TRUNCATE TABLE `catalog_category_product`; | |
| TRUNCATE TABLE `catalog_category_product_index`; |
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
| SET FOREIGN_KEY_CHECKS = 0; | |
| TRUNCATE TABLE `catalog_product_bundle_option`; | |
| TRUNCATE TABLE `catalog_product_bundle_option_value`; | |
| TRUNCATE TABLE `catalog_product_bundle_selection`; | |
| TRUNCATE TABLE `catalog_product_entity_datetime`; | |
| TRUNCATE TABLE `catalog_product_entity_decimal`; | |
| TRUNCATE TABLE `catalog_product_entity_gallery`; | |
| TRUNCATE TABLE `catalog_product_entity_int`; | |
| TRUNCATE TABLE `catalog_product_entity_media_gallery`; |