ssafronova (ssafronova) wrote in changelog,
ssafronova
ssafronova
changelog

[ljcom] r9742: LJSUP-7419: We shouldn't display yellow ...

Committer: ssafronova
LJSUP-7419: We shouldn't display yellow bubble in the cart, if the user gives paid account to community. Give more.
U   trunk/cgi-bin/LJ/Pay/Payment/PayItem/PaidAccount.pm
Modified: trunk/cgi-bin/LJ/Pay/Payment/PayItem/PaidAccount.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/Payment/PayItem/PaidAccount.pm	2010-11-22 09:03:11 UTC (rev 9741)
+++ trunk/cgi-bin/LJ/Pay/Payment/PayItem/PaidAccount.pm	2010-11-22 09:07:02 UTC (rev 9742)
@@ -35,7 +35,9 @@
 
     my $now = time;
     if ($item->{'qty'} == 12 and $item->{'rcptid'} != $cart->get_userid and
+        LJ::Pay::Wallet->is_user_eligible($u) and
         $now >= $LJ::PAID_ACCOUNT_PROMO_TOKENS_START and $now < $LJ::PAID_ACCOUNT_PROMO_TOKENS_END) {
+
         push @$warns_ref, LJ::Lang::ml('/pay/modify.bml.warning.give_more_2010', 
                                           { touser => LJ::ljuser($u), 
                                             count => $LJ::PAID_ACCOUNT_PROMO_TOKENS_AMOUNT } );

Tags: ljcom, pm, ssafronova
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