Custom fied
-
Hello, i need to add a custom field.
I create a field : name is “additional_retrait” and i would like to add it in the order-handler.php file to see it in the print order.Sorry for my english.
-
The way wo priont depends on whether it is a custom field added to the whole order, or per item.
The best place to start is with this sample version of the plugin which will automatically print extra item fields if they are present.
It will also print order fields if you enable the “Additional Order Information” setting. Probably this setting will print more information than you actually need, but as long as the right information is displayed, we can help you to remove the rest.Hi @lawrenceowen thanks for your answer.
I’ve upload the last version of the plugin. I’ve enable the “Additional order information” and my field “additional_retrait” appear but it’s wrong. Normally it’s an hour like 11h30 but here it’s only a number (9).
Do you know why ?
Thanks !I don’t know why, it depends on how that field is stored internally by your site.
Perhaps the 9 is an index used to lookup the required time on a list of values?Ok thank you i found the problem. In fact the 9 is an index which correspond at a list of values.
How i can delete other informations corresponding to the “additonal order information” ?
Thanks !@gautierlg Great, so were you able to get it printing as you need?
The easiest way to remove the extra fields currently is by modifying the order-handler.php file. An example with some instructions is available here.Even the additional information ? I would like to disable informations like “transaction ID” or “Card number”. I don’t find the right line in order-handler.php file…
@gautierlg please install the modified version of the plugin at the link I gave in my last message, and check the instruction on that page. As this instructions descript, the relevant code is at line 196 of order-handler.php.
That version of the plugin does not print any additional information fields, unless you specify them in the list at line 196. So simply add the field(s) you want printed to that list.
Hi @lawrenceowen — my web developer just installed your plug-in to print additional fields. I’m so excited about it!! However, I am no a techy person (unfortunately!) and I need help modifying the visible fields. Is that something you can help me with? Thank you so very much! –Lauren
@cookiecab Hi Lauren
Yes we can probably help. I guess that you want to print some data generated by other plugins? (usually delivery time or product order add-ons are the most common request).
I see that you are based in the US, while I’m responsible for UK/EU support. So I’ll ley our US guys know about your request.
Generally, the best way to add extra data to the printour is to first install this special version of the plugin and enable the “Print additional order meta-data, such as custom fields.” option. Then print out test order, and as long as the information that you need is included on the ticket then we should be able to help you with selecting just the fields that you need.
@cookiecab Hi Lauren,
I handle support in the US, so I’ll take over for Lawrence. Did you try the special plugin he provided and did you have any luck with the modifications?
Hi @gcubero (@lawrenceowen–thank you for your help and passing on the info!),
We installed the plug-in found in this link: https://vault.star-emea.com/s/WFEiKggj7sS3w39
Is that the correct one? I enabled the check box that says to print additional information. If that’s the correct one, please let me know and I will do another sample print. I think it had all the info I needed, but it has a lot of duplicates so I need help modifying that if possible. Let me know what you need from me.
Thank you so much!
It’s the one that @lawrenceowen linked so it should be correct.
To help you better, I’m going to ask you to send us a support ticket so we can talk 1 – 1. You can do so here
The topic ‘Custom fied’ is closed to new replies.