I get a ’division by zero’ error
This happens if you try to run cwhoiscart.php directly. You need to include cwhoiscart.php in a template page for it to work properly. Upload demo.php which is a simple example template and try that. This error could also happen if you have not included cwcconf.php at the top of your page.