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
#!/usr/bin/env php | |
<?php | |
/** | |
* mh_remove_unused_product_images.php | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Open Software License (OSL 3.0) | |
* 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
/** | |
* Address Auto Fill based on Postcode | |
* | |
* Author: | |
* Rafael Patro <[email protected]> | |
* | |
* Intallation: | |
* Add a CMS Static Block applying the entire script below. | |
* Add a Widget to pages with address forms. | |
* |
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
-- ---------------------------------- | |
select "Deleting all but 50 customers" debug; | |
drop procedure if exists minify_customers; | |
delimiter # | |
create procedure minify_customers() | |
begin | |
select @remaining_customers := count(*) from `customer_entity`; | |
while @remaining_customers > 50 do |
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"