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

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

Delete

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

1.

2.

3.

4.

5.

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

7.

8.

9.

10.

11. If You have some error, try this:

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

Read more