Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged magento



1 1386 posted 14 years ago by rahijain
0 1334 posted 14 years ago by rahijain
En algunos escenarios es posible que ante ciertas acciones o resultados, debamos modificar algún valor que se encuentra en la configuración general de Magento. Para modificar un valor de la configuración general de forma programática (si, suen...
0 1364 posted 14 years ago by necode
0 1367 posted 14 years ago by slav123
Prints layout Handles.
0 2460 posted 14 years ago by JustMadMike
How long customer is inactive ?
0 1480 posted 14 years ago by necode
The fastest way is to create a php file and access it through browser add the following content to file.
0 1736 posted 14 years ago by necode
This article shows how to add default value to any system configuration option fields. System configuration option fields means those options under System -> Configuration. Suppose, you have the following system.xml file. System.xml file is necess...
0 1602 posted 14 years ago by necode
Insert that into the database as a string. The example would give you the format 2011-01-28
0 1858 posted 14 years ago by necode
If you are creating an admin module for Magento (learn creating admin module in Magento) then you would surely be asked to create grids (eg. for order listing). Creating grids can be somewhat difficult for the novice Magento programmers, but in this...
0 1689 posted 14 years ago by necode
A collection is a Model type containing other Models, it is basically used in Magento to handle product lists (ie. from a category or a bundle option), but not only. TO DO: Explain how Magento Implements a collection - Use this to explain how Mage...
0 1487 posted 14 years ago by necode
send mail with attached file examples: http://framework.zend.com/svn/framework/standard/trunk/tests/Zend/Mail/MailTest.php
0 1661 posted 14 years ago by necode
Embedding Google’s +1 button is pretty easy and straightforward. All it takes is to include 2 code snippets in your web page. One goes in the header of the page, and the other one goes to wherever where you want the +1 button to render. To do so al...
0 1635 posted 14 years ago by necode
Create a Hello World module in the Magento system Configure this module with routes Create Action Controller(s) for our routes
1 1801 posted 14 years ago by necode
Save config: http://inchoo.net/ecommerce/magento/how-to-programmatically-change-magentos-core-config-data/ http://www.magentocommerce.com/wiki/5_-_modules_and_development/0_-_module_development_in_magento/how_to_add_a_custom_module_for_custom_admin_...
0 1430 posted 14 years ago by necode
Every developer has favorite tools and a workflow that’s unique from other developers, so I won’t dictate which specific pieces of software you should use. Instead, for each piece of your development environment, review some choices if you don’...
0 1239 posted 14 years ago by necode
http://codemagento.com/2011/04/observers-and-dispatching-events/
0 2419 posted 14 years ago by necode
Magento first steps - for dev server. Creating Robots.txt file.
0 1321 posted 14 years ago by necode
1. Open lib/zend/locale/data/en.xml 2. Locate territories tag in this file 3. copy one of territory tags for the syntax and paste it within the territories tag 4. hard part here is to add country code in this file as might not be able to fin...
0 1647 posted 14 years ago by JustMadMike
usefull navigation stuff works in magento 1.5.0.1 http://www.webdesign-blog.ch/?p=17 http://www.pauldonnellydesigns.com/blog/get-parent-category-name-in-magento/
0 2701 posted 14 years ago by nico65
0 2503 posted 14 years ago by ronal
use the magento developer IP
0 1613 posted 14 years ago by nico65
This goes in any phtml file to get the image from the skin folder
0 1283 posted 14 years ago by uteman23
0 1336 posted 14 years ago by ronal
0 1363 posted 14 years ago by ronal
0 1440 posted 14 years ago by TioSolid
0 1369 posted 14 years ago by TioSolid
Inspired by http://subesh.com.np/2010/08/magento-setting-default-shipping-method-cart-page/. Basically Magento requires only countryId in shipment address to show shipment methods (at least in polish case). Very useful if you want user to select shi...
0 1861 posted 14 years ago by ef