Skip to content

Instantly share code, notes, and snippets.

View Magento How to get the customer login, logout, register and checkout urls.php
login url
<?php echo Mage::getUrl('customer/account/login'); ?>
logout url
<?php echo Mage::getUrl('customer/account/logout'); ?>
My Account url
<?php echo Mage::getUrl('customer/account'); ?>
Register url
DevertNet /
Last active Feb 25, 2021
Linux / Backups
# Compress and Exclude!
tar -pczf MyBackup.tar.gz /home/user/public_html/ --exclude "/home/user/public_html/tmp"
tar -pczf backup_xxx.tar.gz ./public_html --exclude "./public_html/media" --exclude "./public_html/var/cache" --exclude "./public_html/var/log"
Muss auf dem Zielsystem ausgeführt werden z.B. Lokal.
rsync --progress --exclude=var/cache --exclude=var/log --exclude=var/session --exclude=/media --exclude=/tmp -aze ssh /home/leon/htdocs/bauchemie24/
# Uncompress
View GIT Auto Dump SQL on Commit
exec < /dev/tty
if [ ! -f ./system.txt ]; then
echo "File not found!"
read -p "Status of the system (local,dev or live)? [n]" -r
echo $REPLY > ./system.txt
dumpname=`cat system.txt`
DevertNet / test.attr.php
Created Oct 15, 2015
Magento Adding existing attribute to all attribute sets
View test.attr.php
replace show_in_price_search_engine with your attr code
replace General with antoher Tab
$dir = dirname(__FILE__);