Forums / Developer / how to clear the basket after paypal redirect.[solved]
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.
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..
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
Script start
Module start 'content'
Module end 'content'
Script end
Time used to render debug report: 0.0002 secs