lundi 5 octobre 2015

WooCommerce Plugin: Hide Paypal section of Paypal Advanced Checkout and leave just Credit Card

Im running into an issue with this and hoping I can find some help. I am attaching a code snippet below with the applicable parts. This is for a Wordpress/WooCommerce setup and with the PayPal Advanced Plugin Im seeking to hide the first div container that is "pay with paypal" and leave my checkout with only the "pay with credit card" window. The only issue im running into is that these div containers/classes are all named exactly the same so Im running into walls with just hiding them without effecting them both. I also cant edit the names as this code is displayed via an iframe generated by PayPal. Any and all help is greatly appreciated!

<div id="iframeContainer">
    <!--Pay with PP starts -->
      <div class="shadowBox">
        <div class="shadowContent">
          <div class="miniController">
            <div class="headline">
              <span class="arrowicon"><strong>›</strong></span>


          </div>
        </div>
      </div>
    <!--Pay with PP ends -->

  <!--Pay with CC starts -->
 <div class="shadowBox">
    <div class="shadowContent">
      <div class="miniController">
        <div class="headline">
          <span class="arrowicon"><strong>›</strong></span>
          <span class="bartitle">
            <strong>



                  Pay with credit or debit card


            </strong>
          </span>
        </div>
      </div>
      <div class="miniContainer">
        <form method="post" id="formPayment" name="form_payment"     action="processTransaction.do" class="edit">
          <input type="hidden" name="subaction">
          <div id="fieldsCC">
            <div id="fieldrowCCNumber">
              <p class="group cc">
                <label for="cc_number"><span class="show">Card number</span></label>
                <span class="field">



                            <input type="text" id="cc_number" name="CARDNUM" autocomplete="off" value="">

                  ********

                    <input type="submit" id="btn_pay_cc" name="pay.x" value="Pay Now"   class="button primary" onclick="this.disable=true">





          </p>
        </form>
      </div>
    </div>
  </div>



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire