eZ Community » Projects » lisshippingcosts

lisshippingcosts

simple shippingcosts handler

» Visit project page    » Project members    » Reviews

Latest forum activity - Visit project's forums page

Friday 03 May 2013 2:05:03 pm

Not complaining about your workflow solution, which probably works. I'm just informing you that the eZ Shop actually have support for adding shipping cost handlers in the system.

You set it up something like this:

shop.ini:

<code>

[ShippingSettings]

Handler=standard

ExtensionDirectories[]=my_extension

</code>

extension/my_extension/shippinghandlers/standardshippinghandler.php:

<code>

<?php

class StandardShippingHandler

{

function getShippingInfo( $productCollectionID )

{

...

// Set up shipping cost code

...

return array(

'description' => ezi18n( '/shop/gyldendal', 'Postage' ),

'cost' => $cost,

'management_link' => '/shop/basket/', // dummy

'vat_value' => 0,

'is_vat_inc' => 1

);

}

function purgeShippingInfo( $productCollectionID )

{

}

function updateShippingInfo( $productCollectionID )

{

}

}

?>

</code>

Members - Visit project's team page
Real name:
Roman Mudrack
Country:
Germany 
#Posts:
11
Project reviews - See all reviews

No review yet.

Proudly Developed with from