displaying shipping info in shopping basket

Author Message

michiel n.

Thursday 02 October 2008 9:36:00 am

In the standard designs of the basket.tpl there is the check for $shipping_info

But when one completes her order, goes back to the shop, puts some products in the basket and hits the foo.ez/shop/basket url again, she will notice that shipping_info is set, but the price isn't yet set, altough the total price including shipping *is* there.

I'm not sure wether i forgot something in my shipping extension or whether there is a flaw in the standard design (or templates).

Poking at the code I realised that MyTemporaryId nor shipping_info is never unset, which i understand, but it seems that that's also the reason for this flaw.

What would be a good approach for this problem? Do you experience the same problem with your shipping extension(s)?

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 30 2025 21:42:05
Script start
Timing: Jan 30 2025 21:42:05
Module start 'layout'
Timing: Jan 30 2025 21:42:05
Module start 'content'
Timing: Jan 30 2025 21:42:06
Module end 'content'
Timing: Jan 30 2025 21:42:06
Script end

Main resources:

Total runtime0.7227 sec
Peak memory usage8,192.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.2656151.2266
Module start 'layout' 0.00480.0039 739.4922220.7188
Module start 'content' 0.00870.7131 960.21094,372.6016
Module end 'content' 0.72190.0008 5,332.81257.8125
Script end 0.7226  5,340.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4722160.0002
Check MTime0.00130.1768160.0001
Mysql Total
Database connection0.00090.126810.0009
Mysqli_queries0.649589.8805460.0141
Looping result0.00040.0590440.0000
Template Total0.677693.820.3388
Template load0.00200.277020.0010
Template processing0.675693.483120.3378
Template load and register function0.00150.209510.0015
states
state_id_array0.00110.147510.0011
state_identifier_array0.00070.094520.0003
Override
Cache load0.00160.224290.0002
Sytem overhead
Fetch class attribute can translate value0.00170.240810.0017
Fetch class attribute name0.00160.222020.0008
XML
Image XML parsing0.00170.236910.0017
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00210.2882160.0001
String conversion0.00000.001140.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs