<?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>Njc Media</title>
	<atom:link href="http://www.njcmedia.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.njcmedia.com</link>
	<description></description>
	<lastBuildDate>Wed, 18 Apr 2012 15:50:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Magento Extension: Remove states from Magento</title>
		<link>http://www.njcmedia.com/2012/03/magento-extension-remove-states-from-magento/</link>
		<comments>http://www.njcmedia.com/2012/03/magento-extension-remove-states-from-magento/#comments</comments>
		<pubDate>Fri, 16 Mar 2012 20:08:22 +0000</pubDate>
		<dc:creator>Nick Cron</dc:creator>
				<category><![CDATA[Public]]></category>

		<guid isPermaLink="false">http://www.njcmedia.com/?p=246</guid>
		<description><![CDATA[Download this free extension from Magento Connect here:  Remove or Change States and Regions This extension lets you hide certain states on the front end to prevent customers from selecting them during checkout, estimate shipping, payment, etc. One common issue that many users of Magento (Community and Enterprise) is the list of states (regions for [...]]]></description>
			<content:encoded><![CDATA[<p>Download this free extension from Magento Connect here:  <a title="Magento Region Manager" href="http://www.magentocommerce.com/magento-connect/catalog/product/view/id/12349/s/remove-or-change-displayed-states-and-regions-1964/" target="_self">Remove or Change States and Regions</a></p>
<p>This extension lets you hide certain states on the front end to prevent customers from selecting them during checkout, estimate shipping, payment, etc.  One common issue that many users of Magento (Community and Enterprise) is the list of states (regions for non-US) displayed to customers during checkout, registration and estimate shipping.   When Magento is first installed a number of items exist for the United States that are not commonly shipped to or need specific shipping rules.</p>
<p>States commonly excluded from Magento stores:</p>
<ul>
<li>Alaska</li>
<li>American Samoa</li>
<li>Federated States Of Micronesia</li>
<li>Guam</li>
<li>Hawaii</li>
<li>Marshall Islands</li>
<li>Northern Mariana Islands</li>
<li>Palau</li>
<li>Puerto Rico</li>
<li>Virgin Islands</li>
</ul>
<p>In the case of my medical supplies business we had flat rate shipping to the lower 48 states from our supplier and were charged very high rates to ship to Hawaii, Alaska and other US territories and military locations.  We wanted to handle shipments to these locations offline to ensure we did not lose our shirts on shipping.</p>
<p>One way to achieve this is to modify the collections.php file here (created local version):  /app/code/core/Mage/Directory/Model/Mysql4/Region/Collection.php to alter the regions array returned.  If you like getting into the code and want to redo this update when you upgrade Magento this might work well for you.</p>
<p>There is now a FREE way remove displayed options in shipping and billing in the administrative interface via a new extension.  The &#8220;Remove or Change States and Regions&#8221; extension is the first extension developed in a joint venture between my company and Eltrino consulting (a team of Magento Rockstars based in Keiv).</p>
<p><img class="aligncenter size-medium wp-image-248" title="Magento State Manager" src="http://www.njcmedia.com/wp-content/uploads/2012/03/region-manager-300x262.jpg" alt="State Manager Software Box" width="300" height="262" /></p>
<h2>Video Demonstration</h2>
<p><iframe width="500" height="281" src="http://www.youtube.com/embed/ksdF3jTYX6I?fs=1&#038;feature=oembed" frameborder="0" allowfullscreen></iframe></p>
<h2>Instructions for use:</h2>
<p>Here is how it works:</p>
<ol>
<li> Download and install the extension from Magento Connect</li>
<li> Once installed a new menu item appears under &#8220;System&#8221; &gt; &#8220;Configuration&#8221; &gt; &#8220;Sales&#8221; with the title &#8220;Region Management&#8221;</li>
<p><img class="aligncenter size-full wp-image-260" title="Region Management Menu" src="http://www.njcmedia.com/wp-content/uploads/2012/03/Screen-Shot-2012-03-18-at-8.38.16-AM.jpeg" alt="" width="227" height="356" /></p>
<li>After selecting &#8220;Region Management&#8221; the configuration screen is displayed.   Click &#8220;New Region Configuration&#8221; to add exclusions for a Country (multiple Countries can be configured by adding additional configurations.</li>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-249" title="State Configuration" src="http://www.njcmedia.com/wp-content/uploads/2012/03/Screen-Shot-2012-03-14-at-10.42.18-AM.jpeg" alt="" width="646" height="283" /></p>
<li>Use the &#8220;Common Settings&#8221; select option to pre-select certain common settings or select specific values based on your needs.  The options here will be modified based on customer requests but to launch we will be providing the following options for the United States:
<ul>
<li>Lower 48 States &#8211; Excludes military locations, US territories and Alaska and Hawaii</li>
<li>50 States Only &#8211; Excludes military locations and US territories</li>
</ul>
</li>
<li>Save your updates and clear the Magento Cache (System &gt; Cache Management &gt; Flush Magento Cache).</li>
<li>Check your customer website and the excluded options will be removed.</li>
</ol>
<p>The extension effects the system in the following ways:</p>
<ul>
<li>Excluded States or Regions are removed from all Store Views and Websites</li>
<li>Excluded areas are not displayed as options for billing address, shipping address, estimate shipping and customer registration.</li>
</ul>
<p>For customers who want further flexibility we are going to offer an enhanced version which allows these values to be specified by store/website and for each area (IE &#8211; allow Hawaii for registration but not for shipping address).   Please contact me if you are interested in this enhanced version and would like to give input on features and functions.</p>
<p>Download this free extension from Magento Connect here:  <a title="Magento Region Manager" href="http://www.magentocommerce.com/magento-connect/catalog/product/view/id/12349/s/remove-or-change-displayed-states-and-regions-1964/" target="_self">Remove or Change States and Regions</a></p>
<p>The extension is compatible with Community 1.4 &#8211; 1.6 and is currently under review for a Trusted Extension for MagentoGo.  The extension is also upgrade proof and will be modified if needed for future Magento versions.</p>
<p>Please let me know what you think in the comments area below.   If you have ideas for additional extensions you would like to see from the NjcMedia &amp; Eltrino partnership please let me know.  We have around 40 extensions in mind which are all coming soon&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.njcmedia.com/2012/03/magento-extension-remove-states-from-magento/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Magento OneStepCheckout A/B Test</title>
		<link>http://www.njcmedia.com/2012/03/magento-onestepcheckout-ab-test/</link>
		<comments>http://www.njcmedia.com/2012/03/magento-onestepcheckout-ab-test/#comments</comments>
		<pubDate>Tue, 06 Mar 2012 17:38:34 +0000</pubDate>
		<dc:creator>Nick Cron</dc:creator>
				<category><![CDATA[Public]]></category>
		<category><![CDATA[A/B Test]]></category>
		<category><![CDATA[Enterprise]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[OneStepCheckout]]></category>

		<guid isPermaLink="false">http://www.njcmedia.com/?p=244</guid>
		<description><![CDATA[Hi everyone, One of my major Magento Enterprise customers just launched the onestepcheckout extsion &#8211; http://www.onestepcheckout.com as an A/B test with the existing multi-step checkout process. We are using Google Website Optimizer to test the variations and I will have some data starting today. I will update this post with results of the test. I [...]]]></description>
			<content:encoded><![CDATA[<p>Hi everyone, </p>
<p>One of my major Magento Enterprise customers just launched the onestepcheckout extsion &#8211; <a href="http://www.onestepcheckout.com/">http://www.onestepcheckout.com</a> as an A/B test with the existing multi-step checkout process.  We are using Google Website Optimizer to test the variations and I will have some data starting today.  </p>
<p>I will update this post with results of the test.  I know others have experienced a lift with this extension and I am excited to see how it works for us. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.njcmedia.com/2012/03/magento-onestepcheckout-ab-test/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Exclude Keynote from Google Analytics</title>
		<link>http://www.njcmedia.com/2011/12/exclude-keynote-from-google-analytics/</link>
		<comments>http://www.njcmedia.com/2011/12/exclude-keynote-from-google-analytics/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 19:32:12 +0000</pubDate>
		<dc:creator>Nick Cron</dc:creator>
				<category><![CDATA[Public]]></category>
		<category><![CDATA[Google Analytics]]></category>
		<category><![CDATA[Keynote]]></category>

		<guid isPermaLink="false">http://www.njcmedia.com/?p=241</guid>
		<description><![CDATA[Here is a quick post found on the keynote site on how to remove keynote sessions from Google Analytics. We recently added GA to the Ford site I run and wanted to exclude our monitoring visits to get real results. Just implemented as suggested in this post: http://blogs.keynote.com/the_watch/2011/09/filtering-out-web-performance-monitoring-traffic-from-google-analytics.html As the post notes it does not [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a quick post found on the keynote site on how to remove keynote sessions from Google Analytics.  We recently added GA to the Ford site I run and wanted to exclude our monitoring visits to get real results.  </p>
<p>Just implemented as suggested in this post: <a href="http://blogs.keynote.com/the_watch/2011/09/filtering-out-web-performance-monitoring-traffic-from-google-analytics.html">http://blogs.keynote.com/the_watch/2011/09/filtering-out-web-performance-monitoring-traffic-from-google-analytics.html</a></p>
<p>As the post notes it does not apply to historic traffic so I guess I have to wait until tomorrow to see if it really works. </p>
<p>Thanks Keynote!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.njcmedia.com/2011/12/exclude-keynote-from-google-analytics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>960 Grid System</title>
		<link>http://www.njcmedia.com/2011/12/960-grid-system/</link>
		<comments>http://www.njcmedia.com/2011/12/960-grid-system/#comments</comments>
		<pubDate>Fri, 02 Dec 2011 00:39:49 +0000</pubDate>
		<dc:creator>Nick Cron</dc:creator>
				<category><![CDATA[Public]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[UI]]></category>

		<guid isPermaLink="false">http://www.njcmedia.com/?p=236</guid>
		<description><![CDATA[Check out this nice 960 pixel grid system. A great tool for designing websites that are proportional and look great. http://960.gs/]]></description>
			<content:encoded><![CDATA[<p>Check out this nice 960 pixel grid system.  A great tool for designing websites that are proportional and look great. </p>
<p><a href="http://960.gs/">http://960.gs/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.njcmedia.com/2011/12/960-grid-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reset &#8220;Use Secure in Front End or Admin&#8221; in Database &#8211; Magento</title>
		<link>http://www.njcmedia.com/2011/10/reset-use-secure-in-front-end-in-database-magento/</link>
		<comments>http://www.njcmedia.com/2011/10/reset-use-secure-in-front-end-in-database-magento/#comments</comments>
		<pubDate>Sat, 08 Oct 2011 12:47:48 +0000</pubDate>
		<dc:creator>Nick Cron</dc:creator>
				<category><![CDATA[Public]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://www.njcmedia.com/?p=232</guid>
		<description><![CDATA[I ran into an issue this week where I switched on SSL on a development site and then realized the SSL cert was not installed correctly. This is a big issue in Magento because there is no way to get back to the admin to switch it back off. If this ever happens do the [...]]]></description>
			<content:encoded><![CDATA[<p>I ran into an issue this week where I switched on SSL on a development site and then realized the SSL cert was not installed correctly.  This is a big issue in Magento because there is no way to get back to the admin to switch it back off. </p>
<p>If this ever happens do the following to switch back: </p>
<p>1.  Open up your admin panel (cPanel or other)<br />
2.  Go to phpMyAdmin (if MySql)<br />
3.  Find your Magento Database<br />
4.  Find table &#8220;core_config_data&#8221;<br />
5.  Look for the columns &#8220;web/secure/use_in_frontend&#8221; and &#8220;web/secure/use_in_adminhtml&#8221;<br />
6.  Edit both values, make them equal to &#8220;0&#8243;</p>
<p>After this is done you will be back in action. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.njcmedia.com/2011/10/reset-use-secure-in-front-end-in-database-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ford Accessories &#8211; Live</title>
		<link>http://www.njcmedia.com/2011/07/ford-accessories-live/</link>
		<comments>http://www.njcmedia.com/2011/07/ford-accessories-live/#comments</comments>
		<pubDate>Mon, 11 Jul 2011 18:12:06 +0000</pubDate>
		<dc:creator>Nick Cron</dc:creator>
				<category><![CDATA[Public]]></category>

		<guid isPermaLink="false">http://www.njcmedia.com/?p=222</guid>
		<description><![CDATA[The new Ford Motor Company Accessories website is now launched on Magento Enterprise. Go buy something! Ford Accessories Lincoln Accessories Mercury Accessories]]></description>
			<content:encoded><![CDATA[<p>The new Ford Motor Company Accessories website is now launched on Magento Enterprise.  </p>
<p>Go buy something!</p>
<p><a href="http://accessories.ford.com">Ford Accessories</a><br />
<a href="http://accessories.lincoln.com">Lincoln Accessories</a><br />
<a href="http://accessories.mercuryvehicles.com">Mercury Accessories</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.njcmedia.com/2011/07/ford-accessories-live/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CMS Block in Transactional Email Template &#8211; Magento</title>
		<link>http://www.njcmedia.com/2011/06/cms-block-in-transactional-email-template-magento/</link>
		<comments>http://www.njcmedia.com/2011/06/cms-block-in-transactional-email-template-magento/#comments</comments>
		<pubDate>Fri, 03 Jun 2011 13:33:11 +0000</pubDate>
		<dc:creator>Nick Cron</dc:creator>
				<category><![CDATA[Public]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[marketing]]></category>

		<guid isPermaLink="false">http://www.njcmedia.com/?p=217</guid>
		<description><![CDATA[Promotional content in order confirmation, shipping notice, etc emails are common in eCommerce &#8211; here is a tiny code snippet to make this possible in Magento (Community or Enterprise). I recently added this to the Enterprise implementation for my current customer and everything appears to be working without issue. 1. Add reference to CMS block [...]]]></description>
			<content:encoded><![CDATA[<p>Promotional content in order confirmation, shipping notice, etc emails are common in eCommerce &#8211; here is a tiny code snippet to make this possible in Magento (Community or Enterprise).  I recently added this to the Enterprise implementation for my current customer and everything appears to be working without issue. </p>
<p>1.  Add reference to CMS block in transactional email template</p>
<pre class="qoate-code">
 {{block type="cms/block" block_id="ford-order-confirmation-promotions" }}
</pre>
<p>2.  Create CMS block, make sure identifier of block matches.<br />
3.  Test your email </p>
<p>Simple right?  This could be taken a step further with a little code to select a CMS block based on certain conditions (customer type, purchase history, etc).  Anyone want to share that code?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.njcmedia.com/2011/06/cms-block-in-transactional-email-template-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show SKU in Magento Shopping Cart</title>
		<link>http://www.njcmedia.com/2011/04/show-sku-in-magento-shopping-cart/</link>
		<comments>http://www.njcmedia.com/2011/04/show-sku-in-magento-shopping-cart/#comments</comments>
		<pubDate>Sat, 16 Apr 2011 21:45:08 +0000</pubDate>
		<dc:creator>Nick Cron</dc:creator>
				<category><![CDATA[Public]]></category>
		<category><![CDATA[customization]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[Shopping Cart]]></category>

		<guid isPermaLink="false">http://www.njcmedia.com/?p=209</guid>
		<description><![CDATA[Quick code addition to display the product SKU in the shopping cart in Magento. Copy the file &#8220;default.phtml&#8221; from here: &#8220;app/design/frontend/default/default/template/checkout/cart/item/&#8221; to your local template directory. Something like &#8220;app/design/frontend/default/&#8221;your_template&#8221;/template/checkout/cart/item/&#8221; Add the following under the product title: Finished:]]></description>
			<content:encoded><![CDATA[<p>Quick code addition to display the product SKU in the shopping cart in Magento.  </p>
<p>Copy the file &#8220;default.phtml&#8221; from here: &#8220;app/design/frontend/default/default/template/checkout/cart/item/&#8221; to your local template directory.   </p>
<p>Something like &#8220;app/design/frontend/default/&#8221;your_template&#8221;/template/checkout/cart/item/&#8221; </p>
<p>Add the following under the product title:</p>
<pre class="qoate-code">
        SKU: &lt;?php echo $_item-&gt;getSku() ?&gt;
</pre>
<p>Finished:</p>
<pre class="qoate-code">
&lt;h4 class="title"&gt;&lt;a href="&lt;?php echo $this-&gt;getProductUrl() ?&gt;"&gt;&lt;?php echo $this-&gt;getProductName() ?&gt; &lt;/a&gt;&lt;/h4&gt;
        SKU: &lt;?php echo $_item-&gt;getSku() ?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.njcmedia.com/2011/04/show-sku-in-magento-shopping-cart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Auto Populate Cross Sell with Products from Current Category Magento</title>
		<link>http://www.njcmedia.com/2011/04/auto-populate-cross-sell-with-products-from-current-category-magento/</link>
		<comments>http://www.njcmedia.com/2011/04/auto-populate-cross-sell-with-products-from-current-category-magento/#comments</comments>
		<pubDate>Sat, 16 Apr 2011 15:41:34 +0000</pubDate>
		<dc:creator>Nick Cron</dc:creator>
				<category><![CDATA[Public]]></category>
		<category><![CDATA[Cross Sell]]></category>
		<category><![CDATA[customization]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[Related Products]]></category>

		<guid isPermaLink="false">http://www.njcmedia.com/?p=202</guid>
		<description><![CDATA[eCommerce Data is clear &#8211; you need to have cross sell items for every product in your catalog to help conversion.  The usual process consists of manually associating items in the Magento Admin interface.  This process works fine if you have hundreds or even a few thousand items &#8211; OR &#8211; you have this data [...]]]></description>
			<content:encoded><![CDATA[<p>eCommerce Data is clear &#8211; you need to have cross sell items for every product in your catalog to help conversion.  The usual process consists of manually associating items in the Magento Admin interface.  This process works fine if you have hundreds or even a few thousand items &#8211; OR &#8211; you have this data in back end systems.</p>
<p>What happens if you don&#8217;t have the data and you have 15,000+ items in your catalog?</p>
<ul>
<li>Hire someone to associate all products?</li>
<li>Randomly apply products in your data feed?</li>
<li>Develop custom code?</li>
</ul>
<p>All of the above items are true for my <a title="Medical Supplies - Medical Delivered" href="http://www.medicaldelivered.com" target="_blank">Medical Supplies business &#8211; Medical Delivered</a> so I needed a solution.  I decided to auto assign cross sell products on the front end on product page render.</p>
<p>In action: <a href="http://www.medicaldelivered.com/medline-k1-excel-wheelchair.html" target="_blank">http://www.medicaldelivered.com/medline-k1-excel-wheelchair.html</a></p>
<p>Rules:</p>
<ol>
<li>The item must be &#8220;visible&#8221;</li>
<li>The item must reside in the same category as the current item</li>
<li>Don&#8217;t display the item from the current product detail page</li>
</ol>
<p>Results:</p>
<ol>
<li>All products automatically have cross sells displayed</li>
<li>No need to assign products on the back end</li>
<li>BAD:  Less control over items displayed</li>
</ol>
<p>This solution won&#8217;t work for everyone, if you are an advanced retailer you won&#8217;t want to lose this control but if you just want cross sells and don&#8217;t have the time/resources to define manually you can try the code below.</p>
<p>Path:  app/design/frontend/default/&lt;template&gt;/catalog/product/list/upsell.phtml</p>
<p>(you may need to create this path &#8211; make sure to replace &lt;template&gt; with your template name)</p>
<pre class="qoate-code">

&lt;?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magentocommerce.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.magentocommerce.com for more information.
*
* @category   design_default
* @package    Mage
* @copyright  Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
* @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
* @author        Nick Cron
* @authorweb  www.njcmedia.com
*/
?&gt;
&lt;?php
$_related = $this-&gt;getProduct();
// get the parent id to skip
$_parentid = $_related-&gt;getId();

if ($_related) {
// get collection of categories this product is associated with
$categories =$_related-&gt;getCategoryCollection()
-&gt;setPage(1, 1)
-&gt;load();

// if the product is associated with any category
if ($categories-&gt;count())
foreach ($categories as $_category)
{
$cur_category = Mage::getModel('catalog/category')-&gt;load($_category-&gt;getId());

?&gt;

&lt;div&gt;
&lt;div&gt;&lt;h4&gt;&lt;?php echo $this-&gt;__('You may also be interested in the following product(s)') ?&gt;&lt;/h4&gt;&lt;/div&gt;
&lt;table cellspacing="0" id="upsell-product-table"&gt;

&lt;tr&gt;

&lt;?php

$visibility = array(
Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH,
Mage_Catalog_Model_Product_Visibility::VISIBILITY_IN_CATALOG
);

$products = Mage::getResourceModel('catalog/product_collection')
-&gt;addCategoryFilter($_category)
-&gt;addAttributeToFilter('visibility', $visibility)
-&gt;addAttributeToSelect('small_image');

$products-&gt;getSelect()-&gt;limit(5);

// count the number of displayed products
$_i=0;

foreach ( $products as $productModel )       {
$_related = Mage::getModel('catalog/product')-&gt;load($productModel-&gt;getId());
$_realtedid = $_related-&gt;getId();

// prevents displaying the same product your are already on
if ($_realtedid != $_parentid &amp;&amp; $_i&lt;4):

?&gt;

&lt;td&gt;
&lt;p&gt;&lt;a href="&lt;?php echo $_related-&gt;getProductUrl() ?&gt;"&gt;&lt;img src="&lt;?php echo $this-&gt;helper('catalog/image')-&gt;init($_related, 'small_image')-&gt;resize(125) ?&gt;" width="125" height="125" alt="&lt;?php echo $this-&gt;htmlEscape($_related-&gt;getName()) ?&gt;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h5&gt;&lt;a href="&lt;?php echo $_related-&gt;getProductUrl() ?&gt;"&gt;&lt;?php echo $this-&gt;htmlEscape($_related-&gt;getName()) ?&gt;&lt;/a&gt;&lt;/h5&gt;

&lt;?php echo $this-&gt;getPriceHtml($_related, true) ?&gt;
&lt;?php echo $this-&gt;getReviewsSummaryHtml($_related) ?&gt;
&lt;/td&gt;

&lt;?php
// increment displayed products
$_i++;
endif;
}
?&gt;

&lt;/tr&gt;

&lt;?php }
}
?&gt;
&lt;/table&gt;
&lt;script type="text/javascript"&gt;decorateTable('upsell-product-table')&lt;/script&gt;
&lt;/div&gt;
</pre>
<p>Room for improvement:</p>
<ol>
<li>Display items from the back end if exist</li>
<li>Display only items with images</li>
<li>..?</li>
</ol>
<p>I hope this helps someone.  If you have any suggestions for improvement or code upgrades/fixes please let me know in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.njcmedia.com/2011/04/auto-populate-cross-sell-with-products-from-current-category-magento/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Magento: Remove auto breaks (&#8220;br/&#8221;) from product description</title>
		<link>http://www.njcmedia.com/2011/04/magento-remove-auto-breaks-br-from-product-description/</link>
		<comments>http://www.njcmedia.com/2011/04/magento-remove-auto-breaks-br-from-product-description/#comments</comments>
		<pubDate>Sat, 16 Apr 2011 13:58:50 +0000</pubDate>
		<dc:creator>Nick Cron</dc:creator>
				<category><![CDATA[Public]]></category>
		<category><![CDATA[customization]]></category>
		<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://www.njcmedia.com/?p=196</guid>
		<description><![CDATA[By Default Magento automatically adds html tags to product descriptions for display on the customer interface.  If you have created a nice description with the WYSIWYG Editor or imported HTML descriptions you most likely want to remove this behavior.   Luckily this is not hard to do. 1.  Find the file &#8220;description.phtml&#8221; here:  /app/design/frontend/base/default/template/catalog/product/view/description.phtml 2. Make [...]]]></description>
			<content:encoded><![CDATA[<p>By Default Magento automatically adds
<pre class="qoate-code"> &lt;br/&gt; </pre>
<p> html tags to product descriptions for display on the customer interface.  If you have created a nice description with the WYSIWYG Editor or imported HTML descriptions you most likely want to remove this behavior.   Luckily this is not hard to do.</p>
<p>1.  Find the file &#8220;description.phtml&#8221; here:  <code>/app/design/frontend/base/default/template/catalog/product/view/description.phtml </code></p>
<p>2. Make a local copy by copying the file to your local template.  You may need to create the same path in your Magento template (you never want to change core code for upgrade reasons).</p>
<p>New Path: <code>app/design/frontend/default/&lt;template name&gt;/template/catalog/product/view/description.phtml </code></p>
<p>3.  Remove the &#8220;nl2br&#8221; tag</p>
<p>Before:</p>
<pre class="qoate-code">

&lt;div&gt;
&lt;?php echo $this-&gt;helper('catalog/output')-&gt;productAttribute($this-&gt;getProduct(), nl2br($this-&gt;getProduct()-&gt;getDescription()), 'description') ?&gt;
&lt;/div&gt;
</pre>
<p>After:</p>
<pre class="qoate-code">

&lt;div&gt;
&lt;?php echo $this-&gt;helper('catalog/output')-&gt;productAttribute($this-&gt;getProduct(),     $this-&gt;getProduct()-&gt;getDescription()), 'description' ?&gt;
&lt;/div&gt;
</pre>
<p>4.  Upload the file to your server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.njcmedia.com/2011/04/magento-remove-auto-breaks-br-from-product-description/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

