Title: robertfarkle's Replies | WordPress.org

---

# robertfarkle

  [  ](https://wordpress.org/support/users/robertfarkle/)

 *   [Profile](https://wordpress.org/support/users/robertfarkle/)
 *   [Topics Started](https://wordpress.org/support/users/robertfarkle/topics/)
 *   [Replies Created](https://wordpress.org/support/users/robertfarkle/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/robertfarkle/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/robertfarkle/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/robertfarkle/engagements/)
 *   [Favorites](https://wordpress.org/support/users/robertfarkle/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Print Invoice & Delivery Notes for WooCommerce] Wont print after update](https://wordpress.org/support/topic/wont-print-after-update/)
 *  [robertfarkle](https://wordpress.org/support/users/robertfarkle/)
 * (@robertfarkle)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/wont-print-after-update/page/3/#post-4782052)
 * @art-wood.de I’ve decided that what I really wanted to be was a support person,
   so I’ve been trolling the threads for problems that I can address. 😉
 * Actually, your problem was one that I had also experienced and I traced my steps
   to see what I had done.
 * I haven’t dug into the design / css portions yet. Guess we’ll see what tomorrow
   holds.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Print Invoice & Delivery Notes for WooCommerce] Wont print after update](https://wordpress.org/support/topic/wont-print-after-update/)
 *  [robertfarkle](https://wordpress.org/support/users/robertfarkle/)
 * (@robertfarkle)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/wont-print-after-update/page/3/#post-4782045)
 * @art-wood.de – Go into WooCommerce ->Settings -> Accounts and make sure that 
   the “My Account Page” is set. If it is not set, it will yield a page not found
   404.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Print Invoice & Delivery Notes for WooCommerce] Wont print after update](https://wordpress.org/support/topic/wont-print-after-update/)
 *  [robertfarkle](https://wordpress.org/support/users/robertfarkle/)
 * (@robertfarkle)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/wont-print-after-update/page/3/#post-4782044)
 * @art-wood.de – I suggest you make a backup and then deactivate the plugin, uninstall
   it, then reinstall it. I had a similar problem and this fixed it. You would need
   to replace the template after that.
 * [@academicdigital](https://wordpress.org/support/users/academicdigital/) – I’m
   sure the problem will be fixed in a future version, however you can benefit from
   this patch job by pasting the code in now.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Print Invoice & Delivery Notes for WooCommerce] Wont print after update](https://wordpress.org/support/topic/wont-print-after-update/)
 *  [robertfarkle](https://wordpress.org/support/users/robertfarkle/)
 * (@robertfarkle)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/wont-print-after-update/page/2/#post-4782013)
 * In the file includes/class-wcdn-print.php:
 * Replace the function get_print_page_url with this one.
 *     ```
       /**
                        * Get print page url
                        */
                       public function get_print_page_url( $order_ids, $template_type = 'order', $order_email = null ) {
                               // Explode the ids when needed
                               if( !is_array( $order_ids ) ) {
                                       $order_ids = array_filter( explode( '-', $order_ids ) );
                               }
   
                               // Default args
                               $args = array();
   
                               if( in_array( $template_type, $this->template_types ) && $template_type != 'order' ) {
                                       $args = wp_parse_args( array( 'print-order-type' => $template_type ), $args );
                               }
   
                               if( !empty( $order_email ) ) {
                                       $args = wp_parse_args( array( 'print-order-email' => $order_email ), $args );
                               }
   
                               // Generate the url
                               $permalink = get_permalink( wc_get_page_id( 'myaccount' ) );
                               $permalink = str_replace( home_url(), "", $permalink );
                               $endpoint = $this->api_endpoints['print-order'];
                               $order_ids_slug = implode( '-', $order_ids );
   
                               if( get_option( 'permalink_structure' ) ) {
                                       $url = trailingslashit( trailingslashit( $permalink ) . $endpoint . '/' . $order_ids_slug );
                               } else {
                                       $url = add_query_arg( $endpoint, $order_ids_slug, $permalink );
                               }
   
                               $url = add_query_arg( $args, $url );
   
                               return $url;
                       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Print Invoice & Delivery Notes for WooCommerce] Wont print after update](https://wordpress.org/support/topic/wont-print-after-update/)
 *  [robertfarkle](https://wordpress.org/support/users/robertfarkle/)
 * (@robertfarkle)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/wont-print-after-update/page/2/#post-4782010)
 * Please see this thread on how to temporarily address the https issue for the 
   admin side.
 * [http://wordpress.org/support/topic/problem-with-https-and-update?replies=3](http://wordpress.org/support/topic/problem-with-https-and-update?replies=3)
 * However, it would be good to address this overall with a cleaner solution in 
   the core code.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Print Invoice & Delivery Notes for WooCommerce] Problem with https and update.](https://wordpress.org/support/topic/problem-with-https-and-update/)
 *  Thread Starter [robertfarkle](https://wordpress.org/support/users/robertfarkle/)
 * (@robertfarkle)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/problem-with-https-and-update/#post-4780438)
 * This solution doesn’t work on the customer facing VIEW PRINT buttons under my-
   account. I’ll wait and see if someone smarter than I wants to chime in. Thanks!

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