• Hello,

    I just purchased the printer and have been testing it with woocommerce and so far it’s been great. I just need to know what can be altered in the orderhandler.php in order to show a separate line of subtotal and total taxes on the receipt. I would also need to show delivery or pickup date and time based on another plugin. Any help would be much appreciated!

    Thanks for all your work on this plugin. Great job!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi notion9
    Look at the following post i just made. https://www.ads-software.com/support/topic/add-fields-to-the-receipt/
    Hope that helps you as well.

    Thread Starter notion9

    (@notion9)

    Hey @mikerutherford108 another question. I added a tip functionality to the order and cannot seem to get the value printed on the receipt. Have you worked on anything of that sort?

    Plugin Contributor lawrenceowen

    (@lawrenceowen)

    @notion9 I have updated the plugin to enable printing of all order meta-data, which is generally used by plugins to add custom fields to an order.

    I am hoping that this will print the delivery/pickup information added by your other plugin. you can test this in a sample release from here. Printing the extra custom fields is not enabled by default, please open the plugin settings and enable the Additional Order Fields option.

    I imaging that this will not fix your subtotal/total taxes requirement as these are standard WooCommerce fields, rather than custom fields, but if you could test and let me know then I can help include those too.

    Thread Starter notion9

    (@notion9)

    @lawrenceowen I managed to get the sub-total by just doing a (-) calculation of the total and taxes. I just could not get it directly from woocommerce. I checked the order items database table and woocommerce does not write a separate sub-total line. it just does a page calculation and sends it to the email. so for me to get that to print was going to be a lot more work. So, that’s what i did with that.

    I also had a tip field from checkout add-on plugin which i wanted to get from. Hopefully with the new plugin, that could work. Will keep you posted after some testing.

    Delivery, Pickup, Bank Transaction ID all seem to work fine with my customization of the order-handler page. I did heavily customize the page. Love it! Just wanted the custom fields to work seamlessly. Which could happen with the new version.

    • This reply was modified 4 years, 8 months ago by notion9.
    Plugin Contributor lawrenceowen

    (@lawrenceowen)

    @notion9 You might want to have a look at my latest plugin code at https://vault.star-emea.com/s/3NZaatNZNjAdiwy, although some testeds have had mixed results, so please make sure you back-up ypur current modifications first.

    I could find a WooCommerce method to get the subtotal, which is now available as a configurable field via the plugin settings page. But I still need to add options to clean-up/filter the order metadata, which should all be printed now just not always very cleanly (basically the same as in the last sample version of the plugin that I posted the link for).

    @lawrenceowen – just another question within this topic.

    Just installed a Star mC-Print3 printer with newest firmware and the newest WP plugin.

    I miss two customs fields in the reciept print out:

    datepicker
    timepicker

    These I cannot seem to get printed out on the receipt.

    Any way to do this?

    Also – can the text on the receipt be translated to another language (e.g. Danish)?

    Thanks for your support.

    Br,
    Henrik

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Custom fields’ is closed to new replies.