·

photo credit: Simon & His Camera via photopin cc

Create an install- or upgrade script in Magento that creates a static block

Ever been in the situation where your next update for your clients’ Magento installation requires adding a new static block? Don’t feel like logging in on the live site and doing it manually? Just add this little code snippet in your setup- or update-script to create that static block on the fly:

The only thing you need to do is fill the data array with the proper content and you’re all set!

Visitors give this article an average rating of 4.3 out of 5.

How would you rate this article?

Leave a Reply