A lot of sites have a seasonal sale which needs turned on and promoted at different times during the year .
This code takes the ID of a sale category and checks if the category is active.
If the cateogry is active it will print a link to the category whos URL is regulary updated to whatever type of sale is on “/winter-sale”, “/season-sale” etc.
This little script is an excellent time saver for adding a new attribute to all of the attribute sets configured in your Magento store.
There are a few attributes to update:
**ATTRIBUTE CODE**with the code of the attribute you wish to add.
**ATTRIBUTE GROUP NAME**with the group name
**SORT ORDER**with sort order you want it to display, as you’d expect.
Upload the script to the Magento root folder and hit with your browser.