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

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

Committer: ailyin
LJSUP-6234: show token prices to everyone eligible
U   trunk/cgi-bin/LJ/Widget/Shop/Cart.pm
Modified: trunk/cgi-bin/LJ/Widget/Shop/Cart.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Shop/Cart.pm	2010-06-15 05:44:39 UTC (rev 9058)
+++ trunk/cgi-bin/LJ/Widget/Shop/Cart.pm	2010-06-15 14:42:13 UTC (rev 9059)
@@ -60,10 +60,12 @@
     return if LJ::Request->redirected;
 
     my $cart = $self->cart;
+    my $remote = LJ::get_remote();
 
     # prepare flags "show dollars" and "show tokens"
     $self->{'price_show_dollars'} = 1;
-    $self->{'price_show_tokens'} = LJ::Pay::Method::Wallet->suitable_for($cart);
+    $self->{'price_show_tokens'} =
+        LJ::Pay::Wallet->is_user_eligible($remote);
 
     # save misc information about the cart
     $self->{'cart_locked'}  = !$cart->can_modify;

Tags: andy, 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