howto

Magento: Add upload field to contact form

<?php
$URL="http://dl.panticz.de/magento/contact_attachment/form.phtml.diff";
echo "wget -q $URL -O - | patch -p2 \
/var/www/app/design/frontend/default/default/template/contacts/form.phtml";
echo "

";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
echo htmlspecialchars(curl_exec($c));
curl_close($c);
echo "

";
?>

<?php
$URL="http://dl.panticz.de/magento/contact_attachment/IndexController.php.diff";
echo "wget -q $URL -O - | patch -p2 \
/var/www/app/code/core/Mage/Contacts/controllers/IndexController.php";
echo "

";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
echo htmlspecialchars(curl_exec($c));
curl_close($c);
echo "

";
?>

<?php
$URL="http://dl.panticz.de/magento/contact_attachment/Mage_Contacts.csv.diff";
echo "wget -q $URL -O - | patch -p2 \
/var/www/app/locale/de_DE/Mage_Contacts.csv";
echo "

";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
echo htmlspecialchars(curl_exec($c));
curl_close($c);
echo "

";
?>

Links
http://www.blog.magepsycho.com/adding-upload-field-in-contact-form-and-send-as-attachment/
http://www.magentocommerce.com/boards/viewthread/440759/

Install docky, gnome-do, gnome-shell and zeitgeist

# install gnome-do
sudo add-apt-repository ppa:do-core/ppa
sudo apt-get update
sudo apt-get install gnome-do

# install zeitgeist
sudo add-apt-repository ppa:zeitgeist/ppa
sudo apt-get update
sudo aptitude install zeitgeist

# install gnome-shell
sudo add-apt-repository ppa:ricotz/testing
sudo apt-get install gnome-shell
gnome-shell --replace

# Links
http://wiki.go-docky.com/index.php?title=List_of_helpers
https://addons.mozilla.org/de/thunderbird/addon/72199 - Docky Unread Count (Thunderbird extension)

Configure Terms and Conditions in Magento (AGBs)

install Market Ready Germany module
http://www.panticz.de/magento_market-ready-germany

Edit condition
Admin Panel > CMS > Static Blocks
click on "AGB"
edit Content
[ Save Block ]

click on "Widerrufsbelehrung"
edit Content
[ Save Block ]

#### OLD ###

# ToDo
# create Terms and Conditions for EVERY language in shop

Create condition
Admin Panel > Sales > Terms and Conditions
[ Add New Condition ]
Terms and Conditions Information
Condition Name: AGBs
Status: Enabled