Order total

Author Message

Erlend Halvorsen

Monday 27 October 2008 3:18:47 am

Hi!

The /shop/basket action seems to display order total as 0, even though the items I've added to the cart has a subtotal of 1100,-. I also notice that shipping cost is 0,- even though the shipping handler hasn't even been invoked yet, as that isn't triggered until before confirm order. Is this correct behavior? I tried upgrading from 4.0 to 4.0.1, but this made no difference.

-Erlend

michiel n.

Wednesday 05 November 2008 2:37:55 am

Shipping handlers are made or installed by you. So what they exactly do is something only you know. It might be that you want them to be triggered immediately or at the confirm order, depending on your specific case. The first needs a tiny hack though.

Shipping costs in your basket might show up, check your basket.tpl

What you're describing, sounds like either your basket.tpl isn't what you'd like it to be either you've gone to the confirm order, went back to your shopping basket and tadaa, default template will show shipping == 0, because $shipping_info is_set.

(Sessions live longer than design flaws).

Certified eZ developer looking for projects.
michieln at gmail dot com
http://ez.no/certification/verify/225305

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 11:35:28
Script start
Timing: Jan 18 2025 11:35:28
Module start 'layout'
Timing: Jan 18 2025 11:35:28
Module start 'content'
Timing: Jan 18 2025 11:35:29
Module end 'content'
Timing: Jan 18 2025 11:35:29
Script end

Main resources:

Total runtime1.3217 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 587.7891152.6094
Module start 'layout' 0.00660.0036 740.398439.3984
Module start 'content' 0.01021.3095 779.7969517.9922
Module end 'content' 1.31970.0020 1,297.78918.2031
Script end 1.3216  1,305.9922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2588160.0002
Check MTime0.00150.1133160.0001
Mysql Total
Database connection0.00090.069010.0009
Mysqli_queries1.276596.5844540.0236
Looping result0.00060.0491520.0000
Template Total1.278196.720.6391
Template load0.00190.146020.0010
Template processing1.276296.559220.6381
Template load and register function0.00020.017110.0002
states
state_id_array0.00140.105110.0014
state_identifier_array0.00270.205620.0014
Override
Cache load0.00160.1195120.0001
Sytem overhead
Fetch class attribute can translate value0.00090.066120.0004
Fetch class attribute name0.00110.085330.0004
XML
Image XML parsing0.00080.058020.0004
class_abstraction
Instantiating content class attribute0.00000.000530.0000
General
dbfile0.00100.0721160.0001
String conversion0.00000.000640.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs