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 -L app/design/frontend -regex '.*\(shipping\|billing\|shipping_method\|payment\).phtml' -exec grep -L formkey {} \; \ | |
| xargs sed -i 's/<\/form>/<?php echo $this->getBlockHtml("formkey") ?><\/form>/g' | |
find -L skin/frontend -name 'opcheckout.js' -exec grep -L form_key {} \; \ | |
| xargs sed -i 's/if (elements\[i\].name=='\''payment\[method\]'\'') {/if (elements[i].name=='\''payment[method]'\'' || elements[i].name == '\''form_key'\'') {/g' |
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
<?xml version="1.0"?> | |
<!-- | |
/** | |
* Copyright © 2016 Magento. All rights reserved. | |
* See COPYING.txt for license details. | |
*/ | |
--> | |
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> | |
<body> | |
<!-- Remove unwanted account navigation links --> |
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
#!/bin/bash | |
# Install dependencies | |
apt-get install libsqlite3-dev ruby1.9.1-dev | |
# Install the gem | |
gem install mailcatcher | |
# Make it start on boot | |
echo "@reboot $(which mailcatcher) --ip=0.0.0.0" >> /etc/crontab | |
update-rc.d cron defaults |
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 | |
/* | |
+ If you want, you can set manually the '$storeId' with the number (id) of the desired store. | |
+ You can also change 'Mage_Core_Model_Store::URL_TYPE_LINK' with one of these: | |
- Mage_Core_Model_Store::URL_TYPE_JS | |
- Mage_Core_Model_Store::URL_TYPE_LINK | |
- Mage_Core_Model_Store::URL_TYPE_MEDIA | |
- Mage_Core_Model_Store::URL_TYPE_SKIN | |
- Mage_Core_Model_Store::URL_TYPE_WEB |