RSS

Archive | Magento Tutorials RSS feed for this section

Remove Sidebar Callouts in Magento Layout

20. July 2010

0 Comments

Here are a coupe of quick references for removing sidebar callouts in either a template/layout .xml file or custom page Layout per page. I used the following to remove some unwanted blocks from the homepage sidebar by updating the XML Layout for the homepage under the Design tab, such as the cart which is unnecessary [...]

Continue reading...

Magento 1.4.1.0 Upgrade Error

14. July 2010

0 Comments

Fatal error:  Call to a member function toHtml() on a non-object in /public_html/app/code/core/Mage/Core/Model/Layout.php on line 529 The line in page.xml that seems to cause the problem is <block type=”core/profiler” output=”toHtml”/> Magento now uses an updated call: <block type=”core/profiler” output=”toHtml” name=”core_profiler”/> This should be one of the initial changes that can get your site live and updated when upgrading to Magento [...]

Continue reading...

Custom SEF Sidebar Navigation For Magento

13. July 2010

0 Comments

I wanted to share a quick snippet of code that I created for adding a custom navigation section to your Magento left column area. I currently created this navigation area for a client to replace the layered navigation. The layered navigation has a lot of great features and organization but probably better severs as a [...]

Continue reading...

Make ‘Ship to This Address’ Default Option During Magento Checkout

4. June 2010

0 Comments

As you may uncover there are a number of obvious changes that need to be made to the Magento core code. The default shipping option being one of them, this may in fact be yet another change that you would want to record and check during any upgrades as the code change is made to [...]

Continue reading...

Removing Extra Line Breaks Added To Magento Product Descriptions

27. May 2010

0 Comments

In order to remove the extra line breaks that are added to Magento product descriptions. Simply update the following file: /app/design/frontend/base/default/template/catalog/product/view/description.phtml Edit the line nl2br($_description) to $_description, removing nl2br. The added line breaks were causing issues in Firefox when creating unordered lists and such as the list code would have an added line break, <br>, or what appeared [...]

Continue reading...

Google Analytics Bug Fix for Magento 1.4.0.1

30. April 2010

0 Comments

In installing Google Analytics you may notice that your account remains in a waiting to receive data state. Although Google Analytics has been recognized and installed correctly a small correction must be made to the source code of the Mage code. You will want to edit the following file: app/code/core/Mage/GoogleAnalytics/Block/Ga.php …And add this simple line of code to [...]

Continue reading...

How to Change an Existing Products Attribute Set in Magento

30. April 2010

3 Comments

Unfortunately Magento does not have the function built into its setup to allow you the option to change a products attribute set once you have created a simple product. However, with the following coding updates, you can add the functionality to change a simple products attribute set directly on the Catalog > Manage Products page: In [...]

Continue reading...

Pagination Update for Magento 1.4

13. April 2010

0 Comments

With the update to Magento 1.4 comes a quick fix to the template file in order to allow your product listings to properly display the subpages or pagination for products. In order to properly implement pagination into your product listings again, you must simply update your catalog.xml template file located in the layout directory of your [...]

Continue reading...

Add Custom Content to Magento Category Pages

11. March 2010

1 Comment

When adding custom content to the category pages on your site, I find the category description to be very limiting and not necessarily give me the type of control I want to have over how much content I can add to a page without pushing the products below the fold. This tutorial outlines how you [...]

Continue reading...

Disable the Shopping Cart in Magento

11. March 2010

0 Comments

System > Configuration In the right sidebar Under Advanced, click on the Advanced tab and select disable from the Mage_Checkout dropdown menu.

Continue reading...