<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.9.2" -->
<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/"
	>

<channel>
	<title>Sharpdot Sitewide Feed</title>
	<link>http://www.sharpdotinc.com</link>
	<description>All posts, comments, and pages from all blogs on this WPMU powered site</description>
	<pubDate>Mon, 21 Nov 2011 21:58:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<item>
		<title>Magento: How to create a fragment url(pound sign in the url)</title>
		<link>http://www.sharpdotinc.com/mdost/2011/11/21/magento-how-to-create-a-fragment-urlpound-sign-in-the-url/</link>
		<comments>http://www.sharpdotinc.com/mdost/2011/11/21/magento-how-to-create-a-fragment-urlpound-sign-in-the-url/#comments</comments>
		<pubDate>Mon, 21 Nov 2011 21:58:24 +0000</pubDate>
		<dc:creator>Mike D</dc:creator>
				<category domain="http://www.sharpdotinc.com/mdost/content/category/php/"><![CDATA[PHP]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/magento/"><![CDATA[magento]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/e-commerce/"><![CDATA[E-Commerce]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/open-source/"><![CDATA[open-source]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=332</guid>
		<description><![CDATA[This is just a quick information post. If you use Magento and want to &#8220;bookmark&#8221; parts of a page that is all well and good, but how do you generate a url to go to it? there is a good question. Here is the simple answer.
You just need to pass the &#8220;_fragment&#8221; parameter to the [...]]]></description>
			<content:encoded><![CDATA[<p>This is just a quick information post. If you use Magento and want to &#8220;bookmark&#8221; parts of a page that is all well and good, but how do you generate a url to go to it? there is a good question. Here is the simple answer.</p>
<p>You just need to pass the &#8220;_fragment&#8221; parameter to the getUrl method.<br />
Here is an example that would link to the customer account page to a bookmark called &#8220;test&#8221;.</p>
<p>Mage::getUrl(&#8216;customer/account&#8217;, array(&#8216;_fragment&#8217; =&gt; &#8216;test))</p>
<p>The url generated by the above code would be www.YourMagentoSite.com/customer/account#test</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Magento: Disable Sending Emails</title>
		<link>http://www.sharpdotinc.com/mdost/2011/10/28/magento-disable-sending-emails/</link>
		<comments>http://www.sharpdotinc.com/mdost/2011/10/28/magento-disable-sending-emails/#comments</comments>
		<pubDate>Fri, 28 Oct 2011 17:14:05 +0000</pubDate>
		<dc:creator>Mike D</dc:creator>
				<category domain="http://www.sharpdotinc.com/mdost/content/category/php/"><![CDATA[PHP]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/category/uncategorized/"><![CDATA[Uncategorized]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/magento/"><![CDATA[magento]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/e-commerce/"><![CDATA[E-Commerce]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/open-source/"><![CDATA[open-source]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=330</guid>
		<description><![CDATA[Have you ever wanted to disable email sending on Magento so that you do not need to worry about accidentally sending emails out when you are testing your store. Well there is an easy way to do this.
Log into the admin of you store and go to: System -&#62; Configuration -&#62; System -&#62; Mail Sending [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever wanted to disable email sending on Magento so that you do not need to worry about accidentally sending emails out when you are testing your store. Well there is an easy way to do this.</p>
<p>Log into the admin of you store and go to: System -&gt; Configuration -&gt; System -&gt; Mail Sending Settings -&gt; Disable Email Communications</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Magento Meetup: WYSIWYG Widgets</title>
		<link>http://www.sharpdotinc.com/mdost/2011/10/18/magento-meetup-wysiwyg-widgets/</link>
		<comments>http://www.sharpdotinc.com/mdost/2011/10/18/magento-meetup-wysiwyg-widgets/#comments</comments>
		<pubDate>Wed, 19 Oct 2011 00:31:46 +0000</pubDate>
		<dc:creator>Mike D</dc:creator>
				<category domain="http://www.sharpdotinc.com/mdost/content/category/php/"><![CDATA[PHP]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/category/uncategorized/"><![CDATA[Uncategorized]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/magento/"><![CDATA[magento]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/e-commerce/"><![CDATA[E-Commerce]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/open-source/"><![CDATA[open-source]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=328</guid>
		<description><![CDATA[Here is a link to the Widgets Install zip.
]]></description>
			<content:encoded><![CDATA[<p>Here is a link to the Widgets <a href="http://www.sharpdotinc.com/wp-content/uploads/magentoWidgets.zip">Install zip</a>.</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Magento: How to add an image for a custom widget in the admin wysiwyg</title>
		<link>http://www.sharpdotinc.com/mdost/2011/08/10/magento-how-to-add-an-image-for-a-custom-widget-in-the-admin-wysiwyg/</link>
		<comments>http://www.sharpdotinc.com/mdost/2011/08/10/magento-how-to-add-an-image-for-a-custom-widget-in-the-admin-wysiwyg/#comments</comments>
		<pubDate>Thu, 11 Aug 2011 01:52:43 +0000</pubDate>
		<dc:creator>Mike D</dc:creator>
				<category domain="http://www.sharpdotinc.com/mdost/content/category/php/"><![CDATA[PHP]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/category/uncategorized/"><![CDATA[Uncategorized]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/magento/"><![CDATA[magento]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/e-commerce/"><![CDATA[E-Commerce]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/open-source/"><![CDATA[open-source]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=325</guid>
		<description><![CDATA[This is just a quick How-to, I do not detail how to create a new widget.
All you need to do is add a gif with the correct file name to the following directory:
/skin/adminhtml/default/default/images/widget/
Now, to name the gif. In you widgets.xml file you set the widget &#8220;type&#8221;, which is the block class for the widget. Just [...]]]></description>
			<content:encoded><![CDATA[<p>This is just a quick How-to, I do not detail how to create a new widget.</p>
<p>All you need to do is add a gif with the correct file name to the following directory:<br />
/skin/adminhtml/default/default/images/widget/</p>
<p>Now, to name the gif. In you widgets.xml file you set the widget &#8220;type&#8221;, which is the block class for the widget. Just replace the &#8220;/&#8221; slash with a double underscore and that is the file name. so if I had a widget with the type set to &#8220;custommodule/wigets_customwidget&#8221; I just create a gif with the name &#8220;custommodule__wigets_customwidget.gif&#8221;.</p>
<p>End result:<br />
/skin/adminhtml/default/default/images/widget/custommodule__wigets_customwidget.gif</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Magento: Authorize .Net Refunds</title>
		<link>http://www.sharpdotinc.com/mdost/2011/07/08/magento-authorize-net-refunds/</link>
		<comments>http://www.sharpdotinc.com/mdost/2011/07/08/magento-authorize-net-refunds/#comments</comments>
		<pubDate>Fri, 08 Jul 2011 16:55:29 +0000</pubDate>
		<dc:creator>Mike D</dc:creator>
				<category domain="http://www.sharpdotinc.com/mdost/content/category/php/"><![CDATA[PHP]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/category/uncategorized/"><![CDATA[Uncategorized]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/magento/"><![CDATA[magento]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/e-commerce/"><![CDATA[E-Commerce]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/open-source/"><![CDATA[open-source]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=322</guid>
		<description><![CDATA[In most releases of magento the auth.net payment module has online refunds disabled by default. This post is not about how to enable online refunds for auth.net, but how to fix bug that I have hit after enabling online refunds.
If you just edit the Authorizenet Class and enable refunds and partial refunds, you may still [...]]]></description>
			<content:encoded><![CDATA[<p>In most releases of magento the auth.net payment module has online refunds disabled by default. This post is not about how to enable online refunds for auth.net, but how to fix bug that I have hit after enabling online refunds.</p>
<p>If you just edit the Authorizenet Class and enable refunds and partial refunds, you may still hit some bugs. I recently found that partial refunds were being recorded by Magento corectly, but auth.net was actually refunding the entire order amount, not just the partial amount. This was because Magento was pulling the amount to refund from the payment object which in most cases will be the entire order total. Inorder to fix this I had to tell auth.net to use the refund amount from the credit memo request.</p>
<p>[sourcecode language="php"]<br />
//In the refund method in /Paygate/model/Authorizenet.php we need to modify the x_amount in the request<br />
//Notice the one line i added after the call to $this->_buildRequest<br />
public function refund(Varien_Object $payment, $amount)<br />
    {<br />
        if ($payment->getRefundTransactionId() &#038;&#038; $amount > 0) {<br />
            $payment->setAnetTransType(self::REQUEST_TYPE_CREDIT);<br />
            $request = $this->_buildRequest($payment);</p>
<p>            //added to get the proper amount to be refunded<br />
            $request->setXAmount($amount,2);<br />
            //END Custom</p>
<p>            $request->setXTransId($payment->getRefundTransactionId());</p>
<p>            /**<br />
             * need to send last 4 digit credit card number to authorize.net<br />
             * otherwise it will give an error<br />
             */<br />
            $request->setXCardNum($payment->getCcLast4());</p>
<p>            $result = $this->_postRequest($request);<br />
            if ($result->getResponseCode()==self::RESPONSE_CODE_APPROVED) {<br />
                $payment->setStatus(self::STATUS_SUCCESS);<br />
                return $this;<br />
            }<br />
            Mage::throwException($this->_wrapGatewayError($result->getResponseReasonText()));<br />
        }<br />
        Mage::throwException(Mage::helper(&#8216;paygate&#8217;)->__(&#8216;Error in refunding the payment.&#8217;));<br />
    }<br />
[/sourcecode]</p>
<p>Now your online refunds will use the correct amount.</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Dual Boot Ubuntu and Windows</title>
		<link>http://www.sharpdotinc.com/mdost/2011/06/23/dual-boot-ubuntu-and-windows/</link>
		<comments>http://www.sharpdotinc.com/mdost/2011/06/23/dual-boot-ubuntu-and-windows/#comments</comments>
		<pubDate>Thu, 23 Jun 2011 20:07:06 +0000</pubDate>
		<dc:creator>Mike D</dc:creator>
				<category domain="http://www.sharpdotinc.com/mdost/content/category/uncategorized/"><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=320</guid>
		<description><![CDATA[I recently decided to wipe my old windows xp laptop and install Windows 7 and a version of Ubuntu(backtrack 4r2). I ran into an issue after installing both OS&#8217;s. Grub was throwing an error 18. After quite a bit of digging here is what I found.
The version of Ubuntu I was installing used Grub Legacy [...]]]></description>
			<content:encoded><![CDATA[<p>I recently decided to wipe my old windows xp laptop and install Windows 7 and a version of Ubuntu(backtrack 4r2). I ran into an issue after installing both OS&#8217;s. Grub was throwing an error 18. After quite a bit of digging here is what I found.</p>
<p>The version of Ubuntu I was installing used Grub Legacy not Grub2. Apparently this version of Grub has a limit of where it can find bootloaders. This means that the grub bootloader needs to exist early on the disk. Here is how I got things working.</p>
<p>I was using a 250GB HD and installed windows 7 first to a partion sized at 70Gigs. Then I installed Ubuntu to a partition(60 Gigs) directly after the Windows 7 partition. This is how I circumvented the Error Mentioned above. Now I have some unused disk space I can create extra NTFS of Linux partitions.</p>
<p>Hope this helps.</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Magento: How to Delete a credit memo</title>
		<link>http://www.sharpdotinc.com/mdost/2011/06/07/magento-how-to-delete-a-credit-memo/</link>
		<comments>http://www.sharpdotinc.com/mdost/2011/06/07/magento-how-to-delete-a-credit-memo/#comments</comments>
		<pubDate>Tue, 07 Jun 2011 16:31:57 +0000</pubDate>
		<dc:creator>Mike D</dc:creator>
				<category domain="http://www.sharpdotinc.com/mdost/content/category/php/"><![CDATA[PHP]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/magento/"><![CDATA[magento]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/e-commerce/"><![CDATA[E-Commerce]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/open-source/"><![CDATA[open-source]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=304</guid>
		<description><![CDATA[If you find yourself in the unfortunate position of having to delete a credit memo or order in Magento then take a deep breath and keep reading. I found my self in this very position. At first I was just going to run some sql to remove the orders and credit memo, but that started [...]]]></description>
			<content:encoded><![CDATA[<p>If you find yourself in the unfortunate position of having to delete a credit memo or order in Magento then take a deep breath and keep reading. I found my self in this very position. At first I was just going to run some sql to remove the orders and credit memo, but that started getting pretty messy. So Below is my solution for deleting an order and Deleting a credit memo attached to an order(but not deleting the order).</p>
<p><strong>Before proceeding Please Note:</strong> This was written using Magento Version 1.4.1.1. Because of the vast differences between version this may or may not work on other version. Test anything on a staging site before trying to apply to a production site.</p>
<p>To run the following code snippets you need to add them to an Admn controller action, then go to this action in the admin area. What controller you temporarily add this to is your choice.</p>
<p>[sourcecode language='php']<br />
        //Delete two orders<br />
    	/* */<br />
    	$orders = Mage::getModel(&#8217;sales/order&#8217;)->getCollection()<br />
    		->addAttributeToFilter(&#8216;increment_id&#8217;, array(&#8216;in&#8217;, array(&#8216;XXX000700&#8242;, &#8216;XXX000700-1&#8242;)));<br />
    	if(count($orders) delete();<br />
	    	}<br />
    	} else {<br />
    		Die(&#8220;incorect number of orders to delete.&#8221;);<br />
    	}<br />
[/sourcecode]</p>
<p>Now We Delete a Credit Memo we did not want<br />
[sourcecode language='php']<br />
        //Now Delete the Refund for an order but do not delete the order.<br />
    	$order = Mage::getModel(&#8217;sales/order&#8217;)->loadByIncrementId(&#8216;XXX000320&#8242;);<br />
    	//Delete Credit Memo<br />
    	$creditMemos = $order->getCreditmemosCollection();<br />
    	foreach($creditMemos as $cm){	//cancel each credit memo for the order<br />
    		$state = $cm->getState();<br />
    		if($state == 3){//Cancled<br />
    			continue;<br />
    		}<br />
    		$cm->cancel()<br />
    			->save()<br />
    			->getOrder()->save();	//Needed to save the order to apply the canceled credit memo to all order items.</p>
<p>    		$cm->delete();<br />
    	}</p>
<p>[/sourcecode]</p>
<p>After running the above code I did need to edit the refund values for the order in this table: sales_flat_order</p>
<p>when canceling the credit memo it changed the offline refund amount instead of the online refund amount.</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>ACP Decisions Featured on CBS Evening News</title>
		<link>http://www.sharpdotinc.com/content/acp-decisions-featured-on-cbs-evening-news/</link>
		<comments>http://www.sharpdotinc.com/content/acp-decisions-featured-on-cbs-evening-news/#comments</comments>
		<pubDate>Thu, 02 Jun 2011 16:27:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category domain="http://www.sharpdotinc.com/content/tag/news/"><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/?p=567</guid>
		<description><![CDATA[ACP Decisions, one of Sharpdot&#8217;s clients, made an appearance on the CBS Evening News Last night with their Patient Education Videos playing in a staring role!
The news segment chronicled the experience of a patient diagnosed with advanced cancer as she and her family watched an ACP video that provided information about advance care planning and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.acpdecisions.org">ACP Decisions</a>, one of Sharpdot&#8217;s clients, made an <a href="http://www.cbsnews.com/stories/2011/06/01/eveningnews/main20068123.shtml">appearance on the CBS Evening News</a> Last night with their Patient Education Videos playing in a staring role!</p>
<p>The news segment chronicled the experience of a patient diagnosed with advanced cancer as she and her family watched an ACP video that provided information about advance care planning and end-of-life care options.</p>
<p>To view the full segment article, click here: <a href="http://www.cbsnews.com/stories/2011/06/01/eveningnews/main20068123.shtml">http://www.cbsnews.com/stories/2011/06/01/eveningnews/main20068123.shtml</a></p>
<p>ACP Decision Patient Education Videos are a series of narrative videos designed to educate patients about advance care planning and end-of-life care options. Video decision aids effectively communicate and inform patients about their options at the end of life.</p>
<p>Visit the <a href="http://www.acpdecisions.org">ACP Decisions website</a> to learn more.</p>
<p>Congratulations!</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Magetno: Display out of stock products</title>
		<link>http://www.sharpdotinc.com/mdost/2011/05/10/magetno-display-out-of-stock-products/</link>
		<comments>http://www.sharpdotinc.com/mdost/2011/05/10/magetno-display-out-of-stock-products/#comments</comments>
		<pubDate>Tue, 10 May 2011 14:03:24 +0000</pubDate>
		<dc:creator>Mike D</dc:creator>
				<category domain="http://www.sharpdotinc.com/mdost/content/category/php/"><![CDATA[PHP]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/magento/"><![CDATA[magento]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/e-commerce/"><![CDATA[E-Commerce]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/open-source/"><![CDATA[open-source]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=301</guid>
		<description><![CDATA[This article was written using Magento version 1.4.1.1.
Somewhere along the line Magento added a config setting called &#8220;Display Out of Stock Products&#8221;. This setting will remove products from the sites search and category lists, if the product is out of stock. You can still go directly to the products details page if you know the [...]]]></description>
			<content:encoded><![CDATA[<p>This article was written using Magento version 1.4.1.1.</p>
<p>Somewhere along the line Magento added a config setting called &#8220;Display Out of Stock Products&#8221;. This setting will remove products from the sites search and category lists, if the product is out of stock. You can still go directly to the products details page if you know the url, but it will not be found in the search with this setting enabled. I recently needed to show out of stock products for a site that has been running for a while. When I Change this config setting to show out of stock items and saved the config page, the browser just sat there spinning and never completed. In order for me to update this config I needed to manually edit the database table &#8220;core_config_data&#8221; and update the value for this setting. Then an Index refresh was needed.</p>
<p>If you find you self trying to change this setting but cant, try just doing it through the database directly. If you happen to have issues because the database says there are locks on the table, you need to get rid of the locks. One way to accomplish this is to restart the database service. Please take care when doing this because it will temporary affect any sites using the databases while they restart.</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Magento: How to Log UPS Rate Requests</title>
		<link>http://www.sharpdotinc.com/mdost/2011/03/29/magento-how-to-log-ups-rate-requests/</link>
		<comments>http://www.sharpdotinc.com/mdost/2011/03/29/magento-how-to-log-ups-rate-requests/#comments</comments>
		<pubDate>Tue, 29 Mar 2011 21:42:38 +0000</pubDate>
		<dc:creator>Mike D</dc:creator>
				<category domain="http://www.sharpdotinc.com/mdost/content/category/php/"><![CDATA[PHP]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/magento/"><![CDATA[magento]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/e-commerce/"><![CDATA[E-Commerce]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/open-source/"><![CDATA[open-source]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=297</guid>
		<description><![CDATA[If you have ever needed to debug UPS shipping prices then this may come in handy. I will show you how to log the xml request you send to UPS to generate rate quotes, and also log the response from ups.

Enable Logging in the admin
Copy /app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups.php             to      /app/code/local/Mage/Usa/Model/Shipping/Carrier/Ups.php
Now make the following edits to the file [...]]]></description>
			<content:encoded><![CDATA[<p>If you have ever needed to debug UPS shipping prices then this may come in handy. I will show you how to log the xml request you send to UPS to generate rate quotes, and also log the response from ups.</p>
<ol>
<li>Enable Logging in the admin</li>
<li>Copy /app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups.php             to      /app/code/local/Mage/Usa/Model/Shipping/Carrier/Ups.php</li>
<li>Now make the following edits to the file you just created.</li>
</ol>
<p>Edit the following code in _getCgiQuotes method</p>
<p>[sourcecode language='php']<br />
        //Comment out original code<br />
        //return $this->_parseCgiResponse($responseBody);</p>
<p>        //Log Request<br />
        $result = $this->_parseCgiResponse($responseBody);<br />
        foreach($result ->getRatesByCarrier($this->_code) as $upsRate){<br />
        	if($upsRate instanceof Mage_Shipping_Model_Rate_Result_Error){<br />
        		$timeCode = time();<br />
		        Mage::log($params, null, &#8216;ups-request-&#8217;.$timeCode.&#8217;.log&#8217;);<br />
		        Mage::log($response, null, &#8216;ups-response-&#8217;.$timeCode.&#8217;.log&#8217;);<br />
		        Mage::log($responseBody, null, &#8216;ups-response-body-&#8217;.$timeCode.&#8217;.log&#8217;);<br />
        	}<br />
        }<br />
        return $result ;<br />
        //END Changes<br />
[/sourcecode]</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Magento: Bulk Update Product Attribute (using sql file or from a controller)</title>
		<link>http://www.sharpdotinc.com/mdost/2011/03/29/magento-bulk-update-product-attribute-using-sql-file-or-from-a-controller/</link>
		<comments>http://www.sharpdotinc.com/mdost/2011/03/29/magento-bulk-update-product-attribute-using-sql-file-or-from-a-controller/#comments</comments>
		<pubDate>Tue, 29 Mar 2011 16:57:05 +0000</pubDate>
		<dc:creator>Mike D</dc:creator>
				<category domain="http://www.sharpdotinc.com/mdost/content/category/php/"><![CDATA[PHP]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/magento/"><![CDATA[magento]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/e-commerce/"><![CDATA[E-Commerce]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/open-source/"><![CDATA[open-source]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=295</guid>
		<description><![CDATA[After creating a New Module to add special functionality to catalog products I needed to set the value for this product to all downloadable products that were already created because this is a required attribute and the site would not function correctly with out it. So here is how you can update an attribute(s) for [...]]]></description>
			<content:encoded><![CDATA[<p>After creating a New Module to add special functionality to catalog products I needed to set the value for this product to all downloadable products that were already created because this is a required attribute and the site would not function correctly with out it. So here is how you can update an attribute(s) for a given set of products. Please note that this will update a text attribute. If you are trying to update a select or multiselect attribute you may need to format you values differently.</p>
<p>If you can not figure out the exact format you need you can test it by doing a bulk attribute update from the admin and edit the file for Mage_Catalog_Model_Product_Action class and in the updateAttributes method just print the value for $attrData. Then mimic this in you update script.</p>
<p>[sourcecode language='php']<br />
//Get the product Ids you want to affect. For me it was all downloadable products<br />
$downloadableProductIds = Mage::getResourceModel(&#8216;catalog/product_collection&#8217;)<br />
	->addAttributeToFilter(&#8216;type_id&#8217;, Mage_Downloadable_Model_Product_Type::TYPE_DOWNLOADABLE)<br />
	->getAllIds();</p>
<p>//Now create an array of attribute_code => values<br />
$attributeData = array(&#8216;my_attribute_code&#8217; => &#8216;my_attribute_value);<br />
//Set the store to affect. I used admin to change all default values<br />
$storeId = 0; //A.K.A Admin<br />
//Now Update the attribute(s) for the given products.<br />
Mage::getSingleton(&#8216;catalog/product_action&#8217;)<br />
	->updateAttributes($downloadableProductIds, $attributeData, $storeId);<br />
[/sourcecode]</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Does Facebook scrape your post for an image when you link from wordpress?</title>
		<link>http://www.sharpdotinc.com/jdost/2011/02/25/does-facebook-scrape-your-post-for-an-image-when-you-link-from-wordpress/</link>
		<comments>http://www.sharpdotinc.com/jdost/2011/02/25/does-facebook-scrape-your-post-for-an-image-when-you-link-from-wordpress/#comments</comments>
		<pubDate>Fri, 25 Feb 2011 21:02:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category domain="http://www.sharpdotinc.com/jdost/content/category/uncategorized/"><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/jdost/?p=215</guid>
		<description><![CDATA[
Forty Weeks uses facebook a lot (check out their facebook page) and it appears that their site, which is built in Wordpress, is not feeding facebook pictures and descriptions to attach to links. Lets see what is needed to fix that&#8230;
Instead facebook is printing out a bunch of commented out javascript code as the description [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sharpdotinc.com/jdost/files/2011/02/166510_497643497200_516977200_6481196_3165120_n.jpg"><img class="alignleft size-medium wp-image-224" title="166510_497643497200_516977200_6481196_3165120_n" src="http://www.sharpdotinc.com/jdost/files/2011/02/166510_497643497200_516977200_6481196_3165120_n-300x200.jpg" alt="" width="300" height="200" /></a></p>
<p>Forty Weeks uses facebook a lot (<a href="http://www.facebook.com/pages/FortyWeeks/304987338791">check out their facebook page</a>) and it appears that their site, which is built in Wordpress, is not feeding facebook pictures and descriptions to attach to links. Lets see what is needed to fix that&#8230;</p>
<p>Instead facebook is printing out a bunch of commented out javascript code as the description and no picture. Troubleshooting step 1 &#8211; remove that javscript.</p>
<p>OK step 1 complete and description gets pulled in now. The js had CDATA tags in it which may have been throwing facebook for a loop. Still no picture though. Step 2 comparing the sharpdot blog head tags to the fortyweeks blog head tags.</p>
<p>Well that seemed to do the trick. Facebook is now pulling in pictures that are relevant to the post. So the answer to the questions is YES BUT javascript can mess it up. After a little trial and error it seemed to come down to this line:</p>
<div id="_mcePaste">var morelink = $(&#8216;&lt;li&gt;&lt;a href=&#8221;javascript:void(0);&#8221; class=&#8221;viewAllLink&#8221;&gt;See all in this category&lt;/a&gt;&lt;/li&gt;&#8217;);</div>
<p>Maybe there were just some hidden utf characters in there? Well color me surprised!</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Magento: Cant add Downloadable Product to a Bundled Product</title>
		<link>http://www.sharpdotinc.com/mdost/2011/02/18/magento-cant-add-downloadable-product-to-a-bundled-product/</link>
		<comments>http://www.sharpdotinc.com/mdost/2011/02/18/magento-cant-add-downloadable-product-to-a-bundled-product/#comments</comments>
		<pubDate>Fri, 18 Feb 2011 19:48:51 +0000</pubDate>
		<dc:creator>Mike D</dc:creator>
				<category domain="http://www.sharpdotinc.com/mdost/content/category/php/"><![CDATA[PHP]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/magento/"><![CDATA[magento]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/e-commerce/"><![CDATA[E-Commerce]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/open-source/"><![CDATA[open-source]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=288</guid>
		<description><![CDATA[I had an issue adding a downloadable product to a bundled product. Turns out the only thing I had to do was to set &#8220;Links can be purchased separately&#8221; on the downloadable product to &#8220;No&#8221; then Every thing worked.
]]></description>
			<content:encoded><![CDATA[<p>I had an issue adding a downloadable product to a bundled product. Turns out the only thing I had to do was to set &#8220;Links can be purchased separately&#8221; on the downloadable product to &#8220;No&#8221; then Every thing worked.</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Magento: Javascript bug/error when placing admin orders</title>
		<link>http://www.sharpdotinc.com/mdost/2011/01/31/magento-javascript-bugerror-when-placing-admin-orders/</link>
		<comments>http://www.sharpdotinc.com/mdost/2011/01/31/magento-javascript-bugerror-when-placing-admin-orders/#comments</comments>
		<pubDate>Mon, 31 Jan 2011 17:17:34 +0000</pubDate>
		<dc:creator>Mike D</dc:creator>
				<category domain="http://www.sharpdotinc.com/mdost/content/category/php/"><![CDATA[PHP]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/magento/"><![CDATA[magento]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/e-commerce/"><![CDATA[E-Commerce]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/open-source/"><![CDATA[open-source]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=284</guid>
		<description><![CDATA[In early versions of Magento you may run across a JavaScript error when placing orders through the admin. Here is what the error might look like:
A) Uncaught Error: SYNTAX_ERR: DOM Exception 12
B) results = $A(root.querySelectorAll(e)).map(Element.extend);
I found that the issue was caused by id&#8217;s on the page using colons (:).  prototype did not like this in [...]]]></description>
			<content:encoded><![CDATA[<p>In early versions of Magento you may run across a JavaScript error when placing orders through the admin. Here is what the error might look like:</p>
<p>A) Uncaught Error: SYNTAX_ERR: DOM Exception 12<br />
B) results = $A(root.querySelectorAll(e)).map(Element.extend);</p>
<p>I found that the issue was caused by id&#8217;s on the page using colons (:).  prototype did not like this in the selectors. What I had to do was search the templates and JavaScript file (/js/mage/adminhtml/sales.js) and change instances of  &#8220;sales:&#8221; to &#8220;sales-&#8221;. This worked around the bug. It was a tedious process and took quite some time. If any one needs a more detailed list of file that I had to change just let me know.</p>
<p>Hope this helps someone else out there.</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Sharpdot set to release new Magento Module &#8211; Payments By Customer Group</title>
		<link>http://www.sharpdotinc.com/mdost/2011/01/12/sharpdot-set-to-release-new-magento-module-payments-by-customer-group/</link>
		<comments>http://www.sharpdotinc.com/mdost/2011/01/12/sharpdot-set-to-release-new-magento-module-payments-by-customer-group/#comments</comments>
		<pubDate>Wed, 12 Jan 2011 19:39:32 +0000</pubDate>
		<dc:creator>Mike D</dc:creator>
				<category domain="http://www.sharpdotinc.com/mdost/content/category/php/"><![CDATA[PHP]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/magento/"><![CDATA[magento]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/e-commerce/"><![CDATA[E-Commerce]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/open-source/"><![CDATA[open-source]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=276</guid>
		<description><![CDATA[Sharpdot Inc is releasing its Payments by Customer Group module to the community. This module provides Administrators the ability to enable/disable payment methods based on a users customer group. Once the module is enabled only the payment methods chosen fore each customer group will be available to the customers. All active methods will be available [...]]]></description>
			<content:encoded><![CDATA[<p>Sharpdot Inc is releasing its Payments by Customer Group module to the community. This module provides Administrators the ability to enable/disable payment methods based on a users customer group. Once the module is enabled only the payment methods chosen fore each customer group will be available to the customers. All active methods will be available to the Administrators.</p>
<p>Link to Extension: <a title="Sharpdot Extension" href="http://www.magentocommerce.com/magento-connect/miked2004/extension/5520/sharpdot_sharppaymentsbycustomergroup" target="_blank">get extension</a>.</p>
<p>Link to Zip File of the Extension: <a href="/wp-content/uploads/PaymentsByCustomerGroup.zip">Right-Click To Save</a></p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Drupal 7 Released! Initial impressions</title>
		<link>http://www.sharpdotinc.com/jdost/2011/01/05/drupal-7-released-initial-impressions/</link>
		<comments>http://www.sharpdotinc.com/jdost/2011/01/05/drupal-7-released-initial-impressions/#comments</comments>
		<pubDate>Wed, 05 Jan 2011 21:21:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category domain="http://www.sharpdotinc.com/jdost/content/category/uncategorized/"><![CDATA[Uncategorized]]></category>
		<category domain="http://www.sharpdotinc.com/jdost/content/tag/drupal/"><![CDATA[drupal]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/jdost/?p=211</guid>
		<description><![CDATA[At long last Drupal 7 has been released so I eagerly downloaded it and set up a test site. First impression is that it&#8217;s great! Really great! Lots of enhancements to the ui and a number of those must-install modules are now pulled into the core. I&#8217;m still testing it out but here&#8217;s a few [...]]]></description>
			<content:encoded><![CDATA[<p>At long last <a href="http://drupal.org/drupal-7.0">Drupal 7 has been released</a> so I eagerly downloaded it and set up a test site. First impression is that it&#8217;s great! Really great! Lots of enhancements to the ui and a number of those must-install modules are now pulled into the core. I&#8217;m still testing it out but here&#8217;s a few first impressions:</p>
<p>Installation was easier &#8211; not that a single site install was ever that complicated for this developer&#8230; but it &#8216;looks&#8217; nicer now and had some very clear warnings about file permissions etc&#8230;</p>
<p>The default theme has a nice black admin bar at the top that reminds me of the <a href="http://drupal.org/project/admin_menu">administration menu module</a> we always install here.  It&#8217;s definitely not the same &#8211; it doesn&#8217;t have the full set of dropdowns and all but it looks similar. Also, there&#8217;s a nice shortcuts menu below that admin menu that you can customize. Again &#8211; might not be helpful to an admin since you need to get to sooo many different things but will surely help out the average user or content editor.</p>
<p>All the edit screens load up using ajax now which is a bit surprising! It does break down nicely and the back/forward buttons work fine. I didn&#8217;t see a big boost in load time (internet is slow today so maybe it&#8217;s just that) but I do hope that this ajax loading translates to smaller server requests and load times when editing.</p>
<p>Another ui shocker &#8211; the content editor doesn&#8217;t have those familiar collapsible framesets anymore. All of those sections are at the bottom of the page in a mini-sidebar type of layout. I like this layout better &#8211; no scrolling scrolling scrolling and many of those sections you rarely deal with anyway so they can just stay hidden.</p>
<p>And some admin candy &#8211; you can install modules directly from the admin tools now. That is REALLY nice as I managed to install the <a href="http://drupal.org/project/link">Link module</a> right from the backend. Sweet! It&#8217;s similar to installing plugins in wordpress where you can specify ftp info and pull files down from a url.</p>
<p>Ok, last comment for now, cck functionality is now in the core (under &#8216;Structure&#8217;) so you can create custom content types right out of the box. There&#8217;s a number of input widgets pre-loaded but like I mentioned I had to install the link module myself. Image IS in there as a field type though &#8211; crackin!</p>
<p>Well, there is still a lot more to try out but so far I&#8217;d say most of these changes are going to add up to a much better experience for the basic user and it brings drupal&#8217;s administrative interface closer to the ease of use that you get/expect with a wordpress. In my mind that is a pretty big deal because it&#8217;s always been a critical distinction between the two and seen as a barrier to using drupal. Time will tell but it looks very positive.</p>
<p>Oh &#8211; and a quick shout about the <a href="http://www.meetup.com/drupalatlanta/calendar/15812006/">drupal 7 release party here intown in Atlanta</a>.  Get out there and raise a glass to celebrate with the community. Hopefully someone from here can attend.</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Magento: Layout Handels and Layout xml files</title>
		<link>http://www.sharpdotinc.com/mdost/2010/12/17/magento-layout-handels-and-layout-xml-files/</link>
		<comments>http://www.sharpdotinc.com/mdost/2010/12/17/magento-layout-handels-and-layout-xml-files/#comments</comments>
		<pubDate>Fri, 17 Dec 2010 18:40:21 +0000</pubDate>
		<dc:creator>Mike D</dc:creator>
				<category domain="http://www.sharpdotinc.com/mdost/content/category/php/"><![CDATA[PHP]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/magento/"><![CDATA[magento]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/e-commerce/"><![CDATA[E-Commerce]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/open-source/"><![CDATA[open-source]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=273</guid>
		<description><![CDATA[If you are working with Magento you have probably had to use layout xml files  to add/remove/replace content blocks. Sometime it is hard to determine what layout handle is being used for a particular page. Well Here is a little code to show all the handles for a particular page.
[sourcecode language='php']
print_r($this->getLayout()->getUpdate()->getHandles());die();
[/sourcecode]
]]></description>
			<content:encoded><![CDATA[<p>If you are working with Magento you have probably had to use layout xml files  to add/remove/replace content blocks. Sometime it is hard to determine what layout handle is being used for a particular page. Well Here is a little code to show all the handles for a particular page.</p>
<p>[sourcecode language='php']<br />
print_r($this->getLayout()->getUpdate()->getHandles());die();<br />
[/sourcecode]</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>sql to find drupal module file path</title>
		<link>http://www.sharpdotinc.com/jdost/2010/11/19/sql-to-find-drupal-module-file-path/</link>
		<comments>http://www.sharpdotinc.com/jdost/2010/11/19/sql-to-find-drupal-module-file-path/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 13:41:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category domain="http://www.sharpdotinc.com/jdost/content/category/uncategorized/"><![CDATA[Uncategorized]]></category>
		<category domain="http://www.sharpdotinc.com/jdost/content/tag/drupal/"><![CDATA[drupal]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/jdost/?p=209</guid>
		<description><![CDATA[Troubleshooting Drupal modules can be hard if you have a lot of them plus a complex structure for where they&#8217;re saved &#8211; especially if there are multiple copies and multiple sites out there. If you update your module and suspect there is another copy of the module but you don&#8217;t know where, this sql will [...]]]></description>
			<content:encoded><![CDATA[<p>Troubleshooting Drupal modules can be hard if you have a lot of them plus a complex structure for where they&#8217;re saved &#8211; especially if there are multiple copies and multiple sites out there. If you update your module and suspect there is another copy of the module but you don&#8217;t know where, this sql will tell you where drupal is REALLY pulling the module code from:</p>
<p>mysql&gt; select filename from system where filename like &#8216;%/my-module-name/%&#8217;;</p>
<p>This will give you a relative path to the module.</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Magento: How to make Payment Methods for Admin Orders only</title>
		<link>http://www.sharpdotinc.com/mdost/2010/11/11/magento-how-to-make-payment-methods-for-admin-orders-only/</link>
		<comments>http://www.sharpdotinc.com/mdost/2010/11/11/magento-how-to-make-payment-methods-for-admin-orders-only/#comments</comments>
		<pubDate>Thu, 11 Nov 2010 20:50:04 +0000</pubDate>
		<dc:creator>Mike D</dc:creator>
				<category domain="http://www.sharpdotinc.com/mdost/content/category/php/"><![CDATA[PHP]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/category/uncategorized/"><![CDATA[Uncategorized]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/magento/"><![CDATA[magento]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/e-commerce/"><![CDATA[E-Commerce]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/open-source/"><![CDATA[open-source]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=269</guid>
		<description><![CDATA[Download the Zip File Below and you will be on your way to allowing payment methods for Admin Orders.
This module will add a dowp down box to payment methods that will allow you to enable it for admin orders. If the payment method you use does not have this drop down you will need to [...]]]></description>
			<content:encoded><![CDATA[<p>Download the Zip File Below and you will be on your way to allowing payment methods for Admin Orders.<br />
This module will add a dowp down box to payment methods that will allow you to enable it for admin orders. If the payment method you use does not have this drop down you will need to edit the modules /etc/system.xml file and add in a node that corresponds to your payment method.</p>
<p>Here is an example of adding a new payment method to the module. I edit the file /app/code/community/Sharpdot/SharpAdminOnlyPayment/etc/system.xml</p>
<p>[sourcecode language="xml"]<br />
//This is the origional code for a bankpayment. I just need to duplicate this and adjust the code to reflect a new payment method.<br />
<bankpayment><br />
	<fields><br />
		<admin_active translate="label"><br />
			<label>Admin Override Enabled</label><br />
				<frontend_type>select</frontend_type><br />
				<source_model>adminhtml/system_config_source_yesno</source_model><br />
				<sort_order>1</sort_order><br />
				<show_in_default>1</show_in_default><br />
				<show_in_website>1</show_in_website><br />
				<show_in_store>1</show_in_store><br />
		</admin_active><br />
	</fields><br />
</bankpayment><br />
[/sourcecode]</p>
<p>[sourcecode language="php"]<br />
//This is the adjusted code for a new payment method. This is a made up payment method, with the code &#8220;sharppayment&#8221;. You would just need to substitute your payment methods code.<br />
<sharppayment><br />
	<fields><br />
		<admin_active translate="label"><br />
			<label>Admin Override Enabled</label><br />
				<frontend_type>select</frontend_type><br />
				<source_model>adminhtml/system_config_source_yesno</source_model><br />
				<sort_order>1</sort_order><br />
				<show_in_default>1</show_in_default><br />
				<show_in_website>1</show_in_website><br />
				<show_in_store>1</show_in_store><br />
		</admin_active><br />
	</fields><br />
</sharppayment><br />
[/sourcecode]</p>
<p><a title="Module Zip File" href="http://sharpdotinc.com/wp-content/uploads/Sharpdot_adminOnlyPayment.zip">Download Module</a></p>
<p>Note: I am working on updating this module to automatically recognize all payment methods, so that editing the system.xml file will not be required in the future.</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>jQuery Cookie Plugin</title>
		<link>http://www.sharpdotinc.com/jdost/2010/10/04/jquery-cookie-plugin/</link>
		<comments>http://www.sharpdotinc.com/jdost/2010/10/04/jquery-cookie-plugin/#comments</comments>
		<pubDate>Mon, 04 Oct 2010 13:47:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category domain="http://www.sharpdotinc.com/jdost/content/category/uncategorized/"><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/jdost/?p=203</guid>
		<description><![CDATA[I&#8217;ve been using the jquery cookie plugin created an age ago by Klaus Hartl (stilbuero.de) but it looks like his site is down? It&#8217;s a very easy to use plugin &#8211; not all that complicated but I thought I&#8217;d post our couple of most basic uses here since we had to use it recently and [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using the jquery cookie plugin created an age ago by Klaus Hartl (<a href="http://stilbuero.de" target="_blank">stilbuero.de</a>) but it looks like his site is down? It&#8217;s a very easy to use plugin &#8211; not all that complicated but I thought I&#8217;d post our couple of most basic uses here since we had to use it recently and I couldn&#8217;t find the demos:</p>
<h3>Pre-reqs &#8211; load jquery first and then the cookie plugin:</h3>
<pre>&lt;script src="PATH-TO-JQUERY/jquery-1.4.2.min.js"&gt;&lt;/script&gt;
&lt;script src="PATH-TO-JQUERY/jquery.cookie.js"&gt;&lt;/script&gt;</pre>
<h3>Most used &#8211; example for a one time user notification via js&#8230;</h3>
<pre>
<div id="_mcePaste">var MESSAGE_COOKIE_NAME = 'sawMessage';	// code for the cookie name
$(document).ready(function(){
	var sawMessage = false;
	if (typeof $.cookie != 'undefined'){
		sawMessage = ($.cookie(MESSAGE_COOKIE_NAME) == '1');
	}
	if (!sawMessage){
		$.cookie(MESSAGE_COOKIE_NAME, '1', {
			path: '/',
			domain: 'mydomain.com',
			expires: 365 });	// expires in one year
		// code to show the message
	}
}</div>
</pre>
<h3>Used less often &#8211; a cookie for just 1 session:</h3>
<pre>if (typeof $.cookie != 'undefined'){
  // set it
  $.cookie('one-session-cookie', 'yes');
  // read it
  if ($.cookie('one-session-cookie') == 'yes'){
    alert('the cookie was set');
  }
}</pre>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
</channel>
</rss>
<!-- 193 queries 0.576 seconds. -->

