Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[ljcom] r9061: LJSUP-6234: show token prices to everyon...

Committer: gariev
LJSUP-6234: show token prices to everyone eligible
U   branches/r65/cgi-bin/LJ/Widget/Shop/Cart.pm
Modified: branches/r65/cgi-bin/LJ/Widget/Shop/Cart.pm
===================================================================
--- branches/r65/cgi-bin/LJ/Widget/Shop/Cart.pm	2010-06-15 14:43:11 UTC (rev 9060)
+++ branches/r65/cgi-bin/LJ/Widget/Shop/Cart.pm	2010-06-15 15:20:20 UTC (rev 9061)
@@ -65,7 +65,8 @@
     # prepare flags "show dollars" and "show tokens"
     $self->{'price_show_dollars'} = 1;
     $self->{'price_show_tokens'} =
-        LJ::Pay::Wallet->is_user_eligible($remote);
+        LJ::Pay::Wallet->is_user_eligible($remote) &&
+        !LJ::Pay::Payment::PayItem::WalletTokens->present_in($cart);
 
     # save misc information about the cart
     $self->{'cart_locked'}  = !$cart->can_modify;
@@ -174,7 +175,8 @@
 
     my $show_wallet_warning =
         LJ::Pay::Wallet->is_user_eligible($remote) &&
-        LJ::Pay::Wallet->get_user_balance($remote) < $cart_price_tokens;
+        LJ::Pay::Wallet->get_user_balance($remote) < $cart_price_tokens &&
+        !LJ::Pay::Payment::PayItem::WalletTokens->present_in($cart);
 
     # compile data
     return {

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