Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Could not determine temp directory, please specify a cache_dir manually

"Could not determine temp directory, please specify a cache_dir manually" in Magento Some times this error occur when you transfer the code to your server. This error mostly occur with Shared Server. To Solve it follow the below steps - ...

Understand Drupal patches and apply them using git

Hi All, I was confused about how to implement patches into our Drupal modules or in other files. There is a way to apply these patches automatically. We have to install git bash and then we can apply available patches and as well as create new...

Sending custom emails in Magento Without Template

*It's simple to send custom emails in magento by using zend mail function with success and error messages see the following code * public function postAction() { $params = $this->getRequest()->getPost(); $re...

Redirect urls in magento with parameters

we can redirect urls in magento with parameters by using magento's default _redirect() function you have to create an array for parameters you want to use in url see the following example: $param = array( '_query'=&g...

Problem with required feed url fields in feeds importer

Feeds module provides functionality to import contents from feed urls. We can setup feeds module according to: https://drupal.org/documentation/modules/feeds There are 2 ways to import feeds 1: attach to any content type 2: Use a sta...

Fetching all pending orders in Magento

Fetching all pending orders and customer details in magento <?php $orders = Mage::getModel('sales/order')->getCollection() ->addFieldToFilter('status', 'pending') ->addAttributeToFilter...

Creating products with custom options in Magento Programming

we can create products with custom options by programming in Magento follow the steps : Create a form to submit all mandatory details to create a products Post all details to form controller to save product public function saveproductA...

Cakephp - Using Config.php

We can use config.php in cakephp to define constant which need to be used in our whole project example we have different role id for different users.We can define those user corresponding to their role id and can easily access them through out ...

Translation module in drupal

If you have to add a multilingual feature in your drupal site then you can use 'Lingotek Translation' module. It provides machine translation as well as human translation for content type, fields labels, built-in terms, messages and for all keyw...

Custom query in magento

Write custom query in magento - $resource = Mage::getSingleton('core/resource'); //---create a connection $readConnection = $resource->getConnection('core_read'); //-----------read mode connection (fetch data)-------- $writeConnection ...

Multiple -Language website USING InternationalizationAND Locale

Hii friends, Many of you when you will start making a website in drupal will need to provide multiple language support.And providing so if you follow these easy steps you can easily make it. For making a multiple language site you need to conf...

Make a Multi-Language Article in drupal 7

Hii friends, many of you when you will start making a website in drupal will need to provide multiple language support.And providing so if you follow these easy steps you can easily make it. For making a multiple language site step1:-You s...

Fetch feeds from youtube in drupal 7

HTML parser and can fetch data from existing URLs. Feeds is the way to go fetch rss feeds. Some parsers for Feeds that can suit as per your need are given here . Modules required to fetch youtube feeds Feeds it import's or aggregate's ...

Sending email using drupal_mail()

Sending email using function drupal_mail(). All you need to do is install and configure SMTP module and then add the given code in your custom module. function sendemail(){ $to = ' xyz@gmail.com '; $from = ' abc@gmail.com...

Add/Delete group price in magento pro-grammatically

Load product by Sku or Id - $u_product = Mage::getModel('catalog/product')->loadByAttribute('sku', $sku); 2 - Delete group price $u_product->setData('group_price',array()); $u_product->save(); 3 - Add new group...

Hide certain fields from the form in Drupal

In order to hide certain fileds from form in drupal function hook&#95;form&#95;alter(&$form, &$form&#95;state, $form&#95;id) { if ($form['form&#95;id']['#id'] == 'fomr-id') { $form['field&#9...

Delete files from folder in cakephp 2.X

If anyone wants to delete file from the folder can use this code. App::uses('File', 'Utility'); $file = new File(WWW&#95;ROOT .'subcategory/thumbs/abc.jpg', false, 0777); if($file->delete()) { echo "File Deleted"; }

Delete Category and Products by ids in magento Programming

Delete category and Products By Ids in Magento by following the steps: 1 - Deleting Category: send category id with Query String to controller such as getUrl('catalog/category/deletcat').'?id='.$catId; ?>" title="Delete"> ...

'is_in_stock' or inventory filter in product collection in magento

Below code will return you the products of a category that have status 'Enable' , Visibility 'catalog,search' and Stock Availability ' In stock'. $productDetails = Mage::getModel('catalog/category')->load($cat_id) ...

Update quantity of product programattically in magento

Update quantity of product programmatically in magento //----------update Quantity--------- $prod= Mage::getModel('cataloginventory/stock_item')->loadByProduct($productid); $prod= $prod->getId(); $prod->setData('manage_stock', 1); ...

The magnificence of Drupal

Drupal is a free and open-source content management system. It is being used by around 2.1 % websites, ranging from personal blogs to corporate, political and government websites, all round the world. Drupal contains all basic features common...

The advantages of Joomla

Joomla is one of the most popular open source CMS. It is free and easily customizable. This makes it suitable for both greenhorn users and developing professionals to create websites and potent web applications. Its easily deployable, has a n...

Hide format text from body in drupal

If anyone wants to hide the format text from the body field in drupal then try it:- // override hook_form_alter function CUSTOM_MODULENAME_form_alter(&$form, &$form_state, $form_id) { if($form_id == 'restaurants_node_f...

Programatically Creating Custom csv files in Magento

It's simple to create custom csv in magento . follow the steps to create custom csv. Create a controller to access data that you want to export in csv file like as below: public function createcsvAction(){ $param = $thi...

Bakery module error

If you install bakery module in drupal for single signon functionality and you get fatal error on bakery_encrypt() function of bakery module, then please check php-mycrypt into your server. If it is not installed in your server, install that exte...

Effortlessly managing your website using a Content Management System

The way that the internet has gripped the entire world compels every business to have a web presence. A web presence is a gateway to higher clients and in turn more business. Till not so long back creating and managing a website was like teaching...

Cakephp - Using multiple database

Many a times we need use multiple database as per the domain or some other reason . We can easily achieve it with the following code in cakePhp. Write the following code in app->config->database.php class DATABASE_CONFIG { publ...

Cakephp - Using Auth

We can use Auth component in cakephp for authentication and authorization objects. Since it easy and secure way to do this. Write following in your App controller public $components = array( 'Auth' => array('loginAction...

Display all Simple Products Associated To Configurable Product

<?php $_cat = Mage::getModel('catalog/layer')->getCurrentCategory()->getId(); $_productCollection=$this->getLoadedProductCollection(); $_helper = $this->helper('catalog/output'); ?> <?php $cat = Ma...

VariableSet() and variableget() in drupal

Creating a form which contains two text fields and a submit button.Main aim is to save data and get the sabed values when needed. variableset() and variableget() functions to store and retrieve data. /* * Create a form */ function mymenu_...

Single sign on on sub-domain in drupal

We can use Bakery SSO module for single sign on in drupal 7. It works with portal or master site and sub-sites or slaves sites, it provides the following features:- 1) If login into the portal site and navigate to sub-site, user will be auto-l...

Skipping Shipping Methods in Magento Checkout

For Remove Shipping Methods you need to change its function This code is working for me in 1.7.0.2 but you can try this for older version also A) Open Mage/checkout/controllers/Onepagecontroller.php In this File Go to on function saveBil...

Programatically create products in Magento

public function saveproductAction() { $categoryId = $_REQUEST['catId']; $productName = $_REQUEST['ProductName']; $productDesc = $_REQUEST['productDesc']; $productPrice = $_REQUEST['productPrice']; $prod...

Joomla Release 3.2

New features in Joomla 3.2. As I am working with few technologies and Joomla is one of them, I thought let me update you with information regarding the new release in of Joomla 3.2. Joomla team has recently released a new version of Jooml...

Delete Test Sales/Order data from Magento

To **delete the test sales/Order data from magento** run the below queries in your magento database -- SET FOREIGN_KEY_CHECKS=0; ############################## # SALES RELATED TABLES ############################## TRUNCATE `sales_flat_c...

how to set a custom message using form_alter in Drupal

At times we need to change the message that is displayed after a node is saved.Follwing code helps to customize using form_alter. function mymodule_form_alter(&$form, &$form_state, $form_id) { if($form['form_id']['#value'] =='fo...

Print query in magento

/----------Get products collection --------------/ <p>$allproducts = Mage::getModel('catalog/product')-&gt;getCollection()-&gt;addAttributeToSort('name', 'ASC');;</p> It will return you total products, sorted by name i...

Simple Cakephp Pagination

Cakephp provides a quick an easy way to paginate data. In the controller we start by creating the pagination condition as given below : public $paginate = array( 'limit' => 10, 'order' => array( ...

Why to prefer Magento over Zen cart

As eCommerce market in India is about to grow over $24 Billion USD by the end of 2015.To grab the opportunity of this growing market there are many eCommerce stores are coming up and each facilitating new features to make the user experience gr...

Programmatically create coupon codes in Magento

Create backup for your database and project directory 2.create a form to post the coupon code information. such as <div class="descriptionBox"> <h2>Create New Coupons</h2> ...

Salesforce web-to-lead integration in Drupal 6

Salesforce is becoming popular which is used for tracking sales leads, managing mailing lists etc. Drupal webform is a bridge module that helps to feed submitted data into salesforce. Salesforce Integration require following modules to be ins...
1 2 3 5 next
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: