Magento Themes and Magento Extensions

Magento custom designed gallery with cu3er

Share
Posted on June 9th, 2011 | Posted by admin

Here is example how you can extend and reuse your own code.
I saw at cu3er site cool gallery effects and I thought why not implement it with magento.
So I used my old gallery module and add some stuff.

Custom email server (transport) with Magento

Share
Posted on June 3rd, 2011 | Posted by admin

Magento has quite interesting email sending capabilities. However, those are more in terms of email templates then selecting a non-built in email server. Sometimes, your web hosting might have separate mail server and even the simple php send mail does not work. In such cases you are forced to use an external mail server that supports SMTP. Good example of this is a Gmail.

So, how do we “switch” our Magento to use Gmail? Here is a small extension I wrote for my self. Figured why not give it away.

And here is a little screenshot that shows the available config options

Magento: Displaying Custom Attributes on Product View

Share
Posted on June 2nd, 2011 | Posted by admin

Adding custom attributes to your product view is very easy. Adding them to the product listing (category pages) is much more difficult. You’ll need to create a custom module for that. In this post though, I’ll only be showing you how to add attributes to the product view page.

If it is a text field (textbox or textarea), this is all you have to do:

1
<?php echo $_product->getAttributeName() ?>

There is one thing different here though. If your Attribute Code is “shirt_size”, then you would use getShirtSize(). Remove the underscores and capitalize the first letter of each word. It is picky that way. if you use getshirtsize(), it won’t work.

If you are using a dropdown or a multiple select, you have to call it a little differently:

1
<?php echo $_product->getAttributeText('shirt_size') ?>

This method requires the actual Attribute Code. If you are displaying the value from a dropdown, you’ll get exactly what you need with this call. If you are wanting to display the values from a multiple select, it will return an array.

Magento: Custom Page Templates in CMS Layout Dropdown

Share
Posted on June 2nd, 2011 | Posted by admin

Creating new page templates is as easy as duplicating and editing the files in /template/page/. However, you can add as many new ones as you want, but no new ones will show up in the Layout dropdown when selecting a template to use for a specific CMS page.

The solution: Create your own simple module to add your templates. This should only take you 5 minutes if you know what you are doing with custom modules.

Step 1: Create Your Module Config File

Create this file: /app/code/local/YOURMODS/CmsTemplates/etc/config.xml and put the following code in, modifying it to suit your templates:

How to embed Google Custom Search in Magento

Share
Posted on May 26th, 2011 | Posted by admin

For those of you who love Google Custom Search and would like to use it with the Magento, here is a little how to. Entire embed process is really easy. It all comes down to copy paste-ing few lines of code from Google to Magento. My idea is to create the static block in Magento CMS section and then use the custom CMS page from which I will call this statick block among other HTML content I might wish to throw into the CMS page.

For starters, we need to create Google Custom Search engine. Attached are few screenshots to see how it looks.

Page 5 of 8« First...«34567»...Last »