Configure products with multiple print positions and technologies in a single print job. Users can design for all positions in one session.
Use cases:
window.tronDesigner
.setExactProduct('PFC', undefined, (b) => {
b.addVariant('R2200D94');
b.addVariant('R2200E13');
})
// Add multiple print positions
.addExactPrinting('LEFTCHEST', 'MR07')
.addExactPrinting('RIGHTCHEST', 'MR07')
.open({mode: "dialog"});
window.tronDesigner.openDesigner({
"openMode": "Create",
"dataMode": "Partial",
"printJob": {
"addPrintings": [
{
"printPositionCode": "LEFTCHEST",
"printTechnologyCode": "MR07"
},
{
"printPositionCode": "RIGHTCHEST",
"printTechnologyCode": "MR07"
}
],
"addProducts": {
"supplierCode": "PFC",
"model": {"modelCode": "R2200"}
}
}
}, {mode: "dialog"});
const td = window.tronDesigner;
const positions = [
{position: 'LEFTCHEST', technology: 'MR07'},
{position: 'RIGHTCHEST', technology: 'MR07'},
];
td.setExactProduct('PFC', undefined, (b) => b.addVariant('R2200D94'));
positions.forEach(p => td.addExactPrinting(p.position, p.technology));
// open() uses everything collected on the builder and then resets it
td.open({mode: "dialog"});
Note: print position and technology codes must match the codes of the product's
print options in TronCloud (for this t-shirt LEFTCHEST, RIGHTCHEST, LEFTBICEP,
RIGHTBICEP). If a print option has no mockup image, the editor first asks the customer to choose one.