Shop -> SOS... I really need a solution for shipping cost. Please.

Author Message

laurent le cadet

Tuesday 04 May 2004 5:31:18 am

Hi,

I build a shop for books but I can't manage to add a shipping cost for the total_price_inc_vat. It wil be the last touch before opening and <b>the dead line is now.</b>
I remember there was this option in the 2.2 series but with 3.3, it seems to be rather different.

The only way I found is to rewrite parts of code in kernel but I'm not good at this job and I'm not sure it's the best way.

Someone has an idea ?

Regards Laurent.

Paul Forsyth

Tuesday 04 May 2004 5:43:34 am

Im not sure what you are after here. Have you looked at the attributes of ezprice?

kernel/classes/datatypes/ezprice/ezprice.php

and at the shipping workflow event?

kernel/classes/workflowtypes/event/ezsimpleshipping/ezsimpleshippingtype.php

Do these help?

Paul

--
http://www.visionwt.com

laurent le cadet

Tuesday 04 May 2004 10:18:46 am

Hi Paul.

If that help ?

<b>For sure :)</b>

I make a workflow (simpleshipping) and a trigger (before confirm order) and I notice that the price of the product change. It works fine.
What I can't find is where to change the ShippingCost variable.
So many include and files :(

Could you help me again ?

Laurent

Paul Forsyth

Tuesday 04 May 2004 10:52:02 am

This is where looking at the php files help ;)

If you look at the simpleshippingtype file you will see inside it makes reference to two ini variables:

$ini =& eZINI::instance( 'workflow.ini' );

$cost = $ini->variable( "SimpleShippingWorkflow", "ShippingCost" );
$description = $ini->variable( "SimpleShippingWorkflow", "ShippingDescription" );

These are from the workflow ini file. So, if you set the values in that ini file, preferably as an override it should add the correct amount.

paul

--
http://www.visionwt.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.