Hi, i need to get the costumer tax id, and repeat the information at a custom PO order field.
I have changed the PO# field to be able to use Boleto bancário as a payments type, i need to get the tax id info and fullfill the PO# filed on my checkout.
I also need to have a text right below this filed to explain to costumer what will happen next (In this case, he will get a boleto at his email address).
Can you help on this one?
Thank you!
Funnily enough - we actually helped someone with a similar request recently. If I'm understanding you correctly - you're wanting to copy whatever value is entered into the customer tax ID field into the purchase order number field, and display a custom text string under that field as well.
If so - the following javascript should do that, and can be included in the 'footer' textarea of the "Add custom header and footer code to your templates" option on the "configuration" page in the admin. That script will force the purchase order field to match the billing tax ID, and also make the purchase order field readonly - to ensure it stays as the same. It then outputs the text below the PO field - and you can modify the string as desired within the javascript there.
I hope that helps!
Oh sorry, I missed a semicolon in my code - I've edited my post to add it, but this line needs to end with a semicolon: In terms of including it on the receipt - you could use a modified version of the javascript like this: The location of the message text is moved to the top - but that should update both checkout and receipt for you.