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
magento transaction email insert block | |
cms/content.phtml == just returt cms block content! | |
{{block type="cms/block" block_id="blockIdHere" template="cms/content.phtml"}} |
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
# /etc/nginx/sites-enabled/magento | |
server { | |
listen 80; | |
server_name ec2-184-72-68-219.compute-1.amazonaws.com; | |
root /var/www/magento/; | |
access_log /var/log/nginx/magento-access_log; | |
error_log /var/log/nginx/magento-error_log; | |
location / { |
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 | |
/** | |
* Add or remove trailing slash of the current URL | |
*/ | |
function correctTrailingSlash($base = "/", $trainlingSlash = false) { | |
// Load the URI data | |
$redirect = false; | |
$requestUri = $_SERVER["REQUEST_URI"]; | |
$queryString = $_SERVER["QUERY_STRING"]; | |
$serverName = $_SERVER["SERVER_NAME"]; |
NewerOlder