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.