if ($taxRule instanceof Tax
) { $tax =
$taxRule;
} $data =
[ 'articleID' =>
$product->
getId(),
'articleDetailsID' =>
$product->
getVariantId(),
'ordernumber' =>
$product->
getNumber(),
'highlight' =>
$product->
highlight(),
'description' =>
$product->
getShortDescription(),
'description_long' =>
$product->
getLongDescription(),
'esd' =>
$product->
hasEsd(),
'articleName' =>
$product->
getName(),
'taxID' =>
$product->
getTax()->
getId(),
'tax' =>
$tax->
getTax(),
'instock' =>
$product->
getStock(),
'isAvailable' =>
$product->
isAvailable(),
'hasAvailableVariant' =>
$product->
hasAvailableVariant(),
'weight' =>
$product->
getWeight(),
'shippingtime' =>
$product->
getShippingTime(),
'pricegroupActive' => false,
'pricegroupID' => null,
'length' =>
$product->
getLength(),