Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1411608

    iamwithU
    Participant

    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?

    #1411979

    Rue Nel
    Moderator

    Hello 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.

    #1412842

    iamwithU
    Participant

    Hmm, 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.

    #1413274

    Lely
    Moderator

    Hi 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.

    #1413539

    iamwithU
    Participant

    Oops 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?

    #1413717

    Rahul
    Moderator

    Hey 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!

    #1413782

    iamwithU
    Participant

    Hey 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!

    #1413955

    Joao
    Moderator

    Hi 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 credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks

    #1415020

    iamwithU
    Participant
    This reply has been marked as private.
    #1415877

    Lely
    Moderator

    Hi 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.

    #1415880

    iamwithU
    Participant

    I don’t use Microsoft but Mac. So no Notepad. Is text edit ok? it will be in rtf format. Can that be used?

    #1416867

    Rad
    Moderator

    Hi there,

    Any text editing software could be use. I’m using Sublime Text on Mac, and it’s free 🙂

    Thanks.

    #1417869

    iamwithU
    Participant

    Hi 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.

    #1418330

    Rahul
    Moderator

    You 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.

    #1421821

    iamwithU
    Participant

    Thanks 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.