Showing posts with label script. Show all posts
Showing posts with label script. Show all posts

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.

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.

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 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 



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.

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.

3 Nov 2013

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