23 Dec, 2024
In this artical we are discuss about what is modules and how to use modules in Python. The propensity of computer code is to expand. We can conclude that code…
The ACID properties—Atomicity, Consistency, Isolation, and Durability—are fundamental principles that ensure reliable transactions in a database. To know more about ACID Properties, This article focuses on two key properties: Atomicity…
MySQL has InnoDB storage engine, that strictly follow the ACID Model to prevent data corruption and results distortion from unexpected occurrences like hardware failures and software crashes. You don’t have…
A key idea in software development is the singleton design pattern, which offers a straightforward method of guaranteeing a class has a single instance and a global access point. This…
Within the profession of software engineering, design patterns are essential resources that help architects as well as developers effectively address common issues. The Factory Design Pattern is one such pattern…

How to install OpenERP 6.1 on Ubuntu 10.04 LTS

Step 1. Build your server sudo apt-get install openssh-server denyhosts Now make sure you are running all the latest patches by doing an update: sudo apt-get updatesudo apt-get dist-upgrade Now we’re ready to start the OpenERP install. Step 2. Create the OpenERP user that will own and run the application sudo adduser –system –home=/opt/openerp –group […]

Share your Love
4 mins read

Magento redirecting to old URL after duplicating site

On sitea.com, you might want to take a look at its database and the core_config_data table for the base URL. OR, you could try and execute the following query: UPDATE `core_config_data` SET `value`=’http://sitea.com/’ WHERE `value` LIKE ‘http://%’ LIMIT 2; do the same on siteb.com’s database for good measure UPDATE `core_config_data` SET `value`=’http://siteb.com/’ WHERE `value` LIKE […]

Share your Love
1 min read

How to display category images in Magento static cms page

Follow the code which show images of sub category in static cms page. <?php$_categories=$this->getCurrentChildCategories() ?><?php if($_categories->count()): ?><ul class=”category-links”>    <?php foreach ($_categories as $_category): ?>        <?php if($_category->getIsActive()):             $cur_category=Mage::getModel(‘catalog/category’)->load($_category->getId());             $layer = Mage::getSingleton(‘catalog/layer’);             $layer->setCurrentCategory($cur_category);             //$_imageUrl = $this->getCurrentCategory()->getImageUrl();         ?>        <li class=”<?php echo $this->htmlEscape($_category->getUrlKey()) ?>”>            <?php if($_imageUrl = $this->getCurrentCategory()->getImageUrl()){?>            <img src=”<?php echo $_imageUrl; ?>” alt=”<?php echo $this->htmlEscape($_category->getName()) ?>” />            <? […]

Share your Love
1 min read

magento show subcategories from categories in static block

For showing Subcategory please put this follow those steps   <?php /** * ** Instructions for Use ** * * 1. Upload this page to your installation at: * /app/design/frontend/[INTERFACE]/[THEME]/template/catalog/navigation/custom-category.phtml * * 2. Enter the following code in a static block: * {{block type=”catalog/navigation” name=”catalog.navigation” template=”catalog/navigation/custom-category.phtml”}} * * 3. Select the static block as the […]

Share your Love
1 min read