how to clear the basket after paypal redirect.[solved]

Author Message

ludo thomas

Tuesday 30 August 2005 2:09:30 am

Hello .
when a custommer have payed with paypal, he is redirected to the shop automatically.
the problem is that his basket still content all the items.
I need to delete his basket.
does someone know how to proceed?
(perhaps a new workflow in shop/after checkout?)
perhaps workflow code?
perhaps delete session var?
I've try this in ezpaypalgateway.php , just before sending the url, but nothing more..

include_once( "lib/ezutils/classes/ezhttptool.php" );
				eZHTTPTool::removeSessionVariable( 'DoCheckoutAutomatically' );

 

thx in advance.

ludo thomas

Wednesday 31 August 2005 6:12:36 am

I've found this:
http://ez.no/community/forum/developer/worldpay_gateway_added/re_worldpay_gateway_added__33

but where can I put these lines?
I t've tried in workflow.ini, paypal.ini, shopaccount.ini
but nothing..

ludo thomas

Wednesday 31 August 2005 7:06:30 am

ok .
you have to edit the site.ini (or override)
and change:

ClearBasketOnCheckout=disabled

to

ClearBasketOnCheckout=enabled

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 20 2025 13:57:14
Script start
Timing: Jan 20 2025 13:57:14
Module start 'layout'
Timing: Jan 20 2025 13:57:14
Module start 'content'
Timing: Jan 20 2025 13:57:15
Module end 'content'
Timing: Jan 20 2025 13:57:15
Script end

Main resources:

Total runtime1.0977 sec
Peak memory usage4,096.0000 KB
Database Queries55

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 589.3828152.6406
Module start 'layout' 0.00560.0031 742.023439.4766
Module start 'content' 0.00861.0877 781.5000473.9141
Module end 'content' 1.09630.0013 1,255.414112.1250
Script end 1.0976  1,267.5391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2815160.0002
Check MTime0.00130.1156160.0001
Mysql Total
Database connection0.00080.075810.0008
Mysqli_queries1.045395.2260550.0190
Looping result0.00040.0398530.0000
Template Total1.067197.220.5336
Template load0.00180.159820.0009
Template processing1.065497.058020.5327
Template load and register function0.00020.014810.0002
states
state_id_array0.00090.084510.0009
state_identifier_array0.00120.112420.0006
Override
Cache load0.00140.1302310.0000
Sytem overhead
Fetch class attribute can translate value0.00050.043410.0005
Fetch class attribute name0.00080.073940.0002
XML
Image XML parsing0.00360.327210.0036
class_abstraction
Instantiating content class attribute0.00000.001460.0000
General
dbfile0.00580.5263160.0004
String conversion0.00000.001040.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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: 21
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs