magento

warning: Creating default object from empty value in /data/web/1/000/027/003/273448/htdocs/panticz.de/modules/taxonomy/taxonomy.pages.inc on line 33.

Magento configuration

Error loging
set_core_config_data "dev/log/active" "0"
/var/www/var/log/exception.log
/var/www/var/log/system.log

Disable review
System > Configuration > Advanced
Mage_Review: Disabled

Disable wishlist
vi /var/www/magento/app/design/frontend/default/modern/template/catalog/product/list.phtml
<?php if (!$this->helper('wishlist')->isAllow()) : ?>

Disable compare
vi /var/www/magento/app/design/frontend/default/modern/template/catalog/product/list.phtml

Lightbox

cd /var/www/
./pear install magento-community/magento_easy_lightbox
 
# enable by sql
INSERT INTO core_config_data (scope, scope_id, path,value)
VALUES ('default', 0 ,'easy_lightbox/general/enabled', '1')
ON DUPLICATE KEY UPDATE value = '1';
 
# clear cache
rm -r var/cache/
 
# enable in admin menu
change settings > Preferred State: "beta"
magento-community/magento_easy_lightbox
 
first LOGOUT and LOGIN again!
 
Admin > Templates-master >Easy Lightbox > General
Enable EasyLightbox: Yes
 
LINKS
http://www.magentocommerce.com/extension/1487/magento-easy-lightbox

Create Magento SOAP account

command line

wget http://www.panticz.de/sites/default/files/soap.txt -O /tmp/soap.sql
mysql -u magento -pmagento magento < /tmp/soap.sql

Create soap role
System > Web Services > Roles
[Add New Role]
Role name: API Full Access

Roles Resources
Resource Access: All

[Save Role]

Create soap user
System > Web Services > Users
[Add New User]
User Name: soap
First Name: soap
Last Name: soap
Email: soap@soap.com
Api Key: test123
Api Key Confirmation: test123
This account is: Active

User Role

Extend Magento Product Attribute Api

# OPTIONAL, install patch
apt-get install -y patch
 
# patch on command line
cd /var/www/
wget http://www.panticz.de/sites/default/files/api.xml_.diff -O /tmp/api.xml.diff
patch -p2 ./app/code/core/Mage/Catalog/etc/api.xml < /tmp/api.xml.diff
 
wget http://www.panticz.de/sites/default/files/Api.php_.diff -O /tmp/Api.php.diff
patch -p2 ./app/code/core/Mage/Catalog/Model/Product/Attribute/Api.php < /tmp/Api.php.diff
 
 
1. go to magento installation folder, for example /var/www/magento
 
2.

Install Magento

Installation
wget https://raw.githubusercontent.com/panticz/magento/master/scripts/install_magento.sh -O - | bash -

# install webserver
http://www.panticz.de/install_webserver

# install email
http://www.panticz.de/install-nullmailer

# OPTIONAL, remove previous magento instalation
echo "drop database magento" | mysql -u root -pterceS
rm /var/www/.htaccess*
rm -r /var/www/*

# configure database
echo "CREATE DATABASE magento;" | mysql -u root -pterceS
echo "GRANT all ON magento.* TO 'magento'@'localhost' IDENTIFIED BY 'magento';" | mysql -u root -pterceS

# install magento
URL=http://www.magentocommerce.com/downloads/assets/1.6.1.0/magento-1.6.1.0.tar.bz2
URL=http://www.magentocommerce.com/downloads/assets/1.7.0.0/magento-1.7.0.0.tar.bz2
URL=http://www.magentocommerce.com/downloads/assets/1.7.0.2/magento-1.7.0.2.tar.bz2
wget ${URL} -P /root

tar -xjf /root/magento-1.7.0.2.tar.bz2 -C /var/www/

# move magento to server root dir
mv /var/www/magento/* /var/www/magento/.htaccess* /var/www/
rm -r /var/www/magento/

# install demo data
URL=http://www.magentocommerce.com/downloads/assets/1.6.1.0/magento-sample-data-1.6.1.0.tar.gz
wget ${URL} -O /tmp/magento-sample-data.tar.gz
tar -zxf /tmp/magento-sample-data.tar.gz -C /tmp
mysql -u magento -pmagento magento < /tmp/magento-sample-data-1.6.1.0/magento_sample_data_for_1.6.1.0.sql
cp -a /tmp/magento-sample-data-1.6.1.0/media/* /var/www/media/

# set permissions
chmod o+w /var/www/var /var/www/var/.htaccess /var/www/app/etc
chmod -R o+w /var/www/media

# optional, change file owner
chown www-data:www-data -R /var/www

chmod +x /var/www/mage

# run pre install scripts (do we need this?) (BROKEN)
#export MAGE_PEAR_PHP_BIN=/usr/local/bin/php5  
export MAGE_PEAR_PHP_BIN=/usr/bin/php5
./pear mage-setup .
./pear install magento-core/Mage_All_Latest-stable


cd /var/www
chmod +x mage
./mage  mage-setup .



# optional configure php memory limit (DEP)
cat <<EOF>> php.ini
memory_limit = 128M
EOF

# optional configure php version (DEP)
cat <<EOF>> .htaccess
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
EOF

# install from command line
php -f install.php -- \
--license_agreement_accepted "yes" \
--locale "de_DE" \
--timezone "Europe/Berlin" \
--default_currency "EUR" \
--db_host "localhost" \
--db_name "magento" \
--db_user "magento" \
--db_pass "magento" \
--url "http://192.168.1.222/" \
--skip_url_validation "yes" \
--use_rewrites "yes" \
--use_secure "yes" \
--secure_base_url "https://192.168.1.222/" \
--use_secure_admin "yes" \
--admin_firstname "admin" \
--admin_lastname "admin" \
--admin_email "admin@exaple.com" \
--admin_username "admin" \
--admin_password "pass1234"




#
# OPTIONAL
#
# install mailer
http://www.panticz.de/install-nullmailer

# install php accelator
http://www.panticz.de/install-php-apc



# install magento in a sub directory
chmod o+w /var/www/magento/var /var/www/magento/var/.htaccess /var/www/magento/app/etc
chmod -R o+w /var/www/magento/media
find /var/www/magento -type d -exec chmod 777 {} \;

# create goto page
cat <<EOF> /var/www/goto.html
<html>
<head>
</head>
<body>
<strong>Magento</strong>
<ul>
<li><a href="/magento/index.php/">Frontend</a></li>
<li><a href="/magento/index.php/admin/dashboard/">Backend</a></li>
<li><a href="/magento/downloader/index.php">Content Manager</a></li>
<li><a href="/phpMyAdmin">phpMyAdmin</a></li>
</ul>
</body>
</html>
EOF

LINKS
http://YOUR_SERVER_IP/magento/index.php/ - store frontend
http://YOUR_SERVER_IP/magento/index.php/admin/dashboard/ - admin menu
http://YOUR_SERVER_IP/magento/downloader/index.php - connect manager
http://www.magentocommerce.com/wiki/groups/227/installing_magento_via_shell_ssh
http://www.magentocommerce.com/wiki/general/installing-magento-on-slicehost-with-ubuntu
http://www.magentocommerce.com/wiki/groups/227/command_line_installation_wizard
http://svn.magentocommerce.com/source/branches/1.1-trunk/install.php
http://blog.magentomagik.com/how-to-install-magento-extensions-magento-extension-installation-guide/ - How to install magento extensions

MagentoConnector - Connecting to Magento API with Java using SOAP

<strong>Project Magja on Google Code:</strong>
http://code.google.com/p/magja/
 
Magento Connector for Java, a free wrapper / library to manage Magento informations from a Java application. The latest version (source code) can be downloaded from 
https://github.com/panticz/magja
http://code.google.com/p/magja/
 
If someone is interested in co-development, please contact my over my homepage,
http://www.panticz.de/contact 
 
How to start:
1. create Magento API role and user
http://www.panticz.de/Create-Magento-SOAP-account
 
2.

Magento german tax

ADMIN BACKEND:
Sales > Tax > Product Tax Classes
rename classes:
default => Umsatzsteuerpfichtige Güter 19%
Shipping => Versand
Taxable Goods => Umsatzsteuerpfichtige Güter 7%
add classes:
Umsatzsteuerfreie Güter
 
# create tax class
Sales > Tax > Customer Classes
rename:
Retail Customer =>  inkl.

Language

Install languages
cd /var/www

# German: http://www.magentocommerce.com/extension/413/
./pear install magento-community/Locale_Mage_community_de_DE

# French: http://www.magentocommerce.com/extension/414/
./pear install magento-community/Locale_Mage_community_fr_FR

# Russian: http://www.magentocommerce.com/extension/391/
./pear install magento-community/Locale_Mage_community_ru_RU

Configure language (Store View)
Admin Panel > System > Manage Stores

Store: Main Website Store
Name: German
Code: de
[ Save Store view ]

Magento domU

# set domU parameter
[ -z $DOMAIN_NAME ] && DOMAIN_NAME=magento
[ -z $DOMAIN_MAC ] && DOMAIN_MAC=00:EE:EE:EE:EE:EE
[ -z $DOMAIN_RAM ] && DOMAIN_RAM=4Gb
[ -z $DOMAIN_HDD ] && DOMAIN_HDD=16Gb
 
# create domU (Local)
http://www.panticz.de/DomU-Debian-Squeeze
 
# create domU (Hoster)
http://www.panticz.de/Hetzner
 
# install magento
http://www.panticz.de/install_magento
 
 
#
# OPTIONAL
#
# create separate www patition
lvcreate --name ${DOMAIN_NAME}-www --size 128G vg0
mkfs.ext3 /dev/vg0/${DOMAIN_NAME}-www
 
vi /etc/xen/${DOMAIN_NAME}
(add)
'phy:/dev/vg0/mrwww-www,sda3,w',
 
#

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

click on "Widerrufsbelehrung"
edit Content
[ Save Block ]
 
 
 
 
 
#### OLD ###
 
# ToDo
# create Terms and Conditions for EVERY language in shop
 
<strong>Create condition</strong>
Admin Panel > Sales > Terms and Conditions
[ Add New Condition ]
Terms and Conditions Information
Condition Name: AGBs
Status: Enabled
Syndicate content