<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Wed, 10 Jun 2026 06:11:13 +0000</lastBuildDate>
    <item>
      <title>(PHP) Report each step of Magento's One Page Checkout to Google Analytics - jdbartlett</title>
      <link>https://snipplr.com/view/20561/report-each-step-of-magentos-one-page-checkout-to-google-analytics</link>
      <description>&lt;p&gt;This code allows you to track each step of Magento's One Page Checkout in Google Analytics. I installed it at the bottom of my `checkout/onepage.phtml` template file. Once installed, you can set up a funnel for the following:&#13;
&#13;
* `/checkout/onepage/`&#13;
* `/checkout/onepage/billing/`&#13;
* `/checkout/onepage/shipping/`&#13;
* `/checkout/onepage/shipping_method/`&#13;
* `/checkout/onepage/payment/`&#13;
* `/checkout/onepage/review/`&#13;
* `/checkout/onepage/success/`&#13;
&#13;
(This is a tweak of code [seen here](http://www.magentocommerce.com/boards/viewthread/12564/P0/). I prefer the gist of lanthaler's method over FOOMAN's because the data sent to Google is more specific, and based on explicit requests to load sections rather than requests to save data.)&lt;/p&gt;</description>
      <pubDate>Thu, 01 Oct 2009 20:45:00 UTC</pubDate>
      <guid>https://snipplr.com/view/20561/report-each-step-of-magentos-one-page-checkout-to-google-analytics</guid>
    </item>
    <item>
      <title>(PHP) Strip Illegal XML Characters from a UTF-8 String - jdbartlett</title>
      <link>https://snipplr.com/view/20260/strip-illegal-xml-characters-from-a-utf8-string</link>
      <description>&lt;p&gt;Some valid UTF-8 characters are illegal in XML:&#13;
http://www.w3.org/TR/REC-xml/#charsets&#13;
&#13;
This statement strips them from your strings.&lt;/p&gt;</description>
      <pubDate>Fri, 25 Sep 2009 10:35:48 UTC</pubDate>
      <guid>https://snipplr.com/view/20260/strip-illegal-xml-characters-from-a-utf8-string</guid>
    </item>
    <item>
      <title>(PHP) Google Ajax Libraries API handler for CakePHP - jdbartlett</title>
      <link>https://snipplr.com/view/15538/google-ajax-libraries-api-handler-for-cakephp</link>
      <description>&lt;p&gt;[Google's "AJAX Libraries API"](http://code.google.com/apis/ajaxlibs/) is great and all, but can slow things down if you're doing a lot of refreshing/cache clearing while debugging. Here's a neat trick: stuff something like this in the `&lt;head&gt;` of your CakePHP Layout to use local versions of these libraries while you're debugging:&lt;/p&gt;</description>
      <pubDate>Fri, 05 Jun 2009 00:11:37 UTC</pubDate>
      <guid>https://snipplr.com/view/15538/google-ajax-libraries-api-handler-for-cakephp</guid>
    </item>
    <item>
      <title>(PHP) Include a Model from within a CakePHP Controller - jdbartlett</title>
      <link>https://snipplr.com/view/15459/include-a-model-from-within-a-cakephp-controller</link>
      <description>&lt;p&gt;This code within your CakePHP Controller to include a Model.&lt;/p&gt;</description>
      <pubDate>Tue, 02 Jun 2009 11:53:28 UTC</pubDate>
      <guid>https://snipplr.com/view/15459/include-a-model-from-within-a-cakephp-controller</guid>
    </item>
    <item>
      <title>(PHP) Saving CakePHP Model data with MySQL functions - jdbartlett</title>
      <link>https://snipplr.com/view/14809/saving-cakephp-model-data-with-mysql-functions</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 07 May 2009 11:54:49 UTC</pubDate>
      <guid>https://snipplr.com/view/14809/saving-cakephp-model-data-with-mysql-functions</guid>
    </item>
    <item>
      <title>(MySQL) Correcting wrong character encoding in MySQL data - jdbartlett</title>
      <link>https://snipplr.com/view/12860/correcting-wrong-character-encoding-in-mysql-data</link>
      <description>&lt;p&gt;When you forget to "SET NAMES utf8", you'll probably end up with a bunch of latin1 data in your utf8 column. This query fixes that, CONVERTing the existing data to its correct collation.&lt;/p&gt;</description>
      <pubDate>Fri, 06 Mar 2009 21:30:47 UTC</pubDate>
      <guid>https://snipplr.com/view/12860/correcting-wrong-character-encoding-in-mysql-data</guid>
    </item>
    <item>
      <title>(PHP) Include a component from within a CakePHP controller - jdbartlett</title>
      <link>https://snipplr.com/view/10567/include-a-component-from-within-a-cakephp-controller</link>
      <description>&lt;p&gt;This code within your CakePHP controller to include a component.&lt;/p&gt;</description>
      <pubDate>Thu, 18 Dec 2008 13:58:52 UTC</pubDate>
      <guid>https://snipplr.com/view/10567/include-a-component-from-within-a-cakephp-controller</guid>
    </item>
    <item>
      <title>(SQL) Delete Dulicate Rows in MySQL - jdbartlett</title>
      <link>https://snipplr.com/view/7908/delete-dulicate-rows-in-mysql</link>
      <description>&lt;p&gt;Where bad_table is the name of the table containing duplicate rows.&lt;/p&gt;</description>
      <pubDate>Mon, 18 Aug 2008 11:26:04 UTC</pubDate>
      <guid>https://snipplr.com/view/7908/delete-dulicate-rows-in-mysql</guid>
    </item>
  </channel>
</rss>
