Magento get url with or without parameters

Posted by Damodar Bashyal on May 13, 2013

 

Magento lets you get url with or without parameters as below:

// get base url
Mage::getUrl()
// http://dltr.org/

More»

Magento Programmatically create a cms page

Posted by Damodar Bashyal on May 10, 2013

 

You can easily create a cms page in magento programmatically. Useful when you need to upload a bunch of pages from csv file. Here I haven't created a csv parser but just a simple code to save a cms page.

My file path: /magento/cms-page.php

More»

Magento Programmatically create a cms static block

Posted by Damodar Bashyal on May 10, 2013

 

You can easily create a static block in magento programmatically. Useful when you need to upload a bunch of blocks from csv. Here I haven't created a parser but just a simple code to save a block.

My file path: /magento/static-block.php

More»