Clearing shop session variable [DoCheckoutAutomatically]

Author Message

Paul Forsyth

Thursday 29 May 2003 3:46:19 am

Currently im using the ezdefault shop account handler but have altered it to instead goto user/login instead of user/register when the user goes to checkout their basket.

This is ok the first time but im finding the setting of the session variable [DoCheckoutAutomatically] to be a hinderance. If i goto the login, choose not to login yet and to continue shopping i can no longer view my basket because this session variable cause the shop/basket.php file to goto the checkout, and consequently my login screen again. if i want to view my basket i would like to be able to.

Is there a way to clear this variable or something else that has the effect that i can indicate i dont want to automatically checkout yet?

thanks

paul

Bård Farstad

Monday 02 June 2003 10:28:46 am

You can clear the session variable by doing a:
eZHTTPTool::removeSessionVariable( 'DoCheckoutAutomatically' ) );

This should solve your problem.

--bård

Documentation: http://ez.no/doc

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

Main resources:

Total runtime0.5259 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.0061 589.2734152.6563
Module start 'layout' 0.00610.0028 741.929739.4922
Module start 'content' 0.00880.5151 781.4219521.8438
Module end 'content' 0.52390.0019 1,303.26568.1094
Script end 0.5258  1,311.3750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.6850160.0002
Check MTime0.00120.2373160.0001
Mysql Total
Database connection0.00100.184310.0010
Mysqli_queries0.482091.6569540.0089
Looping result0.00040.0843520.0000
Template Total0.492693.720.2463
Template load0.00250.479020.0013
Template processing0.490093.181920.2450
Template load and register function0.00010.023610.0001
states
state_id_array0.00140.263010.0014
state_identifier_array0.00190.358720.0009
Override
Cache load0.00210.3961140.0001
Sytem overhead
Fetch class attribute can translate value0.00070.125720.0003
Fetch class attribute name0.00170.318530.0006
XML
Image XML parsing0.00050.102320.0003
class_abstraction
Instantiating content class attribute0.00000.001330.0000
General
dbfile0.00110.2054170.0001
String conversion0.00000.001740.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
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs