I'm using Advanced PDF template for Item Labels pr...
# general
b
I'm using Advanced PDF template for Item Labels print out. But custom fields are not showing when I try to print out. How could I do this? Any help would be appreciated.
Copy code
<#list records as label>
    <table cellpadding="5" style="width: 2.65in; height: 1in;border:1px solid #0000dd;float:left;margin-right:0.1in">
        <tr><td>${label.itemid}</td><td align="center">Price: ${label.price}</td><td align="center" ><b>Custom PRICE: ${label.custitemfield_id}</b></td></tr>	
    </table></#list>
p
Item label printing is terrible. I did this with a scripted button from the item page a few years ago using this
I'm pretty sure @michoel still is on this channel. I can't volunteer him for this, but he helped me when I was in need.
He wrote this script.
b
Thank you. I think this is the only way
p
Yeah. Item label printing is weirdly locked down compared to other records. I can't even really remember my requirements for the client I used this on, but it was a custom formatted Item Label with cutom fields. This worked.
b
Yes but tons of work 🙂
p
The script doesn't need much, if any editing. The bigger chunk of work is building your template in xml, if I remember right. Then the template file sits in your file cabinet and this script calls on it when the button is pushed on the item
b
yes you are right. I can't use the template I have
Also I have to print Item labels on PO, not item
g
You can try the following steps to add custom fields to your template: Go to Setup > SuiteCommerce Advanced > PDF Templates.Select the template you're using for Item Labels.Under "Fields" section, click on "Add Field" button.Select the custom field you want to add and click "Save". If the above steps don't work, you can also try checking the layout of the template and ensuring the custom fields are properly aligned and placed. Let me know if you need further assistance, I'd be happy to help.
b
Sorry @Gly A but custom fields are not showing there
I want to add custom fields which does not shows here
message has been deleted
m
Yep you will need a suitelet to expose custom fields on item label.