• Resolved Jeroen

    (@jeroentjed)


    Hi guys and girls,

    At the Checkout page there is a button “order again”. As I sell a digital service and not a product, I don’t want that button on my page.
    I googled around but the only way I can find is to add some code to a functions.php. Isn’t there a easier way to do this?

    For me the best way would be a setting to turn this on or off. Maybe something for the nearby future?

    Regards,
    Jeroen

Viewing 5 replies - 1 through 5 (of 5 total)
  • Shane Eckert

    (@shaneeckert)

    Automattic Happiness Engineer

    Hi Jeroen,

    Are you using this snippet?

    remove_action( 'woocommerce_order_details_after_order_table', 'woocommerce_order_again_button' );

    You can also use CSS to remove the button from the front end. Something along the lines of this.

    
    p.order-again {
    display: none !important;
    }
    

    These are the only ways to disable this option at the moment. Buy please feel free to open a feature request here.

    Cheers!

    Thread Starter Jeroen

    (@jeroentjed)

    Hello @shaneeckert,

    Yes I used that one. I will try the css suggestion. Thanks!

    Shane Eckert

    (@shaneeckert)

    Automattic Happiness Engineer

    Any time!

    I also have the problem of trying to get rid of this option. I am not sure where to put the code so that I can remove that option.

    @medsforvets go to cpanel /public_html/wp-content/themes/yourthemename/functions.php and insert the snippet into the file.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Removing the “order again” button’ is closed to new replies.