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
wget http://xdebug.org/files/xdebug-2.2.1.tgz | |
tar -xzvf xdebug-2.2.1.tgz | |
cd xdebug-2.2.1 | |
phpize | |
./configure --enable-xdebug | |
sudo make | |
sudo make install | |
sudo service apache2 restart |
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
Mage::getModuleDir(‘controllers’, ‘Packagename_Modulename’); |
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
Index: app/code/core/Mage/SalesRule/Model/Observer.php | |
=================================================================== | |
--- app/code/core/Mage/SalesRule/Model/Observer.php (revision 146067) | |
+++ app/code/core/Mage/SalesRule/Model/Observer.php (working copy) | |
@@ -90,7 +90,6 @@ | |
$customerId = $order->getCustomerId(); | |
// use each rule (and apply to customer, if applicable) | |
- if ($order->getDiscountAmount() != 0) { | |
foreach ($ruleIds as $ruleId) { |
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
zend_extension= /usr/lib/php/20170718/xdebug.so | |
[xdebug] | |
; This is the default, but just to be sure... | |
xdebug.remote_port = 9000 | |
; Make sure vmhost is set in /etc/hosts as the ip address of your host machine | |
; from your virtual machine (set in virtual box as the host-only adapter ip) |
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
$ git clean -fdn | |
# -f force (because Obi-Wan says so) | |
# -d also removes directories | |
# -n dry run (ALWAYS do this first) | |
# You can also specify a path, but to be safe I always just cd to where I want to destroy changes |
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
rm -rf `find . -type d -name .svn` |
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
Index: app/code/core/Mage/Catalog/Block/Product/List.php | |
=================================================================== | |
--- app/code/core/Mage/Catalog/Block/Product/List.php | |
+++ app/code/core/Mage/Catalog/Block/Product/List.php | |
@@ -71,7 +71,7 @@ | |
// if the product is associated with any category | |
if ($categories->count()) { | |
// show products from this category | |
- $this->setCategoryId(current($categories->getIterator())); | |
+ $this->setCategoryId(current($categories->getIterator())->getId()); |
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
Controllers that have added form key validation: | |
$ git grep --files-with-matches "this->_validateFormKey())" <core_sources_update_commit_hash> | |
<core_sources_update_commit_hash>:app/code/core/Enterprise/Checkout/controllers/CartController.php | |
<core_sources_update_commit_hash>:app/code/core/Enterprise/GiftRegistry/controllers/IndexController.php | |
<core_sources_update_commit_hash>:app/code/core/Enterprise/GiftRegistry/controllers/ViewController.php | |
<core_sources_update_commit_hash>:app/code/core/Enterprise/Reward/controllers/CustomerController.php | |
<core_sources_update_commit_hash>:app/code/core/Enterprise/Wishlist/controllers/SearchController.php | |
<core_sources_update_commit_hash>:app/code/core/Mage/Catalog/controllers/Product/CompareController.php | |
<core_sources_update_commit_hash>:app/code/core/Mage/Checkout/controllers/CartController.php |
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
sudo pecl install xdebug | |
sudo wget -O /etc/php/7.2/mods-available/xdebug.ini https://gist.githubusercontent.com/drobinson/5979612/raw/73636ae1bb4e4864f4d7f816d8e83f496c47e52c/xdebug_settings.ini | |
sudo ln -s /etc/php/7.2/mods-available/xdebug.ini /etc/php/7.2/apache2/conf.d/25-xdebug.ini | |
sudo service apache2 restart |
OlderNewer