[ljcom] r12326: LJSUP-12412: Implement 'Dengi online' pa...
Committer: wisest-owl
LJSUP-12412: Implement 'Dengi online' payment system in LiveJournal ShopU trunk/cgi-bin/LJ/Widget/Shop/Cart.pm U trunk/templates/Shop/Cart.tmpl
Modified: trunk/cgi-bin/LJ/Widget/Shop/Cart.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Shop/Cart.pm 2012-07-20 10:39:27 UTC (rev 12325)
+++ trunk/cgi-bin/LJ/Widget/Shop/Cart.pm 2012-07-20 10:48:13 UTC (rev 12326)
@@ -196,6 +196,7 @@
'method_groups' => \@method_groups,
'allow_repeat' => $cart->allow_repeat,
'show_wallet_warning' => $show_wallet_warning,
+ 'dengionline_disabled' => $LJ::DISABLED{'dengionline'} ? 1 : 0,
%$dengi_online_params,
};
}
Modified: trunk/templates/Shop/Cart.tmpl
===================================================================
--- trunk/templates/Shop/Cart.tmpl 2012-07-20 10:39:27 UTC (rev 12325)
+++ trunk/templates/Shop/Cart.tmpl 2012-07-20 10:48:13 UTC (rev 12326)
@@ -82,6 +82,7 @@
</div>
</TMPL_UNLESS>
</div>
+ <TMPL_IF name="dengionline_disabled">
<div class="canyon-side">
<TMPL_IF name="can_checkout">
<div class="checkout">
@@ -122,6 +123,7 @@
</div>
</TMPL_UNLESS>
</div>
+ </TMPL_IF>
</div>
<TMPL_IF name="cart_appbill">
<TMPL_IF name="is_sandbox"><p class="b-bubble b-bubble-alert b-bubble-intext"><TMPL_VAR expr="ml('/pay/index.bml.note.sandbox.payment')"></p></TMPL_IF>
@@ -140,5 +142,7 @@
</TMPL_UNLESS>
</div>
+<TMPL_IF expr="cart_valid && !dengionline_disabled">
<TMPL_INCLUDE "templates/Shop/DengiOnline.tmpl">
+</TMPL_IF>
