Aug 12, 2011
Disable ‘Billing Agreements’ and ‘Recurring Profiles’ in Magento
Hello All ,
From the new functionalities introduced from Magento 1.4.1.0 , two are ‘Billing Agreements’ and ‘Recurring Profiles’
Sad thing is that this cannot be disabled from admin completly.
For hiding the links from the navigation in ‘My Account’ section of Customer, you can copy billing_agreement.xml and recurring_profile.xml from /app/design/frontend/base/default/layout/sales/...
read more
Apr 26, 2011
Custom Footer Links Magento
Hello All,
When we install Magento, we can see that we have two rows in footer links (theme – default).
We can edit the links in the top row from CMS block with title ‘Footer Links’.
The links in the second row cannot be edited directly, they come from the XML files.
I am writing here the code for adding custom links in the second row.
Below code to be written in app/design/frontend/[your_package]/[your_theme]/layout/local.xml...
read more
Feb 26, 2010
Reading XML
I am listing here method for reading XML file or XML string with the help of PHP.
<?php
$xml =<<<EOT
<?xml version="1.0"?>
<root>
<section name="Section1">
<category id="Category1" name="google">
<article name="article1">value1</article>
</category>
<category id="Category2"...
read more
Jan 14, 2010
Generate XML
XML files are used for various functionalities.
We can develop XML files by using PHP.
If you have to develop very small project, you can use XML files for saving data instead of MySQL or any other databse with PHP, which will be easy for maintaining and response time will be reduced.
I am listing a simple example.
<?php
$doc = new DOMDocument();
$doc->formatOutput = true;
//$p = new domElement('products');
$p...
read more
