Price Tag Generator.
Build multiple Illustrator price tags from one or more named templates and a UTF-8 CSV. The generator handles text, prices, numbered logos, QR codes, optional assets, bleed-aware artboards and print sheets.
Install and launch.
- Extract the complete generator folder. Keep the Launcher and Core file together.
- Open the template AI in Illustrator.
- Choose File → Scripts → Other Script….
- Select
Price_Tag_Generator_Launcher_v1.11.jsx.
.jsxinc Core file. The Launcher keeps the UI and Illustrator document actions in the correct engines.Suggested: full Generator UI with Generate, Layout and Print tabs.
Screenshot slot — replace the inner span with an image when ready.
Name the Illustrator template.
Group the complete price-tag artwork, select the group and click Prepare Selection. The script names the active artboard and group from the active artboard size, for example PT_TEMPLATE_90x54.
Required objects
| Name | Purpose |
|---|---|
PT_TITLE | Main product title TextFrame. |
PT_SUBTITLE | Subtitle TextFrame. |
PT_INFO | One multiline product-information TextFrame. |
PT_PRICE_LABEL | The retail-price / currency label group. |
PT_PRICE_VALUE | The numeric price TextFrame. |
Common optional objects
| Name | Purpose |
|---|---|
PT_LOGO + PT_LOGO_GUIDE | First logo placeholder and key object. PT_LOGO_1 is also accepted. |
PT_LOGO_2 + PT_LOGO_2_GUIDE | Second numbered logo; continue with 3, 4 and so on. |
PT_QR_CODE + PT_QR_CODE_GUIDE | Optional QR artwork and contain area. |
PT_BACKGROUND + PT_BACKGROUND_GUIDE | Optional replacement background and cover area. |
PT_PRODUCT_IMAGE + PT_PRODUCT_GUIDE | Optional product image and fit area. |
PT_PRICE_ANCHOR | Optional bottom-right anchor for the full price block. |
PT_PRICE_SAFE | Optional safe area used to shrink long price values. |
Suggested: Illustrator Layers panel showing every PT_ object.
Screenshot slot — template group and Layers panel.
Place each logo around its GUIDE.
Every numbered logo can use its own CSV alignment value. GUIDE remains the key object, but v1.10 uses an external 3 × 3 placement: the nearest logo edge is joined to the selected GUIDE anchor. Only center overlaps both centres.
| CSV value | Anchor join |
|---|---|
top_left | Logo bottom-right → GUIDE top-left. |
top_center | Logo bottom-centre → GUIDE top-centre. |
top_right | Logo bottom-left → GUIDE top-right. |
middle_left | Logo middle-right → GUIDE middle-left. |
center | Logo centre → GUIDE centre. |
middle_right | Logo middle-left → GUIDE middle-right. |
bottom_left | Logo top-right → GUIDE bottom-left. |
bottom_center | Logo top-centre → GUIDE bottom-centre. |
bottom_right | Logo top-left → GUIDE bottom-right. |
The global X/Y offsets in Settings are applied after this anchor join. Positive X moves right; positive Y moves down.
Suggested: real Illustrator result with red GUIDE and two different logos.
Screenshot slot — a real logo alignment example.
Build a flexible UTF-8 CSV.
Save the data as CSV UTF-8 (Comma delimited). One row creates one price tag. Paths may be relative to the CSV folder or the Assets folder selected in the UI.
| Column | Meaning |
|---|---|
template_id | Template size ID such as 90x54. Blank uses the UI default. |
output_name | Readable artboard name; SKU is used as fallback. |
title, subtitle | Main text fields. |
info_1, info_2 … info_n | Detected dynamically and combined into the multiline PT_INFO object. |
price | Numeric value. Format 1,000 can be enabled in Layout. |
logo_1_file, logo_1_align | First logo file and external GUIDE position. |
logo_2_file, logo_2_align | Second logo. Continue the same numbered pattern as required. |
qr_code_file | Optional QR code path. |
background_file | Optional replacement background path. |
product_image_file | Optional product image path. |
info_6, info_7 or higher as required. Values are sorted numerically, blank cells are skipped, and info_10 correctly follows info_9. The visible result is still limited by the height of PT_INFO / PT_INFO_GUIDE and the minimum Auto-fit font size.template_id,output_name,title,subtitle,info_1,info_2,info_6,price,logo_1_file,logo_1_align,logo_2_file,logo_2_align,qr_code_file
90x54,HC5,"HC 5 Portable USB DAC","Flagship portable DAC","1. Dual-DAC architecture","2. OLED display","6. Extra information",3680,logos/brand.ai,top_right,logos/partner.svg,bottom_left,qr/hc5.png
Suggested: CSV open in Excel with logo_1 / logo_2 columns visible.
Screenshot slot — keep the numbered logo columns visible.
Add assets only when the row needs them.
Logo, QR, product and optional image fields support Illustrator-placeable artwork including SVG, AI, PNG, JPG/JPEG, PDF, EPS, TIFF and PSD. A blank cell keeps the template object. Enter none or - to hide it.
Flexible optional columns
| CSV column | Illustrator object | Use |
|---|---|---|
asset_badge_file | PT_ASSET_BADGE | Place any optional image. |
asset_badge_fit | PT_ASSET_BADGE_GUIDE | contain or cover. |
text_promo | PT_TEXT_PROMO | Replace an optional TextFrame. |
show_asset_badge | PT_ASSET_BADGE | Show with yes/true/1; hide with no/false/0. |
badge with any consistent key such as warranty, member_icon or energy_label. Missing optional columns do not change that object.Generate a centred, bleed-aware layout.
- Same template document or New document.
- Fixed column count or automatic balanced grid.
- Left-to-right, then top-to-bottom order.
- Grid centred away from slow canvas edges.
- Bleed included in spacing calculations.
- Large Canvas retry when required.
New-document names
If the template is named HC5_Template.ai, Layout creates an unsaved document named HC5_Template_Price_Tag.ai. Print Sheets creates HC5_Template_Price_Tag_Print.ai. You still choose the final save folder.
Auto and manual bleed
Auto mode reads Illustrator Document Setup when available, then checks a saved PDF-compatible AI. Manual mode uses the entered millimetre value. New-document bleed is verified before the final output document is accepted.
Suggested: several centred artboards with visible red bleed bounds and gap.
Screenshot slot — show how bleed and gap prevent overlap.
Impose production-ready Print Sheets.
On the Print tab, enable Create print sheets and select A6–A1 paper, orientation, copies per tag, page margin, item gap and Trim Mark settings.
- Copies stay consecutive: A, A, A, B, B, B, C, C, C.
- Each price tag is duplicated into its own clipping group.
- With bleed, the clipping mask includes trim plus bleed artwork.
- Trim Marks appear only when bleed exists, and remain aligned to the trim artboard.
- Overflow continues on the next paper artboard without changing order.
Suggested: A4 Print Sheet with repeated tags, clipping masks and Trim Marks.
Screenshot slot — a complete A4 or A3 imposed sheet.
Recommended production workflow.
- Open and save the PDF-compatible template AI.
- Select the full tag group and run Prepare Selection once.
- Name the required and optional child objects.
- Click Check Template until it reports Ready.
- Choose the UTF-8 CSV and any file inside the Assets folder.
- Set Layout, bleed and Print options.
- Run Preview First and inspect logo placement, text fit and price spacing.
- Run Generate All and save the new Layout / Print documents.
When something fails.
| Message / result | What to check |
|---|---|
| “There is no document” | Open the template AI before Prepare, Check or Generate. |
| Template reports missing names | Expand the prepared group and verify the exact required PT_ names. |
| Logo too large or visually offset | Crop transparent pixels, verify its own GUIDE and choose the correct external logo_n_align. |
| Asset not found | Check spelling, extension and whether the relative path starts from the CSV or selected Assets folder. |
| Bleed is zero in Auto | Save the template with PDF compatibility after changing Document Setup, then Check Template again. |
| Print Sheet is empty | Confirm at least one tag generated successfully and Create print sheets is enabled. |
Open Debug / Logs and keep the last error block when reporting a problem.
Suggested: Debug / Logs window highlighting the final error block.
Screenshot slot — show the useful part of a debug log.