• Resolved steplab

    (@steplab)


    Hi,
    I need to Remove Downloads table displaing inside Order details, when the cutomer inside his My Account area, view the order details by clicking “View” button on orders list.
    I do not want to hide the download table inside emails.
    How to do that?
    I tried hiding by css, but this method hide also Downloads page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter steplab

    (@steplab)

    For now temporarily resolved with:

    
    body.woocommerce-view-order  .post-wrapper .entry-container .entry-content .woocommerce .woocommerce-MyAccount-content section.woocommerce-order-downloads{ 
    	display:none;
    }
    

    But I think there is another official plugin method to do this, like a filter to apply or a hook to add.
    Waiting for answers.

    jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    @steplab I couldn’t see a way to do this via hooks, I was only about to do it via editing the order-details.php template itself. My edited template can be seen here:
    https://gist.github.com/jessepearson/0dc062bc5f0d4cf3fe2c9b3bfbb6c400#file-order-details-php-L32-L34

    This is the default WooCommerce template, so if your theme is already overriding this template you may have to create a child theme to override that.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove Downloads Section Only In Customer View Order’ is closed to new replies.