WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Logo & Header Border Color on Checkout Page

[Resolved] Logo & Header Border Color on Checkout Page

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mohsin Rasool
    Participant

    @mohsinrasool

    Hi flashbuddy,

    Some customization of checkout page (particularly for donation button) require Premier or Business PayPal account. Unfortunately, I cant find out this requirement on PayPal’s documentation but under a discussion in PayPal Forums. I myself verified it.

    Taking charity donations

    Other than the donation button, It worked fine on all buttons. your logo does pass dimensions and image formatting requirements.

    I just installed this plugin and don’t see where to to put the amount for the Pay Now button. I also need several different buttons with different prices how do I create them if they are all Pay Now.

    I am offering a workshop that costs 40 for 2 people and additional members are 10 each, is there a way to display both options in the same paypal checkout page so the person doesn’t have to do the step twice?

    Thanks!

    My other question is how to make a NEW window open when they click on the button.

    Plugin Author Mohsin Rasool
    Participant

    @mohsinrasool

    LPPYOga, You would use following shortcode for pay now button with amount of $40.

    [paypal_button type=”paynow” amount=”40″ name=”For Two People”]
    [paypal_button type=”paynow” amount=”50″ name=”For Three People”]
    [paypal_button type=”paynow” amount=”60″ name=”For Four People”]

    You can have as many buttons as you want.

    If you want a single button, where you can visitor can choose number of persons and charges are adjusted as per selected number of persons, It is not supported yet. But you can use workarounds to do that. To get you started

    1. Wrap your button shortocode with like

    <span class="paypal_button">[paypal_button ...]</span>

    2. Use jQuery to apply calculations on click

    jQuery('.paypal_button input[type="image"]').click(function(){
       var qty = jQuery(this).siblings('input[name="quantity"]').val();
       if(qty <=2)
          // $20 per person
          jQuery(this).siblings('input[name="amount"]').val(qty*20);
       else{
          // $20 for first two and the $10 for each remaining person
          var amount = ((qty-2)*10)+40;
          jQuery(this).siblings('input[name="amount"]').val(amount);
       }
    });

    Disclaimer: above code is not tested. You may expect typos and errors.

    About the second question, it is not possible with the form buttons, But you can use “echo_link=1” attribute to create a link that can be used to open a new window.

    You can check documentation page

    Hope it solves your problem.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Logo & Header Border Color on Checkout Page’ is closed to new replies.