Avenir | Drupal Development | Joomla Development | Magento Development | OsCommerce Development

Wednesday 22 February 2012

How to remove the PHP tag using preg_replace


$str= 'hi radha x,annnnnnn.......<? "pri";?> <?="pri";?> hi jo <?php ehco 'TEXT';?> Hi raja' ;

$removedPhpWrap10=preg_replace(array('#<\?(?:php)?(.*?)\?>#s'), array(''), $str);

Tuesday 21 February 2012

Module create steps


If you want to add custom DB-fields go to /new/local/Samplemod/Samplemod/sql/module_setup/mysql4-install-0.1.0.php

app/etc/modules/Samplemod_Samplemod.xml

app/code/local/Samplemod/Samplemod/Block/Samplemod.php

app/code/local/Samplemod/Samplemod/controllers/IndexController.php

app/code/local/Samplemod/Samplemod/etc/config.xml

app/code/local/Samplemod/Samplemod/Model/Samplemod.php

app/code/local/Samplemod/Samplemod/Model/Mysql4/Samplemod.php

Create the FORM in magento front end with module (Example: gallery module)

1. Exceute the following SQL code in your PHPMYADMIN


CREATE TABLE IF NOT EXISTS `avenirgallery` (
  `avenirgallery_id` int(11) unsigned NOT NULL auto_increment,
  `title` varchar(255) NOT NULL default '',
  `age` int(11) NOT NULL,
  `email` varchar(100) NOT NULL,
  `filename` varchar(255) NOT NULL default '',
  `cratetheme` varchar(100) NOT NULL,
  `yourname` varchar(50) NOT NULL,
  `location` varchar(50) NOT NULL,
  `content` text NOT NULL,
  `status` smallint(6) NOT NULL default '0',
  `created_time` datetime default NULL,
  `update_time` datetime default NULL,
  PRIMARY KEY  (`avenirgallery_id`)
);

Add new attribute into product catagory in magento and removing the same attribute

In any one of the .PHTML page paste the following code( i.e, app\design\frontend\base\default\template\page )
<?php

$setup = new Mage_Eav_Model_Entity_Setup('core_setup');

// Create input type as "Textbox"

$setup->addAttribute('catalog_category', 'author', array(
    'group'         => 'General',
    'input'         => 'text',
    'type'          => 'varchar',
    'label'         => 'Author',
    'backend'       => '',
    'visible'       => 1,
    'required'      => 0,
    'user_defined' => 1,
    'global'        => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
));

How to add multiple “Recipients” email address setting in Magento Admin Panel ?

To add additional Send Email TO/CC/BCC to this section, Open app\code\core\Mage\Contacts\etc\system.xml, and find below code


<recipient_email translate="label">
                  <label>Send Emails To</label>
                  <frontend_type>text</frontend_type>
                  <sort_order>10</sort_order>
                  <show_in_default>1</show_in_default>
                  <show_in_website>1</show_in_website>
                  <show_in_store>1</show_in_store>
  </recipient_email>

Friday 17 February 2012

Challenging Web Development Company Changes Your Fortune

In the Internet world, there is a vast population who are surfing the Internet for various purposes. On the whole, the marketers are people who make use of the Internet to attract and grab more consumers for their business. So they prefer on Internet Marketing. The World Wide Web is the right place to reach people all over the world it gives you endless prospects for your business. The Future Internet world will surpass high Internet access by the year of 2020. To bring your business to the online or Internet world, it is not only just creating a site. You have to make your online presence more visible to the Internet world. There are many people trying to compete to succeed but it is highly important to be unique and make your online business augmented.

Friday 10 February 2012

Why Joomla Development?

Nowadays many people build more attractive sites, but it is highly important to be unique among the plenty of sites available in the Internet. In the competitive Internet world it is vital to struggle and win the conflict. Many web developers create a professionalized site for various purposes like ecommerce, educational website, corporate websites, government sites, small or medium sized businesses and many more. Joomla is one of the best and powerful open source and content management system. Magento, Drupal, OScommerce and many more open source solutions are available to create an effectual site.

The main advantage of joomla, it is easy to access and install. To modify the site they need not require more technical knowledge. A website is the main foundation for developing your business or making more visitors to your site. So developing a site is very important and it is necessary to choose the right platform for building your website. Many web developers are well professionalized in creating and developing the site with many advanced features and benefits.

Friday 3 February 2012

The Top-Notch OScommerce Development Company

OScommerce is one of the best open source and ecommerce solutions. Nowadays many people prefer online businesses, since it reaches people faster. Usually many people like to do shopping through online. In the Ecommerce world it is important to make your business succeed through online by generating high sales and leads. Many OScommerce developers are professionalized and skilled in creating a stupendous OScommerce site.

There are various different add-ons, themes are available to enhance your site for easy navigation and easy to use. With the advanced features in OScommerce you can easily enable and configure the site. Creating the site in OScommerce, people will find many advantages like multiple payment gateways, easy to install and manage, surplus modules to download, create heaps of categories, community support, cost effective, shopping modules, secure shopping, shipping functionality, great flexibility and many more.