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.

eZ debug

Timing: Jan 18 2025 19:14:38
Script start
Timing: Jan 18 2025 19:14:38
Module start 'layout'
Timing: Jan 18 2025 19:14:38
Module start 'content'
Timing: Jan 18 2025 19:14:39
Module end 'content'
Timing: Jan 18 2025 19:14:39
Script end

Main resources:

Total runtime0.6992 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.1719152.6563
Module start 'layout' 0.00580.0024 740.828139.5078
Module start 'content' 0.00810.6897 780.3359517.8359
Module end 'content' 0.69790.0013 1,298.171912.0938
Script end 0.6992  1,310.2656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4464160.0002
Check MTime0.00130.1885160.0001
Mysql Total
Database connection0.00100.142610.0010
Mysqli_queries0.646392.4374600.0108
Looping result0.00060.0846580.0000
Template Total0.670295.820.3351
Template load0.00190.277620.0010
Template processing0.668295.565820.3341
Template load and register function0.00010.010410.0001
states
state_id_array0.00100.143910.0010
state_identifier_array0.00090.135620.0005
Override
Cache load0.00170.2429370.0000
Sytem overhead
Fetch class attribute can translate value0.00060.092720.0003
Fetch class attribute name0.00110.158650.0002
XML
Image XML parsing0.00040.060020.0002
class_abstraction
Instantiating content class attribute0.00000.001560.0000
General
dbfile0.00070.1005160.0000
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs