• The place order button on the checkout page has stopped working. When you click it does nothing. If I skip a field it does not come up in red as it did before.
    I’m using paypal standard.
    I’ve tried disabling all plugins it still doesn’t work.
    I tried wp-debug but I’m not getting any errors. There is alot of jquery/javascript in the footer that shows in firebug.
    Any suggestions on what to try next.
    This is the site.
    http://www.absolutelyinc.com/absolute

    https://ww.wp.xz.cn/plugins/woocommerce/

Viewing 12 replies - 1 through 12 (of 12 total)
  • have you tried testing with a default theme and all other plugins deactivated except woo?

    Thread Starter shilogh55

    (@shilogh55)

    yes, I’m using a child them with twenty fourteen theme.
    I deactivated all the plugins and still the button would not work.
    There seems to be some jquery/javascript in the footer, do you think this could be causing the probem?
    I also increased the memory for php to 64.

    Thread Starter shilogh55

    (@shilogh55)

    sorry, that should be that I increased the php memory to 96MB.
    I again deactivated all the plugins except woocommerce and the place order button on the checkout page is still inactive.

    By default theme, I mean an untouched default theme… try switching to 2013 and testing it out…

    Thread Starter shilogh55

    (@shilogh55)

    Thanks
    I switched to the default 2013 and it worked (with some errors and the paypal end.
    Now to figure out why the button won’t work in my child theme of twenty fourteen.
    Not sure where to start looking, I’ve disable all the plugins and couldn’t get it to work. It must be something I’ve coded.

    Hi @shilogh55, try to look into your theme functions.php.

    Thread Starter shilogh55

    (@shilogh55)

    This is all that I have changed in the functions.php

    <?php
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 );
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 );
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 );
    remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10);
    
    add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 10);
    add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
    add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 35 );
    add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 40 );
    add_action( 'woocommerce_single_product_summary', 'woocommerce_output_product_data_tabs', 45 );
    
    function my_add_order_review_product_image( $product, $product_obj ) {    $image = wp_get_attachment_image( get_post_thumbnail_id( $product_obj->post->ID ), 'shop_thumbnail' );
    return $image . $product;} add_filter( 'woocommerce_checkout_product_title', 'my_add_order_review_product_image', 10, 2 );

    Try this:

    <?php
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 );
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 );
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 );
    remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10);
    
    add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 10);
    add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 35 );
    add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 40 );
    add_action( 'woocommerce_single_product_summary', 'woocommerce_output_product_data_tabs', 45 );
    
    function my_add_order_review_product_image( $product, $product_obj ) {    $image = wp_get_attachment_image( get_post_thumbnail_id( $product_obj->post->ID ), 'shop_thumbnail' );
    return $image . $product;} add_filter( 'woocommerce_checkout_product_title', 'my_add_order_review_product_image', 10, 2 );

    Thread Starter shilogh55

    (@shilogh55)

    Thanks
    Changed it and the order now button still doesn’t work.

    I wonder what could be causing the error.

    Thread Starter shilogh55

    (@shilogh55)

    I completely removed the functions and the place order button stil does not work.
    Does anyone have any suggestions on what else to try.

    Thanks

    Thread Starter shilogh55

    (@shilogh55)

    I’ve removed the functions above and also removed all styles. All plugins have been deactivated except woocommerce and I still can’t get the place order button to work. It does work in the twenty fourteen theme but not in the child theme.
    Does anyone have any ideas of what else I can try.

    Thanks

    Hi,
    Perhaps you could try slowly building a new child theme. Start with 2014, and just declare the child theme, and test. If that works, slowly add your custom attributes, testing all the while, until you hit the problem.

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

The topic ‘Place Order button not working.’ is closed to new replies.