Search results.

DOMRelocator Helper for Responsive Design

This is a nice little snip I created when in a bunch with a client who needed a DOM part to be higher up in the source order at particular break points, but not higher up in the source order under other responsive break points. So, if in a bunch, if you can’t convince another developer or owner that the stacking rules would be a better approach, or if you just have no other choice. You can use this... read more

Creating Magento Orders Programmatically

Sometimes you just want to have the ability to create orders on the fly that get entered into Magento’s backend like any other normal order would if going through the normal checkout process. In our scenario lets say we have a need to have products purchased with either real world currency, or a fictional site point based  currency (could be rewards, game points etc etc.) for virtual products or what... read more

Adding CMS Static Blocks to Magento Page Layouts

This will be short, but as you know phtml template files in Magento are stitched together using layout XML files. Sometimes we might have the need to include a static block we have created in the backend to one of they layout XML files. Here is the XML snip one would use to evoke the backend static block in a XML layout file.YOUR CMS BLOCK IDENTIFIERWhen you create your static block in... read more

How to Get Magento’s Email To A Friend URL

In the context of ever needing to get the “send an email to friend” url / link mark up from Magento in other scopes other than view.phtml (say a custom pthml file with layout specific needs that can be configured), here is what you do. First we need to get our helpers / model / product like so:Lastly we need to build up our markup with our above helpers / model and product. (Note very similar to how... read more

Remove Page Headings Per-page in Magento

Under either categories or CMS page’s design tab, include this XML command to remove the page title:This can be useful if you wish to have, say a page use the empty layout in the design tab, with no page title to be displayed. read more

Remove Page Breadcrumbs Per-page in Magento

Under either categories or CMS page’s design tab, include this XML command to remove the page’s breadcrumbs:This can be useful if you wish to have, say a page use the empty layout in the design tab, with no breadcrumbs to display. read more

« Previous Entries