WooCommerce Canadian Taxes 2013

In follow up to OpenCart Canadian Taxes 2012-2013 I have also needed to setup Canadian taxes for the WordPress eCommerce plugin WooCommerce 1.x (1.4-1.6) and 2.x (2.0). I’ve attached the screenshots of the configuration for 2013 Canadian Sales Tax.

 

JavaScript Semi-Colons

I was reading this which is an article on forced coding standards in industry and how having a little smart code freedom can result in better code. The author references JavaScript Semi-Colons. I suggest reading up on Automatic Semicolon Insertion if the javascript language interests you, the author goes over the way JavaScript is parsed.

Even if you use semicolons at the end of every statement, some constructs parse in non-obvious ways. Regardless of your preferences in semicolon usage, you must know the rules to write JavaScript professionally. If you remember a few simple rules, all of which are explained here, you will be able to understand how any program you might encounter will be parsed, and will be an expert on JavaScript automatic semicolon insertion, or ASI.

The JavaScript Garden also explains Automatic Semicolon Insertion (ASI).

OpenCart Canadian Taxes 2012-2013

Configuring taxes for Canada in OpenCart can be a little tricky with GST/HST and PST being different across provinces.

I found some resources which helped me configure Tax Classes, Tax Rates and Geo Zones in OpenCart v1.5.4.1. The screenshots and percentages found on forums dated back to 2010, and since then tax rates have increased/changed and the way OpenCart handles Geo Zones and Taxes also changed.

I took screenshots of my setup to help anyone else who needs to configure their OpenCart store for Canadian Taxes.

*Note: Since screenshots, I have changed the PEI PST the effective rate of 10.5%, just like I’m using 9.975% for QC.

After my implementation, I came across another configuration. I find it less redundant; grouping similar tax rates. This method of configuration requires less tax class entries, although it can be less clear in the years to come, or for a new developer. It can be found here: http://williamkingsblog.blogspot.com/2012/02/opencart-canada-taxes-setting.html

Sources:
http://forum.opencart.com/viewtopic.php?t=16414
http://forum.opencart.com/viewtopic.php?t=85232
https://www.facebook.com/photo.php?pid=6190533&l=ad2ef36ae0&id=653719621
http://www.taxtips.ca/salestaxes/salestaxrates2012.htm
http://www.opencart.com/index.php?route=feature/blog/info&blog_id=1

Content update!

I have updated my portfolio with more of my recent works.

My efforts have changed gears and I’m working on new and exciting projects in new territory. Will update soon!