Magento: Problem with DIBS module

Using the DIBS module (from Magento connect); we had the “slight” problem that if the order was payed using the test visa card (from DIBS 10 steps) viewing the order was not possible.
The page only partially rendered but most of it was not shown.

We “fixed” this by adding two things to app/code/local/Mage/Adminhtml/Block/Sales/Order/View/Tab/Info.php

We figured out the problem lied in the “switch($paytype)” statement in the “function printLogo($paytype)”

We started by editing the “default:” statement to read

$res = 'no image for ' . $paytype;

instead of the old statement of

$res = '<img src="' . $paytype;

was what broke the page rendering as that img tag was not ended.

We also added an extra case for the card that didn’t exist in the old switch:

case 'VISA,V-DK':  {
                $res = '<img alt="" />getSkinUrl('images/dibs/visa.gif') . '" border="0" />';  break;

Magento: Adding tax (Swedish moms for example)

There is 4 momsclasses in Sweden (25%, 12%, 6% and 0%).

Under Sales-Tax-Manage tax zones & rates:

Create one rule per momsclass for Sweden with * as region and * as Zip.

Create one rule for customers.

Create one rules per momsclass for products.

Create one Tax rule for each momsclass.

Make sure that the products in the catalog have tax set (if there are product in the catalog).

Under System-Config-Tax make the appropriate settings. (defines if the prices are including or excluding tax, if tax should be added on shipping or not etc)