Magento themes and extensions

Magento: Remove ‘Search Options’ Layered Nav from Search Results

Posted on March 7th, 2013 | Posted by admin

Magento: Remove ‘Search Options’ Layered Nav from Search Results

There are 2 ways (that I know of) to get rid of the ‘Search Options’ left nav on the search results page. The first is a bit of a lazy trick and the second is I guess the proper way:

1. Go to System > Configuration > Catalog and find the ‘Catalog Search’ dropdown tab. Inside there is a text fields labelled ‘Apply Layered Navigation if Search Results are Less Than’. By setting this to -1 it sorta bypasses the proper use. If we set it to 0 then it’ll show for all, if we set it to 1 it still shows when 1 item is listed but setting it to -1 seems to work fine.

2. Go to Catalog -> Attributes -> Manage Attributes and select the attributes that appear in the ‘Search Options’, and select “NO” from “Use In Layered Navigation” drop down.

Remove Sidebar Callouts in Magento Layout

Posted on November 30th, 2012 | Posted by admin

Remove Sidebar Callouts in Magento Layout

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 on a website homepage.

<reference name=”right”>
<action method=”unsetChild”><name>cart_sidebar</name></action>
<action method=”unsetChild”><name></name></action>
<action method=”unsetChild”><name>right.reports.product.viewed</name></action>
<action method=”unsetChild”><name>right.permanent.callout</name></action>

How to remove Recurring Profiles & Billing Agreements links from customer account navigation menu in Magento

Posted on November 7th, 2012 | Posted by admin

I spent quite a while trying to work out how to remove the Recurring Profile and Billing Agreements links from the Customer Account navigation menu in Magento. There are plenty of blog posts and Magento forum topics describing how to comment out or even delete the appropriate lines in the billing_agreement.xml or recurring_profile.xml files like this…

<!-- <reference name="customer_account_navigation" >
<action method="addLink" translate="label"><name>recurring_profiles</name><path>sales/recurring_profile/</path><label>Recurring Profiles</label></action>
</reference> -->

However, like many other developers, here at Optimise Web, we use the local.xml method of configuring our layout. Therefore the above technique does not work. Neither does <action=”unsetChild”>.

Magento remove SEO-terms and advanced search from footer links

Posted on September 14th, 2012 | Posted by admin

I’ve seen many solutions for this on the internet, but none of them seems to be complete, considering upward compatibility in Magento.

I’d like to remove the “Popular search terms” and “Advanced search” links from thefooter_links reference.

Since I want my site to be ready for upgrades, I want to do this through local.xml, not by duplicating catalogsearch.xml to a local version, since I believe this is not upward compatible.
I have seen some changes for the associated .phtml files, but I also believe this is not the right way to tackle this, it should be possible through local.xml right?

There’s no “name” attribute in the blocks in catalogsearch.xml, like here:

Remove space before body class: Magento

Posted on September 8th, 2012 | Posted by admin

Remove space before body class: Magento
How does one remove the space before the class values?

In order to validate HTML, this:

Should be:

This is happening on my home page.

Page 1 of 212»