• Resolved jon

    (@jonwarner)


    We’ve recently installed this Paypal extension. Installation and selecting payment options was simple enough – thank you for that.

    On the checkout page, for some reason Credit Card Processing appears at the bottom of payment options on the front-end – even after payment options not associated with this extension (I have set the order under Woocommerce > Settings > Payments).

    We would like to change the order of payment options to the following:

    Credit Card		(from this plugin)
    Paypal			(from this plugin)
    Pay over the Phone	(standard woocommerce)

    However, what is displayed is:

    Paypal			(from this plugin)
    Pay over the Phone	(standard woocommerce)
    Credit Card		(from this plugin)

    I assume it’s something to do with the credit card fields being loaded from Paypal, but the order of the container could still be set prior to receiving the form.`

    • This topic was modified 3 years, 5 months ago by jon.
    • This topic was modified 3 years, 5 months ago by jon.
Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Support Andreas W.

    (@aweissinpsyde)

    Hello @jonwarner

    sorry, but you can’t change the payment methods inside the payment gateway iframe. Also, when you activate our plugin there shouldn’t be another payment option called credit card. Credit card should be included inside the plugin settings itself under PayPal Card Processing or Funding sources.

    Can you send me a screenshot of your payment methods

    Regards
    Andreas

    Thread Starter jon

    (@jonwarner)

    ‘Credit card’ refers to ‘Paypal Card Processing’, which is defined as ‘Pay with Credit Card’ in the Title field.

    Two screenshots:

    Woocommerce > Settings > Payments
    Checkout Page

    Plugin Support Andreas W.

    (@aweissinpsyde)

    Hello @jonwarner

    I’m wondering how the phone over the phone comes between? But as I said before we or you can’t change the sort of the payment methods.

    Thread Starter jon

    (@jonwarner)

    That’s what I’m wondering too – on the checkout page load, the only two visible payment options are Paypal and Pay over the Phone. The iframe takes a second to load after that. I think it needs a container that exists in the DOM that it loads in to, to ensure the order is adhered to – currently it appears to just slot itself in at the end.

    If we could at least get that fixed, it’d be better. Thanks for your continued attention to this problem.

    Plugin Support Andreas W.

    (@aweissinpsyde)

    Hello @jonwarner

    can you please me an email to [email protected] with WooCommerce status report, screenshots, etc, and when possible access details so we can have a closer look at it?

    Thank you
    Regards
    Andreas

    Thread Starter jon

    (@jonwarner)

    I’ll need a couple of days to set up a clone whilst removing customer personal data – I’ll send you the info next week.

    Thank you.

    Plugin Support Andreas W.

    (@aweissinpsyde)

    Hello @jonwarner

    Thank you so much.

    Kind regards
    Andreas

    Plugin Support Andreas W.

    (@aweissinpsyde)

    Closed because of inactivity. You can re-open this thread every time you want

    Plugin Support Andreas W.

    (@aweissinpsyde)

    Hello @jonwarner

    you can set with that hook

    add_action( 'template_redirect', 'define_default_payment_gateway' );
    function define_default_payment_gateway(){
        if( is_checkout() && ! is_wc_endpoint_url() ) {
            $default_payment_id = 'ppcp-credit-card-gateway';
    
            WC()->session->set( 'chosen_payment_method', $default_payment_id );
        }
    }

    credit card first as you want. You have to add it to your theme fuctions.php

    Best regards
    Andreas

    Hey @aweissinpsyde, your code is fine for changing the default selected option, but we should be able to reorder the options as OP asked.

    I don’t know what you’re talking about with an iframe. There is no iframe. There’s just the WooCommerce checkout form.

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @eclev91

    the payment options that are provided by PayPal (credit card & PayPal) that are shown, are displayed in an iFrame and are not controlled by the plugin, but by PayPal. So in short, the possible items: Pay with PayPal, PayPal Card Payment, Pay Later and Pay Now (all customizable) are delivered in a single iFrame that is delivered and controlled by Paypal. We cannot adjust the order via our plugin.

    Kind regards,
    Joost

    @joostvandevijver Not sure what you’re talking about, but there is no iframe on the WooCommerce checkout screen when using this plugin. There is an HTML form element.

    I’ve enabled the Card Processing option for PayPal, via this plugin, but it does not appear in the collection of available payment methods to drag-and-drop around. Instead, it seems to be force-added to the end of the list on the front end.

    • This reply was modified 3 years, 3 months ago by eclev91.

    @joostvandevijver Ah, there is an iframe once you select the “Credit Cards” option, but we’re talking about a layer above that, which WooCommerce handles. The order in which the available payment methods are displayed.

    @joostvandevijver The issue is that the Credit Card half of this plugin doesn’t inherit the order of the main PayPal gateway the plugin provides and places into the drag-and-drop orderer. WooCommerce core’s logic puts any gateway without a configured order at the end of the available gateways when checking out.

    See WooCommerce core class WC_Payment_Gateways::init().

    • This reply was modified 3 years, 3 months ago by eclev91.
    • This reply was modified 3 years, 3 months ago by eclev91.
Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Checkout Page Payment Options Order’ is closed to new replies.