• Resolved tbo460

    (@thibotus01)


    I’m getting this blank Express checkout here: https://gyazo.com/458790d4d36f48d05f1ec2c4c6031829
    This appear since last version and I’m also using these snippets (if disabled the issue is gone):

    // Move billing fields above payment
    remove_action( 'cfw_checkout_payment_method_tab', 'cfw_payment_methods', 10 );
    remove_action( 'cfw_checkout_payment_method_tab', 'cfw_payment_tab_content_billing_address', 20 );

    add_action( 'cfw_checkout_payment_method_tab', 'cfw_payment_tab_content_billing_address', 10 );
    add_action( 'cfw_checkout_payment_method_tab', 'cfw_payment_methods', 20 );

    // Change URL to home page in Continue Shoppping button on Thank you page
    add_filter( 'woocommerce_continue_shopping_redirect', function() {
    $home_url = apply_filters( 'wpml_home_url', get_option( 'home' ) );
    return $home_url;
    } );

    // Change breadcrumb Payment title
    add_filter('cfw_breadcrumb_payment_label', function(){
    return esc_html__( 'Billing & Payment', 'checkout-wc' );
    });

    // Side cart for Astra theme
    add_filter(
    'cfw_additional_side_cart_trigger_selectors',
    function() {
    return '.woocommerce .ast-site-header-cart, .ast-site-header-cart';
    }
    );
    // Disable checkout button once clicked (not working?)
    function disable_checkout_button_script() {
    ?>
    <script nowprocket>
    jQuery(document).ready(function() {
    setTimeout(function(){
    // Define the CSS for the disabled link
    var disabledStyles = {
    'background': '#d3f0ff', // Gray out the link
    'cursor': 'not-allowed', // Change cursor to indicate it's disabled
    'pointer-events': 'none' // Prevents click events
    };

    // Attach a click event to the link
    jQuery('.cfw-primary-btn.cfw-side-cart-checkout-btn').on('click', function() {
    // Apply the CSS styles directly to the clicked element
    jQuery(this).css(disabledStyles);
    });
    }, 1000);
    });
    </script>
    <?php
    }

    add_action('wp_footer', 'disable_checkout_button_script');
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Clayton R

    (@mrclayton)

    Hi @thibotus01

    Thank you for contacting Payment Plugins. All of the filters you’re using are related to the CheckoutWC plugin which controls your express checkout section of the checkout page.

    Can you share a product page url to your site? I would also recommend contacting the CheckoutWC team so they can review since that is a premium plugin.

    Kind Regards

    Thread Starter tbo460

    (@thibotus01)

    Oh sorry I get confused everytime and checked the wrong snippets. I will send you an email with product URL. Thank you

    Plugin Author Clayton R

    (@mrclayton)

    Version 3.3.101 released.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.