robertfarkle
Forum Replies Created
-
Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Wont print after update@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
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Wont print after update@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
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Wont print after update@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 – 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
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Wont print after updateIn 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
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Wont print after updatePlease 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
However, it would be good to address this overall with a cleaner solution in the core code.
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!