Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'wp_footer', 'prefix_hide_the_card_form' );
- function prefix_hide_the_card_form() {
- // Checkout or the Pay page
- if ( is_checkout() || is_checkout_pay_page() ) {
- ?>
- <style>
- .payment_method_psigate div#credit_card_info {
- display: none !important;
- }
- div#psigate_payment_choices_wrapper {
- display: none;
- }
- </style>
- <script type="text/javascript">
- (function ($) {
- $(document).ready(function () {
- $('#order_review #psigate_payment_choices_wrapper #psigate_interac_online_choice').click();
- });
- $(document.body).on('updated_checkout', function () {
- $('#order_review #psigate_payment_choices_wrapper #psigate_interac_online_choice').click();
- });
- })(jQuery);
- </script>
- <?php
- }
- }
Add Comment
Please, Sign In to add comment