Tagged: x
-
AuthorPosts
-
March 17, 2017 at 7:43 pm #1411608
Hello,
Can you offer a quick tip how to print out an order form after a customer has ordered some products from my website? Is there a copy & paste function or something I can do to export that page?March 18, 2017 at 4:18 am #1411979Hello There,
Thanks for writing in! I think this link might interest you:
https://mikejolley.com/2011/11/04/woocommerce-output-a-printable-list-of-processing-orders/If you need anything else we can help you with, don’t hesitate to open another thread.
March 19, 2017 at 11:18 am #1412842Hmm, I went to the link and was immediately lost. Am I to copy the whole coding – 2 pages long? – & paste into my child’s theme (style.css file) ?
Otherwise not sure how to do it, or where I should go to paste the long code.
March 20, 2017 at 1:49 am #1413274Hi There,
Yes, we can implement that using a child theme. No, it’s not a CSS so not going to style.css file. The code is a PHP file. Using a text editor(like subline) add a new php file. Copy the entire code. Save the file as woocommerce-print.php or any name you want. Upload it on your child theme root folder here /wp-content/themes/x-child. Then on WordPress Admin > Pages > Add New page: Woocommerce Print > On Page Template dropdown choose Print Processing Orders. View the page.
Hope this helps.
March 20, 2017 at 7:18 am #1413539Oops Lely, I’m a real beginner and have not been taught what is PHP file and where to find it. Can help with some baby steps here?
I only know how to go to the child theme css style file, but not outside of wordpress or outside the x theme usual pages.
Or any simpler option for a non web designer?
March 20, 2017 at 10:00 am #1413717Hey There,
Thanks for writing back!
Kindly walk-through the guidelines given in the below link to get started with your own Child theme.
https://community.theme.co/kb/how-to-setup-child-themes/
Hope it helps, let us know how it goes!
March 20, 2017 at 10:42 am #1413782Hey Rahul,
I already have child theme set up. But just don’t know how to do what Lely suggests – the thing about PHP file… where is that?Need some bridging step here!
March 20, 2017 at 12:37 pm #1413955Hi There,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks
March 21, 2017 at 10:13 am #1415020This reply has been marked as private.March 22, 2017 at 2:07 am #1415877Hi There,
Thank you for the credentials. This can be achieve by accessing your site using FTP because we can’t do this on wordpress admin.
To make it simpler, we can use NOTEPAD.
See this:http://screencast-o-matic.com/watch/cbe3ic6Ero
You will notice that I did copy the code from here:https://gist.github.com/mikejolley/1339240 so it will be formatted. Make sure the copy the code exactly as it is without excess because it will cause fatal error.
Now login to your hosting account, we can use FILEZILLA OR WINSCP or using Control Panel of your hosting go to your child theme folder here:\wp-content\themes\x-child. Upload the file that we just created.Then create the page and use Print Processing Orders page template. See attached screenshot.
If you’re still uncomfortable doing this, it would be best to consult a developer or look for plugin with this functionality.
March 22, 2017 at 2:13 am #1415880I don’t use Microsoft but Mac. So no Notepad. Is text edit ok? it will be in rtf format. Can that be used?
March 22, 2017 at 5:04 pm #1416867Hi there,
Any text editing software could be use. I’m using Sublime Text on Mac, and it’s free 🙂
Thanks.
March 23, 2017 at 11:22 am #1417869Hi Rad,
I used “text edit” on my Mac and copied the whole code and saved it, as “woocommerce-print.php”. But the end result is still “woocommerce-print.php.rtf”I then uploaded in \wp-content\themes\x-child which is in the public_html folder of my File Manager of my C Panel.
But when I go to Word Press dashboard to create a new page, I couldn’t find the template on the right side called “print processing orders”.
I then saved the code as “woocommerce-print.rtf” (since Lely above said any name will do). I could not find the template too.
Did I do the steps correctly? To check if I created the code correctly, please see attached.
March 23, 2017 at 6:19 pm #1418330You have to save that file like this https://www.thoughtco.com/using-textedit-for-php-2694153
It should have .php at the end.
Let me know if that doesn’t work after getting that file with .php extension.
March 27, 2017 at 11:02 am #1421821Thanks Rahul, for the precious tip of using my Text Edit to create files with the php extension.
Consequently, I created the php file and was able to create the page in my website. When i viewed the page created as advised by Lely above, it has all the orders made by all the customers in the past. Even then, where is the print button or option?
Then how do I print only a page for just one customer? Where do I go to select “print” after a customer has placed the order? Do I go to Dashboard and look under Woocommerce?
By the way, after creating the page, what do I do next – I click “save draft” right? Since I don’t intend for the public to see this page, I should not click “publish” right?
Not sure why I have to create a page in my website when this printing is meant to be for me the business owner, not for the public. Already Woocommerce has an “order” page and the customer’s orders are listed in detail. It’s just that I can’t find a button to print that page or export that page somewhere so I can print it. Of course, the other option is to print a screen shot.
-
AuthorPosts