To get all the ordered items of the order use the following code. <?php $order_id = 2314; //use your own…..
A collection of Code Snippets and articles of the latest
Technology and Open Source.
As the PEAR is the code repository of php so is the CPAN of PERL. Any module can be easily and directly installed and activated using the command line interface on windows. Just follow these steps Open the command prompt. Start > run > type cmd. If Environment Variables set properly then the command can be run directly otherwise first go to the perl directory. eg i have installed xampp in F Drive. So I changed the directory to F:\xampp\perl. To change the directory use the command “cd \xampp\perl”. Now when you are in the right directory "F:\xampp\perl" type "ppm" and hit enter. If ppm or "Perl Package Manager" is installed properly than the prompt will look like "PPM>". Now simply run the install command with desired module name to load. For example we are going to install "Text::CSV" module. Type Command - "install Text::CSV" and press enter. Prompt will ask – "Install package Text::CSV (y/n)?". Type “y” (without quotes) and press enter. If everything is fine than module will be installed.
Slug is the seo friendly format of any text string. A slug is a text string contains alpha-numeric characters only,…..
We have customer email id and we want to get the other details of the customer. <?php $customer_email = “email@example.com”;…..
Magento is a complete and awesome MVC application. It’s fully moduler and easy to extend its features and functionality. All…..
Removing or Adding top links in the header section of the theme is very easy via Layout.xml files. However we…..
Magento uses blocks terminology in its architecture to display the views. Blocks are classes in Magento modules which handles the…..
To get the parameters passed in the controllers use the following code.Retrieve URI parameters.
$params = $this->getRequest()->getParams(); $id = $params["id"]; $name = $params["name"];Retrieve Post parameters.
$id =$this->getRequest()->getPost("id"); $name = $this->getRequest()->getPost("name");