$product->
setTemplate($data['__product_template'
]);
$product->
setHasConfigurator($data['__product_configurator_set_id'
] > 0
);
$product->
setHasEsd((bool) $data['__product_has_esd'
]);
$product->
setIsPriceGroupActive((bool) $data['__product_pricegroupActive'
]);
$product->
setSales((int) $data['__topSeller_sales'
]);
$product->
setShippingFree((bool) $data['__variant_shippingfree'
]);
$product->
setStock((int) $data['__variant_instock'
]);
$product->
setManufacturerNumber($data['__variant_suppliernumber'
]);
$product->
setMainVariantId((int) $data['__product_main_detail_id'
]);
if ($data['__variant_shippingtime'
]) { $product->
setShippingTime($data['__variant_shippingtime'
]);
} elseif ($data['__product_shippingtime'
]) { $product->
setShippingTime($data['__product_shippingtime'
]);
} if ($data['__variant_releasedate'
]) { $product->
setReleaseDate( new DateTime($data['__variant_releasedate'
]) );
} if ($data['__product_datum'
]) { $product->
setCreatedAt(