Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged magento



How to get a custom product attribute inside a view (.phtml) file.
0 63 posted 9 years ago by TioSolid
Allows you to read any config in the magento database based in its path. The path is defined inside the system.xml file of the module. The table is core_config_data
0 67 posted 9 years ago by TioSolid
Replace "getMyAttribute" with "get" followed by the attribute name in camel case.
0 51 posted 9 years ago by Groove
Grabbed from parsing magento's source code
0 57 posted 9 years ago by dmistriotis
0 64 posted 9 years ago by Groove
originally from Naryan Varma
1 57 posted 9 years ago by dmistriotis
0 62 posted 9 years ago by dmistriotis
Almost all Magento Models have a corresponding Collection object that can be used to fetch multiple instances of a Model
0 58 posted 9 years ago by dmistriotis
easy but I tend to forget
0 56 posted 9 years ago by dmistriotis
How to retrieve the amount of items the user has into the cart
0 60 posted 10 years ago by TioSolid
How to get the cart total in a Magento Page
0 61 posted 10 years ago by TioSolid
A function for returning the ID of the current CMS page
1 84 posted 10 years ago by nate63179
Some shortcuts for retrieving URLs
0 69 posted 10 years ago by nate63179
Puts a static block named 'contacts_text' into the page
0 46 posted 10 years ago by nate63179
Automatically prepends the path of the store's skin to create a full url
0 58 posted 10 years ago by nate63179
Where $_item is a product variable, and $this is a Block
0 52 posted 10 years ago by nate63179
magento meta keywords in list view output template/catalog/category/view.phtml:
0 65 posted 10 years ago by nico65
This code allows you to track each step of Magento's One Page Checkout in Google Analytics. I installed it at the bottom of my `checkout/onepage.phtml` template file. Once installed, you can set up a funnel for the following: * `/checkout/onepage/...
0 62 posted 10 years ago by jdbartlett
agento, an open-source PHP ecommerce solution, has a very comprehensive feature list. However, its built-in CMS doesn’t support hierarchical pages. You can fake it, though. Let’s say you have a page with an SEF (search engine friendly) URL Ide...
0 111 posted 10 years ago by nico65
Create a block to include a template file .phtml with just one line of code
1 163 posted 10 years ago by nico65
--
0 69 posted 10 years ago by nico65
sku on magento frontend
0 50 posted 10 years ago by nico65
/app/code/core/Mage/Newsletter/Model/Subscriber.php $this->sendConfirmationSuccessEmail();
0 67 posted 10 years ago by nico65