Generrally in magento store some of the default functionality and modules are there which comes by default in some location.Some people needs these default blocks and some don't.That means they need to disable those undesire modules or blocks.In this article I am going to show you how to disable some of default modules and blocks of content, like the callout banners in the right and left columns, or the poll, or newsletter signup.Also here you will be getting two different ways for disabling default modules and block content like:
Showing posts with label php. Show all posts
Showing posts with label php. Show all posts
24 Feb 2014
20 Feb 2014
Get list of categories ,subcategories and sub-subcategories in custom script
This tutorial is going to show you one of the ways to list all sub-categories and sub sub categories through custom script for your Magento store.In This script I have shown all subcategories on the basis of main category means Root Catalog's Id.
If you change the $id = 1 then it will display suabcategory upto the first level that looks like below.
If you change the $id = 1 then it will display suabcategory upto the first level that looks like below.
18 Feb 2014
Magento : How To Remove Back To School Block On Right Side That Comes Up After Checkout
Simple You can do by commenting the some codes in catalog.xml file by :
app\design\frontend\base\default\layout\catalog.xml
if you have installed any theme then according to that theme location :
app\design\frontend\default\yourtheme\layout\catalog.xml
app\design\frontend\base\default\layout\catalog.xml
if you have installed any theme then according to that theme location :
app\design\frontend\default\yourtheme\layout\catalog.xml
10 Feb 2014
Magento : Get Base Url,Skin Url,Media Url,Js Url,Store Url and Current Url
There are different way to retrieve different URL paths depending in which section you’re editing.So Magento Mage Core, Admin Static Blocks, or Phtml edits are usually includes getting url path such images, javascript, base url, media and store url.Lets get the different URL on different location by following the below examples.
9 Feb 2014
How to Install Yii Application in Wamp Server(windows-7/8)
This is my first tutorial regarding Yii so I am showing all necessary steps and how to install the framework in wamp server.Before starting your Yii application in windows server you need set your php engine location in environment variable.Installing Yii framework is not as easy as Codeigniter, which is basically just copy and pasting framework in WAMP root. Installing Yii is little bit tricky as compared to Codeigniter. In this tutorial I will try to make it easy by giving you step by step explanation. So lets start.
Before giving all the steps I assume you have installed your wamp server having the directory
"C:\wamp\" and also I am showing all the details by testing through my system.
28 Jan 2014
Odesk php 5 exam question and answer
Question: You have two strings, which you want to concatenate.
$str1 = ‘Have a ‘;
$str2 = ‘Nice Day’;
The fastest way would be:
a. $str1.Concat($str2);
b. $str1.$str2;
c. “$str1$str2”;
d. None of the above
$str1 = ‘Have a ‘;
$str2 = ‘Nice Day’;
The fastest way would be:
a. $str1.Concat($str2);
b. $str1.$str2;
c. “$str1$str2”;
d. None of the above
23 Jan 2014
Magento: event observer with save before and save after
Here I am going show how to create a simple product attribute programatically.I have created a simple script which is creating the product attribute when I do install my module or upgrade my module.So please look at the below code which I have created.
21 Jan 2014
Magento: different form fields in admin form part two
For First Part Please take look
Magento : different form fields in Admin form part one
In this article I am going to show how to add different form fields that you can use in admin forms e.g : text,button,radio..etc. app/code/local/MyNamespace/MyModule/Block/Adminhtml/Mymodule/Edit/Tab/Form.php
Magento : different form fields in Admin form part one
In this article I am going to show how to add different form fields that you can use in admin forms e.g : text,button,radio..etc. app/code/local/MyNamespace/MyModule/Block/Adminhtml/Mymodule/Edit/Tab/Form.php
19 Jan 2014
Magento: Creating custom attribute using sql setup in custom module
/* Magento: Creating custom attribute using sql setup in custom module */
Here I am going show how to create a simple product attribute programatically.I have created a simple script which is creating the product attribute when I do install my module or upgrade my module.So please look at the below code which I have created.
11 Jan 2014
Magento: How To Subscribe Customer Email Id To Newsletter Subscription List Automatically
Sometimes we need to auto subscribe the customer email address without knowing to customer if he visit to our site or click on any events in the site .So in magento that functionality is also available but that generally goes through customer permission .but here you can set by below code to newsletter subscription list .
10 Jan 2014
Magento :Custom Form With Default Validation
/* Magento :Custom Form With Default Validation */
When I was new in magento.I had found in registration form of customer there are some default validation . I was really getting wondered that where that is ? Now I don’t like you to be wondered .That means there are some default classes available in magento which are present in validation.js file.So please the following details then you will be understood.So I have taken the below html as an example html.
14 Nov 2013
Magento : Auto Newsletter Subscription For Both Guest And Register User
Hi friends I have a post which only subscribe the email of customer as a guest user automatically .But now acording to my your update I am writing this article which will subscribe the email id to newsletter subscription section by checking whther that eamil already registered or not. If that email id is resistered the subscription will be saved as like below
12 Nov 2013
Magento : List Of Prototype Javascript Validation Classes With Error Message
As U know there are some default classes in magento form field for validation.Like required-entry , validate-email ..etc.So I am here showing to you all the default classes present in Magento (ver. 1.7.0.2) for form validation .
11 Nov 2013
Magento: Setup Cron Jobs In Custom Module
Sometimes in magento we need some task to be run , i.e. these tasks/actions need to be performed periodically like:………….
- Refreshing Catalog Price Rules
- Sending Newsletters to customers
- Generating Google Sitemaps and submitting it to Google
- Sending Customer Notification about product price change or product back in stock
- Updating currency rates
- Making backups
- Cleaning logs
- Sending Newsletters to customers
- Generating Google Sitemaps and submitting it to Google
- Sending Customer Notification about product price change or product back in stock
- Updating currency rates
- Making backups
- Cleaning logs
9 Nov 2013
Magento : Get Available Attribute Set Id's And Names From External Script
According to the requirements of your's I have built the external script which will give all the attribute sets which are available under admin => manage attribute sets section . So please check the below coding.
I have placed this script in dir \magento\getAttributeSet.php means in root directory of magento installation folder.
I have placed this script in dir \magento\getAttributeSet.php means in root directory of magento installation folder.
8 Nov 2013
Magento : Set Meta Title Automatically Save After Product
Here I would just like to save the meta tilte field automatically with similar to produuct name If I save click on the Save or Save and continue edit button in magento admin.for This I will create a Observer through which I can Update the meta_title attribute and save in data base so that If I create a product then meta title filed will be filled up automatically by help of product name .For that I will be using an magento events catalog_product_save_after.The event which called after save of catalog product So please check the below code for reference :
7 Nov 2013
Magento: Speedy Attribute Updates
Generally for updating our attribute value in admin we do like :
Magento : Get Attribute Set Name And Category Name By Product Id
Please follow the below code How to get attribute set name and Product's category name :
6 Nov 2013
Magento: Using Or And And Query Condition To Collection
Please check the below details how we can use AND and OR query condition in magento collection.
Product collection :
Product collection :
5 Nov 2013
Magento: Get Product By Sku
Suppose I have a product object called $product and I want get all the information of that product with reference to SKU .So for that I need to do like below coding.
Subscribe to:
Posts (Atom)