We are doing custom Magento themes, Magento design, custom Magento extensions and creative services through Magento designers & developers for worldwide shop owners.

Last News

Magento : Edit Remove And Override Top Links


Many developers want change the default structure of top links inside Magento , example you want remove my account link or edit URL of checkout link other play with label or title of log In log Out . This tutorial is for how done this work : 1- First go to app/design/frontend/default/yourtheme/layout 2- Edit Remove Override : – Edit top ... Read More »

Magento : display Best Selling products ,Most Viewed products , New products ,absolutely or by categories


many developers want use the feature of showing Best Selling products Most Viewed products or New products in home page right column or left column , this tutorials of how create the query for this function ,display absolutely or by categories : Show Best Selling products : Step 1: Create this file app/code/local/YourCompany/YourModule/Block/Product/Bestseller.php in your module and add content : ... Read More »

Magento : Get Searchable Categories and Get Searchable SubCategories


if you want add option of search by categories this tutorial is quickly give you the 2 functions for send query to db and given all Searchable Categories and SubCategories : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 public function getSearchableCategories() { $rootCategory = Mage::getModel('catalog/category')->load(Mage::app()->getStore()->getRootCategoryId()); return $this->getSearchableSubCategories($rootCategory); } public function ... Read More »

Magento : active deactivate or Change payment method,on city county or region change

magento acive payment method filter

many people want active for example cash on delivery payment method just for specific country region or city. I will explain how develop this technique in page checkout for any onestepchekout in magento : 1 – First go to desin/forntend/youtheme-or-base-default/template/onepagecheckout-or-onestepchekout/onepagecheckout.phtml and change (by example if you want active or deactivate payment method by region ) every line inside javascript code ... Read More »

Magento: get controller name,get module name,get action name ,get route name?


In Magento yyou can get controller name,get module name,get action name ,get route name inside BLock file , Template File , Controller File or any other class file : IN Blocks or Templates file (.phtml): get module name $this->getRequest()->getModuleName(); get Controller name $this->getRequest()->getControllerName(); get Action name $this->getRequest()->getActionName(); get Route name $this->getRequest()->getRouteName(); IN other class files get module name Mage::app()->getRequest()->getModuleName(); get ... Read More »

Magento : translate text inside cms page or static block without touching the core

translate cms block

For Translate Static block content you can use following directive in cms page or static block {{translate words="translate me"}} you are not finishing : For complete the work without touching the core by override the class Filter.php: A – Create file Filter.php in this path app/code/local/Mage/Core/Model/Email/Template/ (create all required folder) B – go app/code/core/Mage/Core/Model/Email/Template/ and open Filter.php file and copy ... Read More »

Magento : Get Base URL ,Get Skin URL ,Get Media URL ,Get Js URL,Get Store and Current Url

Magento : Get Base Url , Skin Url , Media Url , Js Url , Store Url and Current Url

many developers search quick tutorial for how getting segments url from any place inside magento . (Base , Skin , Media , Js , Store and Current Url ) , for phtml and cms (page or block) Url in phtml files 1. Base Url : Mage::getBaseUrl(); 2. Skin Url : Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN); (a) Unsecure Skin Url : $this->getSkinUrl('images/image.png'); (b) Secure Skin ... Read More »

Play with Block and Template inside controller


in many case you want create or modify block and template inside controller  : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 $this->loadLayout(); //change stucture of page to 1column $root = $this->getLayout()->getBlock('root'); $settemplate = "page/1column.phtml"; $root->setTemplate($settemplate); //add custom block and related to Block .php with custom template .phtml $block = ... Read More »

techniques of uploads files inside Magento

upload file inside magento

in many extensions developers need uploading file programmatically (images,css,js or others) from administration , or frontend side , in this tutorial i will give you the techniques of uploads files inside Magento : first : don’t forget to declare your from container with (‘enctype’ => ‘multipart/form-data’) with path example (YourPackage_YourModule_Block_Adminhtml_Edit_Form): 1 2 3 4 5 6 7 $form = new ... Read More »