./mage config-set preferred_state stable
./mage clear-cache
./mage sync
./mage download community Module_Name
This file contains 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
-- | |
-- This query delelets all customers and orders from your | |
-- Magento 1.* install. Handy, if you have a bloated | |
-- Magento database and you need to do a bit | |
-- of cleaning up for use on a local machine. | |
-- | |
-- Replace PREFIX_ with your current Magento table prefix. | |
-- | |
-- USE AT OWN RISK. ALWAY BACKUP YOUR DATABASE FIRST. | |
-- |
This file contains 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 | |
/** | |
* Zend Framework | |
* | |
* LICENSE | |
* | |
* This source file is subject to the new BSD license that is bundled | |
* with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: |
This file contains 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
<block type="cms/block" name="block_name"> | |
<action method="setBlockId"><id>block_code</id></action> | |
</block> | |
{{block type="cms/block" block_id="block_code"}} | |
{{block type="catalog/product_list" category_id="79" template="catalog/product/list_random.phtml"}} |
Source: A Plug-in by Igor Escobar on Github.
This file contains 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
find . -type f -exec chmod 644 {} \; // 644 permission for files | |
find . -type d -exec chmod 755 {} \; // 755 permission for directory | |
find ./var -type d -exec chmod 777 {} \; // 777 permission for var folder | |
find ./pub/media -type d -exec chmod 777 {} \; | |
find ./pub/static -type d -exec chmod 777 {} \; | |
chmod 777 ./app/etc | |
chmod 644 ./app/etc/*.xml | |
chmod -R g+w * |
This file contains 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
### Tutorial oficial: | |
https://docs.microsoft.com/en-us/windows/wsl/install-win10 | |
### Passo 1 (PowerShell Admin): | |
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart | |
### Passo 2 (PowerShell Admin): | |
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart | |
### Passo 3 |
This file contains 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
image: ruby:2.5 | |
stages: | |
- deploy | |
default: | |
before_script: | |
# For setting the IP of the runner with Amazon EC2 SG | |
- apt update | |
- apt install -y awscli jq |
These set of scripts are for Magento 2. For Magento 1, see this Gist.
Patches are great for small bugfixes since they're easy to create and maintain. You should follow magento's official documentation to install the required composer plugin. Don't forget to add the required patch section on your composer.json or composer will not be able to see your patches.
- Go inside the folder that the file you need to fix is.
- Execute the
git init .
command. - Execute the
git add -A .
command. - Commit something. Ex:
git commit -m "start of patch"
OlderNewer