DecryptWeb Blog

Opensource Web Solutions

Blocks in Magento eCommerce

If you are using Magento Ecommerce, you might have created ‘Static Blocks’ for integrating custom functionality. I am listing here the method to create CMS Blocks. Suppose you want a custom box to be displayed on right column. 1) Go to admin section there is menu ‘Static Blocks’ in ‘CMS’. 2) Click ‘Add New Block’. […]

encode and decode string with base64

Many use encoding and decoding on daily basis including me, so once I made a simple script for encoding and decoding the input string with base64. base64.txt Instruction: 1) Download the file and save the text file as PHP file. 2) Place the file in your root directory. 3) Execute the file from browser. 4) […]

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 […]

Joomla essentials

Joomla is a very great CMS. I am listing below important variable used in joomla. JPath is used to get the directory path. DS — is used as a directory separator. JPATH_ADMINISTRATOR– Sets the path to /Joomla/administrator JPATH_BASE — sets the entry to joomla /Joomla JPATH_CACHE –Sets the cache path /Joomla/cache JPATH_COMPONENT — Sets the […]

Set Default Time Zone

Some of you may have faced the issue for converting timezone for displaying date and time. Means suppose you want to display current time in India, than what will you do for that. You might have added 5 hours and 30 minutes to the default time. But there is already a functionality for that in […]

Connect different database from Magento

Some of you might have worked on Magento. I am listing here points for connecting another database from Magento. 1) Suppose your database for Magento Project is named ‘magento’. 2) There is one other database named ‘wp’. 3) For using this database inside Magento, you need to setup connection in ‘config.xml’ file which resides in […]

Scroll to top