<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Magento &#8211; Adding Custom Shipping Comments at Checkout</title>
	<atom:link href="http://www.brimllc.com/2010/07/magento-adding-custom-shipping-comments-at-checkout/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brimllc.com/2010/07/magento-adding-custom-shipping-comments-at-checkout/</link>
	<description>streamlined software development</description>
	<lastBuildDate>Wed, 25 Jan 2012 13:19:37 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Scott Greenlaw</title>
		<link>http://www.brimllc.com/2010/07/magento-adding-custom-shipping-comments-at-checkout/comment-page-1/#comment-5517</link>
		<dc:creator>Scott Greenlaw</dc:creator>
		<pubDate>Wed, 25 Jan 2012 13:19:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.brimllc.com/?p=127#comment-5517</guid>
		<description>Straight to the point and well written! Why can&#039;t everyone else be like this?</description>
		<content:encoded><![CDATA[<p>Straight to the point and well written! Why can&#8217;t everyone else be like this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erwin Martling</title>
		<link>http://www.brimllc.com/2010/07/magento-adding-custom-shipping-comments-at-checkout/comment-page-1/#comment-993</link>
		<dc:creator>Erwin Martling</dc:creator>
		<pubDate>Tue, 01 Mar 2011 01:02:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.brimllc.com/?p=127#comment-993</guid>
		<description>I just want to mention I am new to weblog and really loved you&#039;re web page. Probably I’m likely to bookmark your blog post . You definitely have excellent article content. Regards for sharing your web-site.</description>
		<content:encoded><![CDATA[<p>I just want to mention I am new to weblog and really loved you&#8217;re web page. Probably I’m likely to bookmark your blog post . You definitely have excellent article content. Regards for sharing your web-site.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tmillhouse</title>
		<link>http://www.brimllc.com/2010/07/magento-adding-custom-shipping-comments-at-checkout/comment-page-1/#comment-184</link>
		<dc:creator>tmillhouse</dc:creator>
		<pubDate>Tue, 02 Nov 2010 22:22:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.brimllc.com/?p=127#comment-184</guid>
		<description>You&#039;ll want to put the functions inside an Observer, which you configure in your config.xml. Your Observer can be called Observer.php and should extend Varien_Event_Observer. Something like this:

&lt;pre&gt;&lt;?php

class Company_Module_Model_Observer extends Varien_Event_Observer
{

&lt;/pre&gt;

With the above example, you&#039;re project folder heirarchy would look like app/code/local/Company/Module/Model/Observer.php

Then you&#039;ll have to wire the methods in config.xml &lt;event&gt; tag. 

If you have any more questions, I can be more specific.</description>
		<content:encoded><![CDATA[<p>You&#8217;ll want to put the functions inside an Observer, which you configure in your config.xml. Your Observer can be called Observer.php and should extend Varien_Event_Observer. Something like this:</p>
<pre>< ?php

class Company_Module_Model_Observer extends Varien_Event_Observer
{
</pre>
<p>With the above example, you're project folder heirarchy would look like app/code/local/Company/Module/Model/Observer.php</p>
<p>Then you'll have to wire the methods in config.xml <event> tag. </p>
<p>If you have any more questions, I can be more specific.</event></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cedric</title>
		<link>http://www.brimllc.com/2010/07/magento-adding-custom-shipping-comments-at-checkout/comment-page-1/#comment-182</link>
		<dc:creator>Cedric</dc:creator>
		<pubDate>Tue, 02 Nov 2010 18:51:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.brimllc.com/?p=127#comment-182</guid>
		<description>Please excuse my newbiness. Where do i put the 2 functions? In a specific file?</description>
		<content:encoded><![CDATA[<p>Please excuse my newbiness. Where do i put the 2 functions? In a specific file?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charlie Evans</title>
		<link>http://www.brimllc.com/2010/07/magento-adding-custom-shipping-comments-at-checkout/comment-page-1/#comment-113</link>
		<dc:creator>Charlie Evans</dc:creator>
		<pubDate>Wed, 06 Oct 2010 00:01:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.brimllc.com/?p=127#comment-113</guid>
		<description>Fantastic - thanks so much for your help. All working like a charm :)</description>
		<content:encoded><![CDATA[<p>Fantastic &#8211; thanks so much for your help. All working like a charm <img src='http://www.brimllc.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tmillhouse</title>
		<link>http://www.brimllc.com/2010/07/magento-adding-custom-shipping-comments-at-checkout/comment-page-1/#comment-111</link>
		<dc:creator>tmillhouse</dc:creator>
		<pubDate>Tue, 05 Oct 2010 11:37:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.brimllc.com/?p=127#comment-111</guid>
		<description>Also, to see this in the admin panel, just identify the admin template that is printing out order data, and then just put $order-&gt;getShippingComment() wherever you&#039;d like it to appear. Since the quote and order tables are flat, you can retrieve it using its magic getter method.</description>
		<content:encoded><![CDATA[<p>Also, to see this in the admin panel, just identify the admin template that is printing out order data, and then just put $order->getShippingComment() wherever you&#8217;d like it to appear. Since the quote and order tables are flat, you can retrieve it using its magic getter method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tmillhouse</title>
		<link>http://www.brimllc.com/2010/07/magento-adding-custom-shipping-comments-at-checkout/comment-page-1/#comment-110</link>
		<dc:creator>tmillhouse</dc:creator>
		<pubDate>Tue, 05 Oct 2010 11:35:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.brimllc.com/?p=127#comment-110</guid>
		<description>Hi Charlie, thanks for reading.

You are correct. You&#039;ll want to add this column to the database. You can create a sql setup script (let me know if you&#039;d like advise on how to set this up), and you could write something like this:

$installer-&gt;getConnection()-&gt;addColumn($installer-&gt;getTable(&#039;sales/order&#039;), &#039;shipping_comment&#039;, &#039;varchar(255)&#039;);

After you have that on the database, once you set this value with either:
$order-&gt;setData(&#039;shipping_comment&#039;, $comment)

or

$order-&gt;setShippingComment($comment).

If you need to save this on both the quote and the order, I discovered a way to do this about a month ago. You can add the new column to both the sales/quote and sales/order tables, then in your observer code, you can just set it on the quote. Then, you can define the mapping strategy in your xml so that it will automatically get mapped to your order table once the order is processed. The configuration will look something like:

&lt;global&gt;
&lt;fieldsets&gt;
&lt;sales_convert_quote&gt;
&lt;shipping_comment&gt;&lt;to_order&gt;*&lt;/to_order&gt;&lt;shipping_comment&gt; .....

Let me know if you have any questions, we&#039;re glad to help.</description>
		<content:encoded><![CDATA[<p>Hi Charlie, thanks for reading.</p>
<p>You are correct. You&#8217;ll want to add this column to the database. You can create a sql setup script (let me know if you&#8217;d like advise on how to set this up), and you could write something like this:</p>
<p>$installer->getConnection()->addColumn($installer->getTable(&#8217;sales/order&#8217;), &#8217;shipping_comment&#8217;, &#8216;varchar(255)&#8217;);</p>
<p>After you have that on the database, once you set this value with either:<br />
$order->setData(&#8217;shipping_comment&#8217;, $comment)</p>
<p>or</p>
<p>$order->setShippingComment($comment).</p>
<p>If you need to save this on both the quote and the order, I discovered a way to do this about a month ago. You can add the new column to both the sales/quote and sales/order tables, then in your observer code, you can just set it on the quote. Then, you can define the mapping strategy in your xml so that it will automatically get mapped to your order table once the order is processed. The configuration will look something like:</p>
<p>&lt;global&gt;<br />
&lt;fieldsets&gt;<br />
&lt;sales_convert_quote&gt;<br />
&lt;shipping_comment&gt;&lt;to_order&gt;*&lt;/to_order&gt;&lt;shipping_comment&gt; &#8230;..</p>
<p>Let me know if you have any questions, we&#8217;re glad to help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charlie Evans</title>
		<link>http://www.brimllc.com/2010/07/magento-adding-custom-shipping-comments-at-checkout/comment-page-1/#comment-109</link>
		<dc:creator>Charlie Evans</dc:creator>
		<pubDate>Tue, 05 Oct 2010 11:09:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.brimllc.com/?p=127#comment-109</guid>
		<description>Thanks for the info - just what I was looking for. 

I&#039;ve added some logging to my test module and everything&#039;s working from the session side of things, but I don&#039;t think it&#039;s saving anywhere to the database as I can&#039;t see the comments on the order info page in admin.. 

Do I need to add a shipping_comment field to the database (sales_flat_order?) to store this comment?
And do I need to update my admin templates to display?

Any help much appreciated!</description>
		<content:encoded><![CDATA[<p>Thanks for the info &#8211; just what I was looking for. </p>
<p>I&#8217;ve added some logging to my test module and everything&#8217;s working from the session side of things, but I don&#8217;t think it&#8217;s saving anywhere to the database as I can&#8217;t see the comments on the order info page in admin.. </p>
<p>Do I need to add a shipping_comment field to the database (sales_flat_order?) to store this comment?<br />
And do I need to update my admin templates to display?</p>
<p>Any help much appreciated!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tmillhouse</title>
		<link>http://www.brimllc.com/2010/07/magento-adding-custom-shipping-comments-at-checkout/comment-page-1/#comment-40</link>
		<dc:creator>tmillhouse</dc:creator>
		<pubDate>Thu, 26 Aug 2010 14:44:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.brimllc.com/?p=127#comment-40</guid>
		<description>&quot;To be determined&quot; was added to the template file for that step of the checkout. The text area was added as well to support custom shipping rules from the user:

&lt;pre&gt;
&lt;textarea cols=&quot;50&quot; rows=&quot;3&quot; name=&quot;shippingComment&quot; id=&quot;shippingComment&quot;&gt;&lt;/textarea&gt;
&lt;/pre&gt;

Let me know if you&#039;d like more specific instructions, and I can update this article. We&#039;re glad to help.</description>
		<content:encoded><![CDATA[<p>&#8220;To be determined&#8221; was added to the template file for that step of the checkout. The text area was added as well to support custom shipping rules from the user:</p>
<pre>
&lt;textarea cols="50" rows="3" name="shippingComment" id="shippingComment"&gt;&lt;/textarea&gt;
</pre>
<p>Let me know if you&#8217;d like more specific instructions, and I can update this article. We&#8217;re glad to help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Guinn</title>
		<link>http://www.brimllc.com/2010/07/magento-adding-custom-shipping-comments-at-checkout/comment-page-1/#comment-39</link>
		<dc:creator>Mark Guinn</dc:creator>
		<pubDate>Thu, 26 Aug 2010 14:15:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.brimllc.com/?p=127#comment-39</guid>
		<description>Thanks for sharing this stuff. I was wondering how you set up the shipping on that site (Motion Savers) so that it displays TBD for shipping. Is that some default setting I&#039;m missing, or a module you&#039;re using? Thanks.</description>
		<content:encoded><![CDATA[<p>Thanks for sharing this stuff. I was wondering how you set up the shipping on that site (Motion Savers) so that it displays TBD for shipping. Is that some default setting I&#8217;m missing, or a module you&#8217;re using? Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

