on ‎2018 Feb 10 11:31 PM
How to Export data from two types in a single export item script? i.e to combined base product and variant product using export script ?
Request clarification before answering.
Hello Sandeep,
I have come across the same scenario earlier. below example might be useful for you.. it will retrieve the data from two tables...
"#%impex.getImpExExportWriter().getExportWriter().setFieldseparator(',');"
INSERT Order;code;discounts(code);discounts(currency(isocode));discounts(value)
"#%impex.exportItemsFlexibleSearch(""select {o.pk} from {order as o join orderdiscountrelation as r on {o.pk}={r.source} join discount as d on {r.target}={d.pk}}"");"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.