Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[ljcom] r8140: LJSV-892 (after vgift order is completed...

Committer: ailyin
LJSV-892 (after vgift order is completed, old order still shows and must be manually cleared): clear 'cart' cookie after user presses the "checkout"
button

U   trunk/htdocs/pay/modify.bml
Modified: trunk/htdocs/pay/modify.bml
===================================================================
--- trunk/htdocs/pay/modify.bml	2010-01-26 11:25:00 UTC (rev 8139)
+++ trunk/htdocs/pay/modify.bml	2010-01-26 11:33:39 UTC (rev 8140)
@@ -214,6 +214,9 @@
         my $uniq = LJ::Request->notes('uniq');
         $cartobj->payvar_add("uniq",  LJ::mysql_time() . " - $uniq") if $uniq;
 
+        # clear the cookie before we redirect
+        delete $BML::COOKIE{'cart'};
+
         if ($paymeth eq "sup_sms" && LJ::Pay::can_use_sup_sms($remote)) {
             my $uri = $LJ::PAY_SUP_SMS_URI;
             return BML::redirect("$uri?order_num=" . LJ::eurl($cart)) if $uri;

Tags: andy, bml, ljcom
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments