jdbartlett


Member since 05/22/2008

8 snippets

1880 profile views

1 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet

jdbartlett's Recent Snippets



« Prev 1 Next »
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: * `/checkout/onepage/...
0 767 posted 15 years ago by jdbartlett
Some valid UTF-8 characters are illegal in XML: http://www.w3.org/TR/REC-xml/#charsets This statement strips them from your strings.
0 2294 posted 15 years ago by jdbartlett
[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 `<head>` of yo...
1 865 posted 15 years ago by jdbartlett
This code within your CakePHP Controller to include a Model.
0 682 posted 15 years ago by jdbartlett
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.
4 838 posted 15 years ago by jdbartlett
This code within your CakePHP controller to include a component.
0 630 posted 15 years ago by jdbartlett
Where bad_table is the name of the table containing duplicate rows.
2 569 posted 16 years ago by jdbartlett
« Prev 1 Next »