<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SEM Truth<title> &#187; Magento Tutorials</title>
</title>
	<atom:link href="http://www.semtruth.com/category/website-design/magento-tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.semtruth.com</link>
	<description>Unveiling Online Marketing for Small Business</description>
	<lastBuildDate>Thu, 10 Nov 2011 19:23:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Importing Images From External URL into Magento</title>
		<link>http://www.semtruth.com/importing-images-from-external-url-into-magento/</link>
		<comments>http://www.semtruth.com/importing-images-from-external-url-into-magento/#comments</comments>
		<pubDate>Thu, 10 Mar 2011 23:17:41 +0000</pubDate>
		<dc:creator>SEM Truth</dc:creator>
				<category><![CDATA[Magento Products]]></category>
		<category><![CDATA[Magento Tutorials]]></category>
		<category><![CDATA[Website Design]]></category>

		<guid isPermaLink="false">http://www.semtruth.com/?p=343</guid>
		<description><![CDATA[There are occasions where you might not have access to downloading the images from your current setup into the Magento or it is simply easier to reference the current file path on an external URL. The following snipet will add the ability for you to grab images from an external URL when importing products through [...]]]></description>
			<content:encoded><![CDATA[<p>There are occasions where you might not have access to downloading the images from your current setup into the Magento or it is simply easier to reference the current file path on an external URL. The following snipet will add the ability for you to grab images from an external URL when importing products through a data feed. Rather then setting up the image column within the data feed with /image-name.jpg you can now use the full URL path http://www.domain.com/image-name.jpg as an example.</p>
<p>Download the following file &#8211; app/code/core/Mage/Catalog/Model/Convert/Adapter/Product.php and search for the following section of code:</p>
<p>foreach ($imageData as $file => $fields) {<br />
            try {<br />
        $product->addImageToMediaGallery(Mage::getBaseDir(&#8216;media&#8217;) . DS . &#8216;import&#8217; . $html_filename, $fields);<br />
            }<br />
            catch (Exception $e) {}<br />
        } </p>
<p>Comment out the previous section of code or replace tit with the following:</p>
<p>foreach ($imageData as $file => $fields) {<br />
        $path_parts = pathinfo($file);<br />
        $html_filename = DS . $path_parts['basename'];<br />
        $fullpath = Mage::getBaseDir(&#8216;media&#8217;) . DS . &#8216;import&#8217; . $html_filename;<br />
        try {<br />
        $ch = curl_init ($file);<br />
            curl_setopt($ch, CURLOPT_HEADER, 0);<br />
                curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);<br />
                curl_setopt($ch, CURLOPT_BINARYTRANSFER,1);<br />
                $rawdata=curl_exec($ch);<br />
            curl_close ($ch);<br />
                if(file_exists($fullpath)) {<br />
            unlink($fullpath);<br />
            }<br />
            $fp = fopen($fullpath,&#8217;x');<br />
                fwrite($fp, $rawdata);<br />
                fclose($fp);<br />
        }<br />
        catch (Exception $e) {}<br />
            try {<br />
        $product->addImageToMediaGallery(Mage::getBaseDir(&#8216;media&#8217;) . DS . &#8216;import&#8217; . $html_filename, $fields);<br />
            }<br />
            catch (Exception $e) {}<br />
        }</p>
<p>Upload the updated Product.php file to into your local setup to prevent overwriting during upgrades &#8211; app/code/local/Mage/Catalog/Model/Convert/Adapter/Product.php</p>
]]></content:encoded>
			<wfw:commentRss>http://www.semtruth.com/importing-images-from-external-url-into-magento/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Selecting Custom Magento Transactional Emails</title>
		<link>http://www.semtruth.com/selecting-custom-magento-transactional-emails/</link>
		<comments>http://www.semtruth.com/selecting-custom-magento-transactional-emails/#comments</comments>
		<pubDate>Thu, 24 Feb 2011 07:06:36 +0000</pubDate>
		<dc:creator>SEM Truth</dc:creator>
				<category><![CDATA[Magento Tutorials]]></category>
		<category><![CDATA[Website Design]]></category>

		<guid isPermaLink="false">http://www.semtruth.com/?p=332</guid>
		<description><![CDATA[For reference, these are the places the transactional e-mails can be adjusted: General: Currency Setup &#8211; Scheduled Import Settings * Contacts &#8211; Email Options Catalog: Catalog &#8211; Product Alerts Google Sitemap &#8211; Generation Settings * Email to a Friend &#8211; Email templates Customers: * Newsletter &#8211; Subscription Options * Customer Configuration &#8211; Create New Account [...]]]></description>
			<content:encoded><![CDATA[<p>For reference, these are the places the transactional e-mails can be adjusted:</p>
<p><strong>General:</strong><br />
Currency Setup &#8211; Scheduled Import Settings<br />
* Contacts &#8211; Email Options</p>
<p><strong>Catalog:</strong><br />
Catalog &#8211; Product Alerts<br />
Google Sitemap &#8211; Generation Settings<br />
* Email to a Friend &#8211; Email templates</p>
<p><strong>Customers:</strong><br />
* Newsletter &#8211; Subscription Options<br />
* Customer Configuration &#8211; Create New Account Options<br />
* Wishlist &#8211; Share options</p>
<p><strong>Sales:</strong><br />
* Sales Emails &#8211; Order<br />
* Sales Emails &#8211; Order Comments<br />
* Sales Emails &#8211; Invoice<br />
* Sales Emails &#8211; Invoice Comments<br />
* Sales Emails &#8211; Shipment<br />
* Sales Emails &#8211; Shipment Comments<br />
* Sales Emails &#8211; Credit Memo<br />
* Sales Emails &#8211; Credit Memo Comments<br />
Checkout &#8211; Payment Failed Emails</p>
<p><strong>Advanced:</strong><br />
Admin &#8211; Admin User Emails<br />
System &#8211; Log Cleaning</p>
<p><em>(* Per storeview/language) </em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.semtruth.com/selecting-custom-magento-transactional-emails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Test Credit Card Numbers</title>
		<link>http://www.semtruth.com/test-credit-card-numbers/</link>
		<comments>http://www.semtruth.com/test-credit-card-numbers/#comments</comments>
		<pubDate>Fri, 11 Feb 2011 23:53:51 +0000</pubDate>
		<dc:creator>SEM Truth</dc:creator>
				<category><![CDATA[Magento Tutorials]]></category>
		<category><![CDATA[Website Design]]></category>

		<guid isPermaLink="false">http://www.semtruth.com/?p=323</guid>
		<description><![CDATA[Credit card numbers that can be used to test Magneto&#8217;s connection with Authorize.net in test mode. American Express Card Number 370000000000002 Expiration 05/2011 Vcode 1111]]></description>
			<content:encoded><![CDATA[<p>Credit card numbers that can be used to test Magneto&#8217;s connection with Authorize.net in test mode.</p>
<p><strong>American Express</strong></p>
<p><strong>Card Number</strong> 370000000000002<br />
<strong>Expiration</strong> 05/2011<br />
<strong>Vcode</strong> 1111</p>
]]></content:encoded>
			<wfw:commentRss>http://www.semtruth.com/test-credit-card-numbers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Customize the Content Layout on Magento Category Pages</title>
		<link>http://www.semtruth.com/customize-the-content-layout-on-magento-category-pages/</link>
		<comments>http://www.semtruth.com/customize-the-content-layout-on-magento-category-pages/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 21:10:58 +0000</pubDate>
		<dc:creator>SEM Truth</dc:creator>
				<category><![CDATA[Magento Content]]></category>
		<category><![CDATA[Magento Tutorials]]></category>
		<category><![CDATA[Website Design]]></category>

		<guid isPermaLink="false">http://www.semtruth.com/?p=261</guid>
		<description><![CDATA[Add content above and below Magento product listings using the Category Description available in 1.4, then updating where the static block displays on the category page when customizing the Display Settings to include both a static block and products. The main focus of being able to customize the content in Magento category pages was to [...]]]></description>
			<content:encoded><![CDATA[<p>Add content above and below Magento product listings using the Category Description available in 1.4, then updating where the static block displays on the category page when customizing the Display Settings to include both a static block and products.</p>
<p>The main focus of being able to customize the content in Magento category pages was to add the ability for me to be able to have an introductory paragraph of content, but also add additional content after the product listing. Thus I was able to add a foundation of custom content to main category pages without pushing the products further and further down the page.<span id="more-261"></span></p>
<p>First you will want to create a static block that will become the footer content for a category. Once created you can then update your category to call this static block. Navigate to the Category you want to include the content below the product listing and update the display settings. Under &#8216;Display Settings&#8217;, select &#8216;static block and products&#8217; from the Dsiplay Mode dropdown. Then select the name of the static block you created under the CMS Block dropdown.</p>
<p>This display the static block as well as the cateogry products on that category page. Currently most templates add the static black to the top of the category, we will update this.</p>
<p>While you are editing the category go ahead and add a description under the General Information tab for that category which we will leave as the introductory paragraph for the category.</p>
<p>Now we must simply update the layout of the product listing so that the CMS Static Block displays under the category listing.</p>
<p>Navigate and edit /public_html/app/design/frontend/blank/<strong>theme_folder</strong>/template/catalog/category/view.phtml</p>
<p>Find the line of code that reads:</p>
<blockquote><p>&lt;?php echo $this-&gt;getCmsBlockHtml() ?&gt;</p></blockquote>
<p>Currently it should be some where above the call to the Product List:</p>
<blockquote><p>&lt;?php echo $this-&gt;getProductListHtml() ?&gt;</p></blockquote>
<p>Move &lt;?php echo $this-&gt;getCmsBlockHtml() ?&gt; below, save, upload and refresh cache if necessary.</p>
<p>You should now see the category description above the product listing. Then when you scroll down the update to the category view.phtml file adds the static block content we added under the Display Settings tab.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.semtruth.com/customize-the-content-layout-on-magento-category-pages/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Add Pagination In Product Listings</title>
		<link>http://www.semtruth.com/add-pagination-in-product-listings/</link>
		<comments>http://www.semtruth.com/add-pagination-in-product-listings/#comments</comments>
		<pubDate>Sat, 07 Aug 2010 02:20:02 +0000</pubDate>
		<dc:creator>SEM Truth</dc:creator>
				<category><![CDATA[Magento Layout Updates]]></category>
		<category><![CDATA[Magento Tutorials]]></category>
		<category><![CDATA[Website Design]]></category>

		<guid isPermaLink="false">http://www.semtruth.com/?p=250</guid>
		<description><![CDATA[I have noticed on a number of Magento websites that I have been designing, don&#8217;t include the pagination or pager links within the category listings. To remedy this oversight, simply update catalog.xml to include call to pager.phtml file wiht the following code: &#60;block type=&#8221;page/html_pager&#8221; name=&#8221;product_list_toolbar_pager&#8221;/&#62; You will want to locate the reference to the Product [...]]]></description>
			<content:encoded><![CDATA[<p>I have noticed on a number of Magento websites that I have been designing, don&#8217;t include the pagination or pager links within the category listings. To remedy this oversight, simply<strong> </strong>update catalog.xml to include call to pager.phtml file wiht the following code:</p>
<blockquote><p>&lt;block type=&#8221;page/html_pager&#8221; name=&#8221;product_list_toolbar_pager&#8221;/&gt;</p></blockquote>
<p>You will want to locate the reference to the Product List Toolbar and updated to match the following:</p>
<blockquote><p>&lt;block type=&#8221;catalog/product_list_toolbar&#8221; name=&#8221;product_list_toolbar&#8221; template=&#8221;catalog/product/list/toolbar.phtml&#8221;&gt;<br />
&lt;block type=&#8221;page/html_pager&#8221; name=&#8221;product_list_toolbar_pager&#8221;/&gt;<br />
&lt;/block&gt;</p></blockquote>
<p>Just place the pager reference inside the Product List Toolbar and you are set. Rememeber to refresh your cache before trying to view the live changes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.semtruth.com/add-pagination-in-product-listings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Insert a Custom Block into Magento Template File</title>
		<link>http://www.semtruth.com/insert-a-custom-block-into-magento-template-file/</link>
		<comments>http://www.semtruth.com/insert-a-custom-block-into-magento-template-file/#comments</comments>
		<pubDate>Fri, 06 Aug 2010 16:27:08 +0000</pubDate>
		<dc:creator>SEM Truth</dc:creator>
				<category><![CDATA[Magento Layout Updates]]></category>
		<category><![CDATA[Magento Tutorials]]></category>
		<category><![CDATA[Website Design]]></category>

		<guid isPermaLink="false">http://www.semtruth.com/?p=246</guid>
		<description><![CDATA[As apposed to creating / adding a block to one of your Magento theme files, working directly in one of the template or .phtml files is a better way to call a static block. In continuing to develop and learn Magento I have made a number of discoveries that help clarify how to work within [...]]]></description>
			<content:encoded><![CDATA[<p>As apposed to creating / adding a block to one of your Magento theme files, working directly in one of the template or .phtml files is a better way to call a static block.</p>
<p>In continuing to develop and learn Magento I have made a number of discoveries that help clarify how to work within the setup of Magento. In most cases when looking to customize a given page, I was directed to making updates to the Layout .xml files.</p>
<p>However if I was looking to simply add a static block to a specific section of a template file, creating a static block to the appropriate .xml file would simply add the static block above or below a given area.</p>
<p>The following code for example, would add the contact_intro above my contact form, but in the setup of that page, I wanted the contact_intro to integrate into a specific section of the fonrm.phtml template. This was not possible by updating the contacts.xml file as follows:</p>
<blockquote><p>&lt;reference name=&#8221;content&#8221;&gt;<br />
&lt;block type=&#8221;cms/block&#8221; name=&#8221;contact_intro&#8221;&gt;<br />
&lt;action method=&#8221;setBlockId&#8221;&gt;&lt;block_id&gt;contact_intro&lt;/block_id&gt;&lt;/action&gt;<br />
&lt;/block&gt;<br />
&lt;block type=&#8221;core/template&#8221; name=&#8221;contactForm&#8221; template=&#8221;contacts/form.phtml&#8221;/&gt;<br />
&lt;/reference&gt;</p></blockquote>
<p>Instead I needed to update the form.phtml file directly. Where I could place the contact_intro directly into the setup of the contacts page html:</p>
<blockquote><p>&lt;?php echo $this-&gt;getLayout()-&gt;createBlock(&#8216;cms/block&#8217;)-&gt;setBlockId(&#8216;contact_intro&#8217;)-&gt;toHtml() ?&gt;</p></blockquote>
<p>Now I do not have two seperate blocks, when trying to add a block to the layout file. I have placed the static block exactly where I want it to be called within the contacts page.</p>
<p>I hope this helps clear things up as it has for me when trying to accomplish certain <a title="Magento layout updates" href="http://www.semtruth.com/category/website-design/magento-tutorials/magento-layout-updates/">Magento layout updates</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.semtruth.com/insert-a-custom-block-into-magento-template-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove Sidebar Callouts in Magento Layout</title>
		<link>http://www.semtruth.com/remove-sidebar-callouts-in-magento-layout/</link>
		<comments>http://www.semtruth.com/remove-sidebar-callouts-in-magento-layout/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 21:18:04 +0000</pubDate>
		<dc:creator>SEM Truth</dc:creator>
				<category><![CDATA[Magento Layout Updates]]></category>
		<category><![CDATA[Magento Tutorials]]></category>
		<category><![CDATA[Website Design]]></category>

		<guid isPermaLink="false">http://www.semtruth.com/?p=231</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<p>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.</p>
<blockquote><p>&lt;reference name=&#8221;right&#8221;&gt;<br />
&lt;action method=&#8221;unsetChild&#8221;&gt;&lt;name&gt;cart_sidebar&lt;/name&gt;&lt;/action&gt;<br />
&lt;action method=&#8221;unsetChild&#8221;&gt;&lt;name&gt;catalog.compare.sidebar&lt;/name&gt;&lt;/action&gt;<br />
&lt;action method=&#8221;unsetChild&#8221;&gt;&lt;name&gt;right.reports.product.viewed&lt;/name&gt;&lt;/action&gt;<br />
&lt;action method=&#8221;unsetChild&#8221;&gt;&lt;name&gt;right.permanent.callout&lt;/name&gt;&lt;/action&gt;<br />
&lt;/reference&gt;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.semtruth.com/remove-sidebar-callouts-in-magento-layout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento 1.4.1.0 Upgrade Error</title>
		<link>http://www.semtruth.com/magento-1-4-1-0-upgrade-error/</link>
		<comments>http://www.semtruth.com/magento-1-4-1-0-upgrade-error/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 23:02:29 +0000</pubDate>
		<dc:creator>SEM Truth</dc:creator>
				<category><![CDATA[Upgrade Fixes]]></category>
		<category><![CDATA[Website Design]]></category>

		<guid isPermaLink="false">http://www.semtruth.com/?p=226</guid>
		<description><![CDATA[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 &#60;block type=&#8221;core/profiler&#8221; output=&#8221;toHtml&#8221;/&#62; Magento now uses an updated call: &#60;block type=&#8221;core/profiler&#8221; output=&#8221;toHtml&#8221; name=&#8221;core_profiler&#8221;/&#62; This should be one of the initial changes that can get your site live and [...]]]></description>
			<content:encoded><![CDATA[<p><strong>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</strong></p>
<p>The line in <strong>page.xml</strong> that seems to cause the problem is</p>
<blockquote><p>&lt;block type=&#8221;core/profiler&#8221; output=&#8221;toHtml&#8221;/&gt;</p></blockquote>
<p>Magento now uses an updated call:</p>
<blockquote><p>&lt;block type=&#8221;core/profiler&#8221; output=&#8221;toHtml&#8221; name=&#8221;core_profiler&#8221;/&gt;</p></blockquote>
<p>This should be one of the initial changes that can get your site live and updated when upgrading to Magento 1.4.1.0</p>
]]></content:encoded>
			<wfw:commentRss>http://www.semtruth.com/magento-1-4-1-0-upgrade-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom SEF Sidebar Navigation For Magento</title>
		<link>http://www.semtruth.com/custom-sef-sidebar-navigation-for-magento/</link>
		<comments>http://www.semtruth.com/custom-sef-sidebar-navigation-for-magento/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 01:46:20 +0000</pubDate>
		<dc:creator>SEM Truth</dc:creator>
				<category><![CDATA[Magento Tutorials]]></category>
		<category><![CDATA[Website Design]]></category>

		<guid isPermaLink="false">http://www.semtruth.com/?p=222</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<p>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 multi -select drop down. Also in the previous versions of Magento the layered navigation was not search engine friendly.</p>
<p>This is not currently the case but I still find that there is not enough control over the category / subcategory display within the layered navigation. This custom navigation block could be used above some of the other build in features such as price, manufacturer etc. that is simple to accomplish with the layered navigation.</p>
<p>Also of note, I have found including other SEO centralized developers, that the layered navigation simply refreshs that page, so should you have content on the main category page, the layered navigation link creates confusion becuase the page content continues to display.<span id="more-222"></span></p>
<p>Overall the layered navigation should be used for non-search engine targeted categorization as mentioned &#8211; price, size, etc.</p>
<p>To create the custom navigation simply create a new file, such as custom-navigation.php. I uploaded by custom navigation into the following directory:</p>
<h3>app/design/frontend/blank/template/template/catalog/navigation</h3>
<p>I adapted the following navigation area from a Magento tutorial. However I have updated the navigation to include a number of specific features that work very well. The example below will give you an idea of how the custom navigation area is laid out.</p>
<p><strong>Products</strong></p>
<ul>
<li>subcat 1</li>
<li>subcat 2</li>
<li>subcat etc.</li>
</ul>
<p><strong>Currently Browsing</strong></p>
<ul>
<li>current category</li>
</ul>
<p><strong>Categories</strong></p>
<ul>
<li>main category 1</li>
<li>main category 2</li>
<li>main category 3</li>
<li>main category etc.</li>
</ul>
<p>Because I wanted to create a robust navigation bar I wanted to have control over what information was displayed and make both browsing and bouncing around within the site very affective. The following navigation code allowed me to accomplish this and works great in conjunction with main body category navigation.</p>
<p><strong>Custom Navigation Code:</strong></p>
<blockquote><p>&lt;?php</p>
<p>/**<br />
* Custom Nav<br />
*/</p>
<p>?&gt;</p>
<p>&lt;?php<br />
/* Get the categories that are active for the store */<br />
$_main_categories=$this-&gt;getStoreCategories();</p>
<p>/* Get the current category the user is in */<br />
$_current_category=$this-&gt;getCurrentCategory();</p>
<p>/* Get the current category path */<br />
$_categorypath = $this-&gt;getCurrentCategoryPath();<br />
?&gt;</p>
<p>&lt;div&gt;<br />
&lt;div&gt;<br />
&lt;div&gt;<br />
&lt;h2&gt;Shop by&lt;/h2&gt;<br />
&lt;/div&gt;<br />
&lt;div&gt;<br />
&lt;?php<br />
if ($_main_categories):<br />
/* This bit cycles through the categories &#8211; setting the next one to current */<br />
foreach ($_main_categories as $_main_category):<br />
if($_main_category-&gt;getIsActive()):<br />
$cur_category=Mage::getModel(&#8216;catalog/category&#8217;)-&gt;load($_main_category-&gt;getId());<br />
$layer = Mage::getSingleton(&#8216;catalog/layer&#8217;);<br />
$layer-&gt;setCurrentCategory($cur_category);<br />
?&gt;</p>
<p>&lt;?php<br />
/* Check the category variable loop against the current category path if it is &#8211; print sub categories */<br />
if (in_array($this-&gt;getCurrentCategory()-&gt;getId(), $_categorypath)): ?&gt;<br />
&lt;?php $_maincategorylisting=$this-&gt;getCurrentCategory()?&gt;<br />
&lt;?php $_categories=$this-&gt;getCurrentChildCategories()?&gt;<br />
&lt;?php if($_categories-&gt;count()):?&gt;</p>
<p>&lt;dl&gt;<br />
&lt;dt&gt;&lt;?php echo $this-&gt;__(&#8216;Products&#8217;) ?&gt;&lt;/dt&gt;<br />
&lt;ol&gt;<br />
&lt;? foreach ($_categories as $_category_link):?&gt;<br />
&lt;? if($_category_link-&gt;getIsActive()):<br />
$cur_subcategory=Mage::getModel(&#8216;catalog/category&#8217;)-&gt;load($_category_link-&gt;getId());<br />
$layer = Mage::getSingleton(&#8216;catalog/layer&#8217;);<br />
$layer-&gt;setCurrentCategory($cur_subcategory);</p>
<p>?&gt;<br />
&lt;li&gt;&lt;a href=&#8221;&lt;?php echo $this-&gt;getCategoryUrl($_category_link)?&gt;&#8221;&gt; &lt;?php echo $_category_link-&gt;getName()?&gt;&lt;/a&gt;&lt;/li&gt;<br />
&lt;? endif;?&gt;<br />
&lt;?endforeach?&gt;<br />
&lt;/ol&gt;<br />
&lt;/dl&gt;</p>
<p>&lt;?php /* This resets the category back to the original pages category<br />
****     If this is not done, subsequent calls on the same page will use the last category<br />
****    in the foreach loop<br />
*/   ?&gt;<br />
&lt;?php $layer-&gt;setCurrentCategory($_current_category);  ?&gt;<br />
&lt;?endif;?&gt;</p>
<p>&lt;dl&gt;<br />
&lt;dt&gt;&lt;?php echo $this-&gt;__(&#8216;Currently Browsing&#8217;) ?&gt;&lt;/dt&gt;<br />
&lt;ol&gt;<br />
&lt;? /* Current Category */  ?&gt;<br />
&lt;li&gt;&lt;a href=&#8221;&lt;?php echo $this-&gt;getCurrentCategory()-&gt;getUrl()?&gt;&#8221;&gt;&lt;?php echo $this-&gt;getCurrentCategory()-&gt;getName();?&gt;&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ol&gt;<br />
&lt;/dl&gt;</p>
<p>&lt;?endif;?&gt;</p>
<p>&lt;?php<br />
endif;<br />
endforeach;?&gt;</p>
<p>&lt;?php $layer-&gt;setCurrentCategory($_current_category);  ?&gt;<br />
&lt;?else:<br />
?&gt;<br />
&lt;p&gt;Continue Broswing&lt;/p&gt;<br />
&lt;?php endif; ?&gt;</p>
<p>&lt;dl&gt;<br />
&lt;dt&gt;&lt;?php echo $this-&gt;__(&#8216;Categories&#8217;) ?&gt;&lt;/dt&gt;<br />
&lt;ol&gt;<br />
&lt;?php<br />
if ($_main_categories):<br />
/* This bit cycles through the categories &#8211; setting the next one to current */<br />
foreach ($_main_categories as $_main_category):<br />
if($_main_category-&gt;getIsActive()):<br />
$cur_category=Mage::getModel(&#8216;catalog/category&#8217;)-&gt;load($_main_category-&gt;getId());<br />
$layer = Mage::getSingleton(&#8216;catalog/layer&#8217;);<br />
$layer-&gt;setCurrentCategory($cur_category);</p>
<p>/* Write the main categories */<br />
?&gt;</p>
<p>&lt;li&gt;&lt;a href=&#8221;&lt;?php echo $this-&gt;getCurrentCategory()-&gt;getUrl()?&gt;&#8221;&gt;&lt;?php echo $this-&gt;getCurrentCategory()-&gt;getName();?&gt;&lt;/a&gt;&lt;/li&gt;</p>
<p>&lt;?php /* This resets the category back to the original pages category<br />
****     If this is not done, subsequent calls on the same page will use the last category<br />
****    in the foreach loop<br />
*/   ?&gt;<br />
&lt;?php $layer-&gt;setCurrentCategory($_current_category);  ?&gt;</p>
<p>&lt;?php<br />
endif;<br />
endforeach;<br />
else:<br />
?&gt;<br />
&lt;p&gt;Continue Broswing&lt;/p&gt;<br />
&lt;?php endif; ?&gt;<br />
&lt;/ol&gt;<br />
&lt;/dl&gt;</p>
<p>&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;</p></blockquote>
<p>Next you will want to call the custom navigation from either a static block or layout file. Personally I usually do both because I may need a static block in the left sidebar for a number of reasons. In order to have control over easily adding content I simply call a static block from the left layout block</p>
<h3>app/design/frontend/blank/theme110/layout/catalog.xml</h3>
<p>&lt;block type=&#8221;cms/block&#8221; name=&#8221;custom_navigation&#8221; before=&#8221;-&#8221;&gt;<br />
&lt;action method=&#8221;setBlockId&#8221;&gt;&lt;block_id&gt;custom_navigation&lt;/block_id&gt;&lt;/action&gt;<br />
&lt;/block&gt;</p>
<p>If you have not already done so, create a static block with the identifier &#8211; custom_navigation. Within the static block you can now easily reference the custom navigation template file:</p>
<blockquote><p>{{block type=&#8217;catalog/navigation&#8217; name=&#8217;customNav&#8217; template=&#8217;catalog/navigation/custom-navigation.phtml&#8217;}}</p></blockquote>
<p>Save the changes and view the custom navigation.</p>
<p>Now should you want to update the custom navigation static block to include sale information or something of that nature you have a more robust area already created to customize.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.semtruth.com/custom-sef-sidebar-navigation-for-magento/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Make &#8216;Ship to This Address&#8217; Default Option During Magento Checkout</title>
		<link>http://www.semtruth.com/make-ship-to-this-address-default-option-during-magento-checkout/</link>
		<comments>http://www.semtruth.com/make-ship-to-this-address-default-option-during-magento-checkout/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 18:16:34 +0000</pubDate>
		<dc:creator>SEM Truth</dc:creator>
				<category><![CDATA[Magento Billing]]></category>
		<category><![CDATA[Magento Tutorials]]></category>
		<category><![CDATA[Website Design]]></category>

		<guid isPermaLink="false">http://www.semtruth.com/?p=196</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<p>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 the core code of Magento.</p>
<p>Navigate to &#8211; app/code/core/Mage/Checkout/Block/Onepage/Billing.php</p>
<p>To update the default shipping option to &#8216;Ship to this Adress&#8217; simply edit the core magento file located on your server:</p>
<p><strong>Replace:</strong></p>
<blockquote><p>public function isUseBillingAddressForShipping()<br />
{<br />
if (($this-&gt;getQuote()-&gt;getIsVirtual()) || !$this-&gt;getQuote()-&gt;getShippingAddress()-&gt;getSameAsBilling())<br />
{<br />
return false;<br />
}<br />
return true;<br />
}</p></blockquote>
<p><strong>With:</strong></p>
<blockquote><p>public function isUseBillingAddressForShipping()<br />
{<br />
if (($this-&gt;getQuote()-&gt;getIsVirtual()) || (!$this-&gt;getQuote()-&gt;getShippingAddress()-&gt;getSameAsBilling()))<br />
{<br />
return true;<br />
} else {<br />
return false;<br />
}<br />
}</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.semtruth.com/make-ship-to-this-address-default-option-during-magento-checkout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

