Ben's Pro Tips

Tech Tips Made Easy

Category Archives: Programming Tips

Odds and ends for programming. Includes tips I’ve picked up doing a wide range of development tasks in multiple programming languages.

OpenCart: How to exclude tax from your Google Products feed

Due to an odd design decision, OpenCart will always factor in sales (or VAT) taxes in your Google Products feed (or Froogle or Google Base or Google Shopping or Google Merchants or whatever the heck they’re calling it this week). … Continue reading

March 25, 2014 eCommerce, PHP Tips

Upgrading to PHP 5.5 (or PHP 5.4) on Ubuntu 12.04 Precise Pangolin

To upgrade the default PHP 5.3 to 5.5 and still receive automatic updates, you can do the following:

February 13, 2014 Linux Server Tips, PHP Tips php, php 5.4, php 5.5, ubuntu server, upgrade

Adding canonical URLs to your OpenCart pages (for free)

OpenCart is a pretty good free PHP shopping cart system. Despite its popularity, some of its missing features are glaring, especially when it comes to SEO. OpenCart does implement the rel=”canonical” tag on its product pages. However, there’s no canonical … Continue reading

February 6, 2014 eCommerce, PHP Tips canonical, opencart

Don’t hack your HTML/CSS for IE6 and IE7 support, fix it right.

I came across this excellent article on which HTML/CSS features are most likely to trigger incompatibilities and easy workarounds to fix them without hacks. Good reference for all web designers/coders.

February 15, 2011 HTML/CSS Tips, Programming Tips

CakePHP error: Fatal error: Class ‘Router’ not found in xxxx

Are you getting the Router not found error in your CakePHP app? Let me guess, you just moved servers or directories, right? Fortunately it’s an easy fix. Cake keeps caches of computationally expensive data in order to reduce CPU and … Continue reading

February 12, 2011 PHP Tips, Programming Tips

Keep Facebook’s Like Box from slowing down your page load

Reduce your page loading time by postponing Like Box loading until after your page has fully loaded. Continue reading

January 29, 2011 Javascript Tips, Programming Tips

Capitalizing the first letter of each sentence in Javascript

If you’ve ever had to work with user-submitted text, you’ll know the use of capitalization today is appalling. I started to write my own Javascript sentence parser to help deal with this problem, when I realized, why duplicate the effort, … Continue reading

January 28, 2011 Javascript Tips, Programming Tips