<?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; Website Design</title>
</title>
	<atom:link href="http://www.semtruth.com/category/website-design/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.semtruth.com</link>
	<description>Unveiling Online Marketing for Small Business</description>
	<lastBuildDate>Tue, 24 Aug 2010 00:07:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<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>0</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>0</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>
		<item>
		<title>Removing Extra Line Breaks Added To Magento Product Descriptions</title>
		<link>http://www.semtruth.com/removing-extra-line-breaks-added-to-magento-product-descriptions/</link>
		<comments>http://www.semtruth.com/removing-extra-line-breaks-added-to-magento-product-descriptions/#comments</comments>
		<pubDate>Thu, 27 May 2010 17:32:54 +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=192</guid>
		<description><![CDATA[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, &#60;br&#62;, [...]]]></description>
			<content:encoded><![CDATA[<p>In order to remove the extra line breaks that are added to Magento product descriptions. Simply update the following file:</p>
<blockquote><p><code>/app/design/frontend/base/default/template/catalog/product/view/description.phtml</code></p></blockquote>
<p>Edit the line nl2br($_description) to $_description, removing nl2br.</p>
<p>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, &lt;br&gt;, or what appeared to be line spacing added to each item within the list.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.semtruth.com/removing-extra-line-breaks-added-to-magento-product-descriptions/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Google Analytics Bug Fix for Magento 1.4.0.1</title>
		<link>http://www.semtruth.com/google-analytics-bug-fix-for-magento-1-4-0-1/</link>
		<comments>http://www.semtruth.com/google-analytics-bug-fix-for-magento-1-4-0-1/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 23:53:24 +0000</pubDate>
		<dc:creator>SEM Truth</dc:creator>
				<category><![CDATA[Magento Tutorials]]></category>
		<category><![CDATA[Upgrade Fixes]]></category>
		<category><![CDATA[Website Design]]></category>

		<guid isPermaLink="false">http://www.semtruth.com/?p=175</guid>
		<description><![CDATA[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 &#8230;And add this simple line [...]]]></description>
			<content:encoded><![CDATA[<p>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.</p>
<p>You will want to edit the following file:<br />
app/code/core/Mage/GoogleAnalytics/Block/Ga.php</p>
<p>&#8230;And add this simple line of code to line 179 in order to resolve the issue.</p>
<blockquote><p>var _gaq = _gaq || [];</p></blockquote>
<p>This issue has been reported and resolved already by the Magento Team through <a title="Issue #21456" href="http://www.magentocommerce.com/bug-tracking/issue?issue=8658">Issue #21456</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.semtruth.com/google-analytics-bug-fix-for-magento-1-4-0-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Change an Existing Products Attribute Set in Magento</title>
		<link>http://www.semtruth.com/how-to-change-an-existing-products-attribute-set-in-magento/</link>
		<comments>http://www.semtruth.com/how-to-change-an-existing-products-attribute-set-in-magento/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 16:55: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=170</guid>
		<description><![CDATA[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 &#62; Manage Products page: [...]]]></description>
			<content:encoded><![CDATA[<p>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 &gt; Manage Products page:</p>
<p>In app/code/core/Mage/Adminhtml/Block/Catalog/Product/Grid.php around line 253  ad:</p>
<blockquote><p>$sets =  Mage::getResourceModel(&#8216;eav/entity_attribute_set_collection&#8217;)<br />
-&gt;setEntityTypeFilter(Mage::getModel(&#8216;catalog/product&#8217;)<br />
-&gt;getResource()-&gt;getTypeId())-&gt;load()-&gt;toOptionHash();</p>
<p>array_unshift($statuses, array(&#8216;label&#8217;=&gt;&#8221;, &#8216;value&#8217;=&gt;&#8221;));<br />
$this-&gt;getMassactionBlock()-&gt;addItem(&#8216;attribute_set&#8217;, array(<br />
&#8216;label&#8217;=&gt; Mage::helper(&#8216;catalog&#8217;)-&gt;__(&#8216;Change attribute set&#8217;),<br />
&#8216;url&#8217; =&gt; $this-&gt;getUrl(&#8216;*/*/massAttributeSet&#8217;,  array(&#8216;_current&#8217;=&gt;true)),<br />
&#8216;additional&#8217; =&gt; array(<br />
&#8216;visibility&#8217;  =&gt; array(<br />
&#8216;name&#8217; =&gt; &#8216;attribute_set&#8217;,<br />
&#8216;type&#8217; =&gt; &#8216;select&#8217;,<br />
&#8216;class&#8217; =&gt; &#8216;required-entry&#8217;,<br />
&#8216;label&#8217; =&gt;  Mage::helper(&#8216;catalog&#8217;)-&gt;__(&#8216;Attribute Set&#8217;),<br />
&#8216;values&#8217; =&gt; $sets<br />
)<br />
)<br />
));</p></blockquote>
<p>And then in  app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php (anywhere  in the class) add a new function:</p>
<blockquote><p>public function  massAttributeSetAction(){</p>
<p>$productIds =  $this-&gt;getRequest()-&gt;getParam(&#8216;product&#8217;);<br />
$storeId =  (int)$this-&gt;getRequest()-&gt;getParam(&#8216;store&#8217;, 0);<br />
if(!is_array($productIds)) {<br />
$this-&gt;_getSession()-&gt;addError($this-&gt;__(&#8216;Please select  product(s)&#8217;));<br />
} else {<br />
try {<br />
foreach ($productIds as $productId) {<br />
$product = Mage::getSingleton(&#8216;catalog/product&#8217;)<br />
-&gt;unsetData()<br />
-&gt;setStoreId($storeId)<br />
-&gt;load($productId)<br />
-&gt;setAttributeSetId($this-&gt;getRequest()-&gt;getParam(&#8216;attribute_set&#8217;))<br />
-&gt;setIsMassupdate(true)<br />
-&gt;save();<br />
}<br />
Mage::dispatchEvent(&#8216;catalog_product_massupdate_after&#8217;,  array(&#8216;products&#8217;=&gt;$productIds));<br />
$this-&gt;_getSession()-&gt;addSuccess(<br />
$this-&gt;__(&#8216;Total of %d record(s) were successfully updated&#8217;,  count($productIds)));<br />
} catch (Exception $e) {<br />
$this-&gt;_getSession()-&gt;addError($e-&gt;getMessage());<br />
}<br />
}</p>
<p>$this-&gt;_redirect(&#8216;*/*/&#8217;,  array(&#8216;store&#8217;=&gt;(int)$this-&gt;getRequest()-&gt;getParam(&#8216;store&#8217;, 0)));<br />
}</p></blockquote>
<p>Once you have added the two snippets of code you will now be able to select products from teh Manage Products list and update any products Attribute Set from the actions dropdown menu.</p>
<p>Simply Select &#8216;Change Attribute Set&#8217; and select the appropriate attribute set from the new dropdown menu that appears to the right of Actions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.semtruth.com/how-to-change-an-existing-products-attribute-set-in-magento/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
