Magento Themes and Magento Extensions

Magento Custom Options and Suhosin

Share
Posted on December 9th, 2012 | Posted by admin

I was working on a client’s new Magento site recently and I came across a puzzling issue. We had completed a Cart2Cart migration from PinnacleCart to Magento, and several of his products had a huge number of custom options. No matter what I did I couldn’t modify any of those custom options; however I could modify the custom options on a product that only had a handful of them. The page would hang for a second after hitting the Save button on one of the large products but it would process after about 20 seconds revealing that no change had occurred. No SQL queries were going through, but Magento gave me a successful save message. Because of the enormity of the POST being sent I checked ‘post_max_size’ in php.ini and changed it to a substantial value. This had no effect on the situation.

After a little pondering it hit me: we use Suhosin! For those of you who don’t know, Suhosin is a PHP extension that provides lots of extra configurable security options. I added the following Suhosin configurations in my php.ini:


suhosin.post.max_vars = ####
suhosin.request.max_vars = ####

Magento: How to add an image for a custom widget in the admin wysiwyg

Share
Posted on December 8th, 2012 | Posted by admin

Magento: How to add an image for a custom widget in the admin wysiwyg

This is just a quick How-to, I do not detail how to create a new widget.

All you need to do is add a gif with the correct file name to the following directory:
/skin/adminhtml/default/default/images/widget/

Now, to name the gif. In you widgets.xml file you set the widget “type”, which is the block class for the widget. Just replace the “/” slash with a double underscore and that is the file name. so if I had a widget with the type set to “custommodule/wigets_customwidget” I just create a gif with the name “custommodule__wigets_customwidget.gif”.

End result:
/skin/adminhtml/default/default/images/widget/custommodule__wigets_customwidget.gif

Improve Magento Sales With Better Search Results

Share
Posted on December 7th, 2012 | Posted by admin

While attending the Best eCommerce Tests webinar recently hosted by Anne Holland at whichtestwon.com, she referenced a Marketing Sherpa study about the behaviors of on-site searchers.  A few key takeaways from those studies:

  • Searching has become the predominant method for users to find products on websites.  While navigation tools and site architecture are almost equally important, more and more, consumers are using your on-site search to find what they are looking for quickly.
  • Searchers are almost twice as likely to convert as non-searchers in a given visit.
  • More often than not, a vertical listing format on the search results page converts better than a grid layout.

Suffice it to say, the search results page on an eCommerce site is something that is of high importance and something that deserves your attention.  Specifically, I want to cover how you can improve the performance of your site search within Magento Commerce– although the tactics can be applied to any eCommerce platform with similar capabilities – but Magento has some fundamental, out of box features to help  you improve your search results.

Rewriting a model class in magento

Share
Posted on December 6th, 2012 | Posted by admin

One of the best ways to extend the capabilities of the Magneto core is to “rewrite” their classes. If create a new instance of a model class the way you are supposed to (Mage::getModel(‘awesome/example)), Magento has built in a handy way of being able to “rewrite” your request from model A to model B.

Let’s say that you have a business requirement to always show the phrase “loves Magento” after you display the customer name. To do this, you can find every place that outputs the customer name, OR change the way the customer name is gotten. For this example, we will do the latter.

First we need to create our new class:

Magento: Display More Than 5 New Products

Share
Posted on December 5th, 2012 | Posted by admin

Sometimes we have to display more new products than default number. The default count of new products in Magento is fixed only 5. But you can display more than 5 new products without modifying Magento core files. You can use below code for setting new product count according to your requirement.

  1. {{block type=“catalog/product_new” name=“home.catalog.product.new”
  2. alias=“product_homepage” template=“catalog/product/new.phtml”
  3. _productsCount=“20″}}

The “_productsCount” determine how many new products will be displayed. Here I have set 20 product but you can change this according to your requirement.

Page 5 of 6« First...«23456»