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 | |
| use Varien_Event_Observer as Event; | |
| class Test_PriceFilter_Model_Observer | |
| { | |
| public function catalogControllerCategoryInitAfter(Event $event) | |
| { | |
| //code goes here |
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
| #!/usr/bin/env bash | |
| cd /var/www/vhosts/partyshowroom/production/htdocs/ | |
| echo 'Turning off static signing' | |
| mysql -uroot -proot -Dparty_local<<<"UPDATE party_local.core_config_data SET value=0 WHERE path='dev/static/sign'" | |
| composer install | |
| echo 'Clearing magento cache...' | |
| rm -rf /var/www/vhosts/partyshowroom/production/htdocs/var/cache/* | |
| echo 'Clearing page cache...' | |
| rm -rf /var/www/vhosts/partyshowroom/production/htdocs/var/page_cache/* | |
| echo 'Setting developer mode' |
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
| INSERT INTO `core_config_data` (`scope`, `scope_id`, `path`, `value`) VALUES ('default', 0, 'dev/static/sign', '0'); |
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
| #!/usr/bin/env bash | |
| cd /var/www/vhosts/partyshowroom/production/htdocs/ | |
| echo 'Clearing magento cache...' | |
| rm -rf /var/www/vhosts/partyshowroom/production/htdocs/var/cache/* | |
| echo 'Clearing page cache...' | |
| rm -rf /var/www/vhosts/partyshowroom/production/htdocs/var/page_cache/* | |
| echo 'Restarting Varnish service' | |
| sudo /etc/init.d/varnish restart | |
| echo 'Clear generation files...' | |
| rm -rf /var/www/vhosts/partyshowroom/production/htdocs/var/generation/* |
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
| #!/usr/bin/env bash | |
| cd /var/www/vhosts/partyshowroom/production/htdocs/ | |
| composer install | |
| echo 'Clearing magento cache...' | |
| rm -rf /var/www/vhosts/partyshowroom/production/htdocs/var/cache/* | |
| echo 'Clearing page cache...' | |
| rm -rf /var/www/vhosts/partyshowroom/production/htdocs/var/page_cache/* | |
| echo 'Setting developer mode' | |
| php /var/www/vhosts/partyshowroom/production/htdocs/bin/magento deploy:mode:set developer | |
| echo 'Restarting Varnish service' |
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('abstract.php'); | |
| class Space48_Shell_Bundle_Options extends Mage_Shell_Abstract | |
| { | |
| /** | |
| * Entry point | |
| */ |
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('abstract.php'); | |
| class Space48_Shell_ProductIds extends Mage_Shell_Abstract | |
| { | |
| /** | |
| * Entry point | |
| */ |
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
| #! /bin/bash | |
| db_name='ofl_local' | |
| remotedb='https://s3-eu-west-1.amazonaws.com/jbgbackups/ofldotcom/ofldotcom.sql.dump.gz' | |
| cd /var/www/vhosts/oakfurnitureland.com/production/htdocs | |
| wget $remotedb | |
| echo "...Unzip ofl database" | |
| gunzip ofldotcom.sql.dump.gz |
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 | |
| //Note name children with unique names | |
| //<store_attachments> | |
| // <store_1></store_1> | |
| // | |
| //</store_attachments> | |
| $value = Mage::getConfig()->getNode('store_attachemnts')->asArray(); | |
| // or | |
| $value = Mage::getConfig()->getNode('default/store_attachemnts')->asArray(); |