Profile
Achievement
jdbartlett's Recent Snippets
- All /
« 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
779
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
2332
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
876
posted 15 years ago by jdbartlett
This code within your CakePHP Controller to include a Model.
0
694
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
852
posted 15 years ago by jdbartlett
This code within your CakePHP controller to include a component.
0
640
posted 15 years ago by jdbartlett
Where bad_table is the name of the table containing duplicate rows.
2
585
posted 16 years ago by jdbartlett