DecryptWeb Blog

Opensource Web Solutions

Custom Email Templates in Magento

Hello, I am explaining here the method for sending custom emails using the custom email templates with variables. 1) Create an email template from Admin-end > System > Transactional Emails, for example lets put this as Template Content 2) Suppose the id of the template created is 3 3) Below code you can write in […]

Empty Cart in Magento

In one of my project, I needed to explicity delete the items from cart after order placed. You can also use this script for making a functionlity for giving an option for empting the cart at once from cart page. Here is the script for the same. Place it in function ‘successAction’ in app\code\local\Mage\Checkout\controllers\OnepageController.php (copy […]

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/ to /app/design/frontend/default/yourtheme/layout/sales/. After copying […]

Customer Groups in Magento

Hello All, I am writing here a script for displaying a select box of customers group. There exists a Helper file for Customer at app/code/core/Mage/Customer/Helper/Data.php . We need to extend this class for using the default function Create a sample module inside local I have used the Namespace ‘Decryptweb’ for my custom module. For custom […]

Scroll to top