Pear for 1.4, mage for 1.5. File downloaded into /downloader/.cache/community/
./pear download magento-community/Shipping_Agent
./mage download community Shipping_Agent
| #!/bin/bash | |
| # Path to the composer.json file | |
| COMPOSER_FILE="composer.json" | |
| TEMP_FILE="composer_temp.json" | |
| # Checkout the composer.json file to avoid unwanted changes | |
| git checkout "$COMPOSER_FILE" | |
| # Create a new file to hold updated content |
| <?php | |
| /** | |
| * @param $attributeCode | |
| * @param $newOptionValues | |
| * @internal param $attributeData | |
| */ | |
| public function addSwatchValuesToSwatchAttribute($attributeCode, $newOptionValues) | |
| { | |
| $this->eavConfig->clear(); |
| <!-- module.xml --> | |
| <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd"> | |
| <module name="VendorName_ModuleName" setup_version="0.0.1" > | |
| <sequence> | |
| <module name="Magento_Config"/> | |
| </sequence> | |
| </module> | |
| </config> | |
| <!-- di.xml --> |
| <?php | |
| use Magento\Framework\App\Area; | |
| require __DIR__ . '/app/bootstrap.php'; | |
| class AdminhtmlGetUrlTestApp extends \Magento\Framework\App\Http implements \Magento\Framework\AppInterface | |
| { | |
| public function launch() | |
| { | |
| $this->_state->setAreaCode(Area::AREA_ADMINHTML); |
| <?php | |
| if(php_sapi_name()!=="cli"){ | |
| echo "Must be run from the commend line."; | |
| }; | |
| /** | |
| * Setup a magento instance so we can run this export from the command line. | |
| */ | |
| require_once('app/Mage.php'); | |
| umask(0); | |
| if (!Mage::isInstalled()) { |
| <?php | |
| function get_tls_version($sslversion = null) | |
| { | |
| $c = curl_init(); | |
| curl_setopt($c, CURLOPT_URL, "https://www.howsmyssl.com/a/check"); | |
| curl_setopt($c, CURLOPT_RETURNTRANSFER, true); | |
| if ($sslversion !== null) { | |
| curl_setopt($c, CURLOPT_SSLVERSION, $sslversion); | |
| } |
| bin/magento setup:install \ | |
| --base-url=http://mage2a.dev/ \ | |
| --db-host=localhost \ | |
| --db-name=mage2a \ | |
| --db-user=user \ | |
| --db-password=password \ # or leave this line out for dev | |
| --admin-firstname=firstname \ | |
| --admin-lastname=lastname \ | |
| [email protected] \ | |
| --admin-user=username \ |
| delimiter ;; | |
| drop procedure if exists build_catalog;; | |
| create procedure build_catalog(IN categories INT, IN products INT) | |
| begin | |
| SET @category_count = 1; | |
| SET @CATNAMEPREFIX = "Category "; | |
| SET @CATURLKEYPREFIX = "cat-"; | |
| SET @CATURLPATHPREFIX = "catpath-"; | |
| SET @ROOTCATEGORY = 2; | |
| SET @INCLUDEINMENU = 1; |
| /* | |
| Cobalt theme by Carlos Asín | |
| ************************************ | |
| A cobalt theme for Chrome Developer Tools inspired by Sublime Text 2 cobalt theme. | |
| Modifies the source code and other smaller tweaks. |