20% OFF UNTIL THE END OF THE YEAR Use Code: OFF20 for 20% Off! (excluding customizations and support packages)
How do I display product variant attribute values on my ZPL labels?

How do I display product variant attribute values on my ZPL labels?

Our connector provides two methods to include product variant attribute values on your labels:

1. Nested Labels (Recommended)

Watch our video guide to see how to display Many2many/One2many fields, like attribute values, using Nested Labels in the ZPL Label Designer:

Key Points:

image-20240909-170635.png

Manual Label Customization

If you need more control over how attribute values are displayed (e.g., in a single line), you can customize the label manually. Here’s one approach:

  1. Create Your Label: Design your label in the Designer, including a placeholder field where you want the attribute values to appear. (e.g., use the name field as a temporary placeholder):

    image-20240909-171144.png
  2. Publish and Open in Debug Mode. Publish the label to Odoo, open the label in Odoo with debug mode enabled. Click the “Open Label View” button:

image-20240909-171245.png
  1. Find and Replace Placeholder. Locate the code for your placeholder field (it will look similar to ^FD<t t-esc="doc.name"/>^FS):

image-20240909-171422.png
  1. Insert Attribute Value Code. Replace the placeholder code with this:

    ^FD<t t-esc="doc.product_template_attribute_value_ids._get_combination_name()"/>^FS

Save the changes:

image-20240909-171553.png
  1. Test. Navigate to a product variant with multiple attributes. Print a label to see the attribute values displayed:

image-20240909-171929.png

Need Help?

If you have further questions or need assistance, please contact our support team: https://support.ventor.tech/

Related Posts
Leave a Reply

Your email address will not be published.Required fields are marked *