magento

Increase session timeout to one day (API and SESSION)

Session SQL
INSERT INTO core_config_data(path, value)
VALUES ('web/cookie/cookie_lifetime', 86400)
ON DUPLICATE KEY UPDATE value = 86400;

or manual:
System -> Configuration
General > Web
Session Cookie management
Cookie Lifetime: 86400

API SQL
INSERT INTO core_config_data(path, value)
VALUES ('api/config/session_timeout', 86400)
ON DUPLICATE KEY UPDATE value = 86400;

or manual:
System -> Configuration
General > Services
Magento Core Api
General Settings
Client Session timeout (sec.): 86400

NoRegion

http://www.magentocommerce.com/extension/1826/mxperts--noregion
/var/www/pear install magento-community/Mxperts_NoRegion

Change Magento Default Theme

# Modern
cd /var/www
/var/www/pear mage-setup /var/www
/var/www/pear install magento-core/Interface_Frontend_Default_Modern

System > Configuration > Design > Themes
Default: modern

# Blank
cd /var/www
/var/www/pear mage-setup /var/www
/var/www/pear install magento-core/Interface_Frontend_Default_Modern

System > Configuration
General > Design > Themes
Default: blank

# Links
http://www.magentocommerce.com/design_guide/articles/working-with-magento-themes#head-say-hello-to-multiple

Magento configuration

Parse error: syntax error, unexpected $end in /web/1/000/027/003/70880/htdocs/includes/common.inc(1537) : eval()'d code on line 16

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

# install webserver
http://www.panticz.de/install_webserver
 
# 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
 
# change to target directory
cd /var/www/
 
# install magento
URL=http://www.magentocommerce.com/downloads/assets/1.4.0.1/magento-1.4.0.1.tar.bz2
wget ${URL}
tar -xjf magento-*.tar.bz2
rm magen

MagentoConnector - Connecting to Magento API with Java using SOAP

Hello everybody!
 
I am currently writing a Magento Connector for Java. The goal is to create a free wrapper / library to manage 
Magento informations from a Java application. The latest version (source code) can be downloaded from 
http://code.google.com/p/magja/ If someone is interested in co-development, please contact my over my homepage,
http://www.panticz.de/contact 
 
Greeting
 
Pawel
 
 
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=2Gb
[ -z $DOMAIN_HDD ] && DOMAIN_HDD=20Gb
 
# create domU
http://www.panticz.de/Xen-domU-ubuntu-jaunty
 
# create separate www patition
lvcreate --name ${DOMAIN_NAME}-www --size 40G vg0
mkfs.ext3 /dev/vg0/${DOMAIN_NAME}-www
 
vi /etc/xen/${DOMAIN_NAME}
(add)
'phy:/dev/vg0/mrwww-www,sda3,w',
 
# post config domU
mount /dev/vg01/${DOMAIN_NAME}-disk /mnt/
echo "/dev/sda3 /var/www ext3 defaults 0 0" >> /mnt/etc/fstab
umount /mnt
 
# a

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

Magento

Log in to Admin Panel
http://192.168.1.88/magento/index.php/admin/
user: admin
pass: 123123

create DomU for Magento
http://www.panticz.de/Xen_domU_Magento

backup Magento
# backup filesystem (without product images)
tar -cjf magento.ftp.back.$(date -I).tar.bz2 --exclude=/var/www/magento/media/catalog/product/i/m/* /var/www/magento/
# backup database
mysqldump --password=magento --user=magento magento | bzip2 --best > magento.db.back.$(date -I).sql.bz2

change category order to alphabetic

Do you like this page? Then support it. Please click the AD below and visit the sponsor. Thank you!

Syndicate content