Sometimes, after upgrade Magento, and introducing a new template, You may not see it. Why? Because each product can have a changed template to ‘default/default’. Solutions: 1) just save product in admin panel 2) write simple SQL script, updating product attribute ‘custom_design’ to null or set it blank 3) write php code, using Magento API, […]

Read more

Edit app\design\frontend\theme\default\layout\customer.xml add action :

to wrapper block, like this:

Read more

The JVM could not be started. The maximum heap size (-Xmx) might be too large or an antivirus or firewall tool could block the execution.

To resolve this problem, set up new system variable in windows: Variable name: JAVA_OPTS. Variable value -Xms256m -Xmx512m Or just edit file : PhpStorm_Install\bin\PhpStorm.exe.vmoptions by increase or decrease -Xmx and -Xms paremeter

Read more

Delete magento attribute with options and values

Info about this type of attribute, may be stored also in ‘customer_form_attribute’ table.

Read more

MySQL create, update and delete user

Create database

Create user

Update user


Read more

Saving product with data like this: $ids = array(‘1′,’1′,’2’); $_product->setWebsiteIds($ids); makes error : “SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry …”. To avoid this error, just use function array_unique, on $ids array. This solution, i think, could be implemented as default in new version of Magento.

Read more

Remove get param from url

Read more

Read more

Upgrade Magento from 1.3, 1.4 .. to latest via ssh






6. If You have got an error: “Channel ‘community’ already exist!” try this:





11. If You have some error, try this:

12. After that, just load front page, and try to solve the rest of […]

Read more

Arrow keys in terminal: [[A^[[B^[[D^[[C

If you try use arrow keys in terminal and get sth like: [[A^[[B^[[D^[[C just do: cd /etc sudo nano passwd and replace /bin/sh to /bin/bash near your username

Read more