Welcome To Snipplr
Everyone's Recent PHP Snippets Tagged magento
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
How to get a custom product attribute inside a view (.phtml) file.
0
565
posted 13 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
633
posted 13 years ago by TioSolid
Replace "getMyAttribute" with "get" followed by the attribute name in camel case.
0
562
posted 13 years ago by Groove
Almost all Magento Models have a corresponding Collection object that can be used to fetch multiple instances of a Model
0
561
posted 13 years ago by dmistriotis
How to retrieve the amount of items the user has into the cart
0
500
posted 14 years ago by TioSolid
Automatically prepends the path of the store's skin to create a full url
0
571
posted 14 years ago by nate63179
magento meta keywords in list view output
template/catalog/category/view.phtml:
0
591
posted 14 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
626
posted 14 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
714
posted 14 years ago by nico65
Create a block to include a template file .phtml with just one line of code
1
1419
posted 14 years ago by nico65
/app/code/core/Mage/Newsletter/Model/Subscriber.php
$this->sendConfirmationSuccessEmail();
0
544
posted 14 years ago by nico65