Forums / General / How to work the webshop?

How to work the webshop?

Author Message

Jon Staines

Monday 30 April 2007 4:21:36 am

Hi,

I've been trying to understand how to set up a shop in eZ Publish using the forum posts about it. And I'm getting confused.

I've added an extension to hold the shipping details which has a section:

    function getShippingInfo( $productCollectionID )
    {
        return array(
        'description' => 'Shipping',
        'cost' => 10,
        'is_vat_inc' => 1,
        'vat_value' => 17.5,
        );
    }

But when I look at the basket I get:

Subtotal Inc. VAT: 	£ 18.00  	 
Shipping: 	£ 10.00 	 
Order total: 	£ 28.00 	
 
Basket summary:
Sub total Ex VAT: 	£ 15.32 	 
Shipping total Ex VAT: 	£ 10.00 	 
Total VAT (17.5%): 	£ 2.68 	 
Order total: 	£ 8.51 	

So the top part is ok. And the Sub total Ex VAT seems to work. But then it starts going wrong. The values don't make any sense.

Help! Am I making some really obvious mistake? Is the a nice tutorial anywhere?